[ 31.076374][ T1449] grep (1449) used greatest stack depth: 23776 bytes left [ 31.076391][ T1449] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 31.076393][ T1449] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 1449, name: grep [ 31.076395][ T1449] preempt_count: 2, expected: 0 [ 31.076396][ T1449] RCU nest depth: 0, expected: 0 [ 31.076397][ T1449] locks held by grep/1449: 5, last CPU#1: [ 31.076399][ T1449] #0: ffffffff8c0167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 31.076411][ T1449] #1: ffffffff8c17ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 31.076415][ T1449] #2: ffffffff8c17de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 31.076420][ T1449] #3: ffffffff8c09d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 31.076423][ T1449] #4: ffffffff8c09d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 31.076427][ T1449] irq event stamp: 10542 [ 31.076428][ T1449] hardirqs last enabled at (10541): [] __down_trylock_console_sem+0x86/0xa0 [ 31.076432][ T1449] hardirqs last disabled at (10542): [] console_emit_next_record+0x3d4/0x4c0 [ 31.076434][ T1449] softirqs last enabled at (8994): [] handle_softirqs+0x67c/0x900 [ 31.076436][ T1449] softirqs last disabled at (8081): [] __irq_exit_rcu+0x145/0x1c0 [ 31.076439][ T1449] Preemption disabled at: [ 31.076440][ T1449] [<0000000000000000>] 0x0 [ 31.076446][ T1449] CPU: 1 UID: 0 PID: 1449 Comm: grep Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 31.076450][ T1449] Tainted: [W]=WARN [ 31.076451][ T1449] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 31.076452][ T1449] Call Trace: [ 31.076454][ T1449] [ 31.076455][ T1449] dump_stack_lvl+0x6f/0xa0 [ 31.076461][ T1449] __might_resched.cold+0x1fe/0x2c1 [ 31.076466][ T1449] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 31.076470][ T1449] ? __kmalloc_noprof+0xdb/0x760 [ 31.076474][ T1449] __kmalloc_noprof+0x443/0x760 [ 31.076476][ T1449] ? alloc_buf.isra.0+0x4b/0x260 [ 31.076483][ T1449] ? do_raw_spin_unlock+0x59/0x250 [ 31.076486][ T1449] alloc_buf.isra.0+0x4b/0x260 [ 31.076490][ T1449] put_chars+0x1e1/0x2f0 [ 31.076492][ T1449] ? __send_to_port+0x420/0x420 [ 31.076493][ T1449] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 31.076497][ T1449] ? validate_chain+0x38b/0xc20 [ 31.076502][ T1449] hvc_console_print+0x292/0x780 [ 31.076510][ T1449] ? hvc_write+0x3a0/0x3a0 [ 31.076512][ T1449] ? rcu_is_watching+0x16/0xd0 [ 31.076514][ T1449] ? lock_acquire+0x13c/0x160 [ 31.076518][ T1449] console_emit_next_record+0x22f/0x4c0 [ 31.076522][ T1449] ? devkmsg_read+0x4b0/0x4b0 [ 31.076524][ T1449] ? console_flush_one_record+0x106/0x710 [ 31.076531][ T1449] ? rcu_is_watching+0x16/0xd0 [ 31.076533][ T1449] ? lock_acquire+0x13c/0x160 [ 31.076537][ T1449] console_flush_one_record+0x46f/0x710 [ 31.076541][ T1449] ? console_emit_next_record+0x4c0/0x4c0 [ 31.076543][ T1449] ? __lock_acquire+0x518/0xc20 [ 31.076548][ T1449] console_unlock+0xee/0x1f0 [ 31.076551][ T1449] ? console_flush_one_record+0x710/0x710 [ 31.076553][ T1449] ? rcu_is_watching+0x16/0xd0 [ 31.076554][ T1449] ? lock_acquire+0xe0/0x160 [ 31.076558][ T1449] ? __down_trylock_console_sem+0x5e/0xa0 [ 31.076560][ T1449] ? vprintk_emit+0x320/0x3e0 [ 31.076562][ T1449] vprintk_emit+0x37c/0x3e0 [ 31.076565][ T1449] ? wake_up_klogd_work_func+0x90/0x90 [ 31.076568][ T1449] ? __lock_acquire+0x518/0xc20 [ 31.076572][ T1449] _printk+0xc7/0x100 [ 31.076575][ T1449] ? snapshot_read.cold+0x21/0x21 [ 31.076578][ T1449] ? do_raw_spin_lock+0x131/0x280 [ 31.076581][ T1449] ? __rwlock_init+0x150/0x150 [ 31.076585][ T1449] ? do_raw_spin_lock+0x131/0x280 [ 31.076587][ T1449] do_exit.cold+0x82/0x9c [ 31.076591][ T1449] ? exit_notify+0x890/0x890 [ 31.076592][ T1449] ? __lock_release.isra.0+0x69/0x1a0 [ 31.076595][ T1449] ? rcu_is_watching+0x16/0xd0 [ 31.076598][ T1449] do_group_exit+0xb8/0x370 [ 31.076601][ T1449] __x64_sys_exit_group+0x3c/0x50 [ 31.076603][ T1449] x64_sys_call+0x1567/0x1570 [ 31.076606][ T1449] do_syscall_64+0xff/0x530 [ 31.076610][ T1449] ? exc_page_fault+0xee/0x100 [ 31.076613][ T1449] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 31.076615][ T1449] RIP: 0033:0x7fcad72201b8 [ 31.076617][ T1449] Code: Unable to access opcode bytes at 0x7fcad722018e. [ 31.076619][ T1449] RSP: 002b:00007ffe34cd4f98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.076621][ T1449] RAX: ffffffffffffffda RBX: 00007fcad7350f88 RCX: 00007fcad72201b8 [ 31.076622][ T1449] RDX: 00007fcad715ee88 RSI: ffffffffffffffb0 RDI: 0000000000000000 [ 31.076623][ T1449] RBP: 00007ffe34cd4ff0 R08: 0000000000000000 R09: 0000000000000000 [ 31.076624][ T1449] R10: 00007ffe34cd4e30 R11: 0000000000000246 R12: 0000000000000002 [ 31.076625][ T1449] R13: 0000000000000000 R14: 00007fcad734f680 R15: 00007fcad7350fa0 [ 31.076631][ T1449]