[ 8.842958][ T162] grep (162) used greatest stack depth: 23904 bytes left [ 8.842976][ T162] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.842979][ T162] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 162, name: grep [ 8.842980][ T162] preempt_count: 2, expected: 0 [ 8.842981][ T162] RCU nest depth: 0, expected: 0 [ 8.842982][ T162] locks held by grep/162: 5, last CPU#3: [ 8.842985][ T162] #0: ffffffffa8a027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 8.842997][ T162] #1: ffffffffa8b69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.843003][ T162] #2: ffffffffa8b69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.843006][ T162] #3: ffffffffa8a89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.843009][ T162] #4: ffffffffa8a89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 8.843013][ T162] irq event stamp: 11242 [ 8.843014][ T162] hardirqs last enabled at (11241): [] __down_trylock_console_sem+0x86/0xa0 [ 8.843017][ T162] hardirqs last disabled at (11242): [] console_emit_next_record+0x3d4/0x4c0 [ 8.843019][ T162] softirqs last enabled at (11052): [] handle_softirqs+0x67c/0x900 [ 8.843021][ T162] softirqs last disabled at (11047): [] __irq_exit_rcu+0x145/0x1c0 [ 8.843023][ T162] Preemption disabled at: [ 8.843024][ T162] [<0000000000000000>] 0x0 [ 8.843032][ T162] CPU: 3 UID: 0 PID: 162 Comm: grep Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.843035][ T162] Tainted: [W]=WARN [ 8.843036][ T162] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.843038][ T162] Call Trace: [ 8.843039][ T162] [ 8.843041][ T162] dump_stack_lvl+0x6f/0xa0 [ 8.843046][ T162] __might_resched.cold+0x1fe/0x2c1 [ 8.843051][ T162] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.843054][ T162] ? __kmalloc_noprof+0xdb/0x760 [ 8.843060][ T162] __kmalloc_noprof+0x443/0x760 [ 8.843062][ T162] ? alloc_buf.isra.0+0x4b/0x260 [ 8.843069][ T162] ? do_raw_spin_unlock+0x59/0x250 [ 8.843072][ T162] alloc_buf.isra.0+0x4b/0x260 [ 8.843075][ T162] put_chars+0x1e1/0x2f0 [ 8.843078][ T162] ? __send_to_port+0x420/0x420 [ 8.843080][ T162] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 8.843084][ T162] ? validate_chain+0x38b/0xc20 [ 8.843089][ T162] hvc_console_print+0x292/0x780 [ 8.843097][ T162] ? hvc_write+0x3a0/0x3a0 [ 8.843099][ T162] ? rcu_is_watching+0x16/0xd0 [ 8.843101][ T162] ? lock_acquire+0x13c/0x160 [ 8.843106][ T162] console_emit_next_record+0x22f/0x4c0 [ 8.843109][ T162] ? devkmsg_read+0x4b0/0x4b0 [ 8.843110][ T162] ? console_flush_one_record+0x106/0x710 [ 8.843113][ T162] ? rcu_is_watching+0x16/0xd0 [ 8.843115][ T162] ? lock_acquire+0x13c/0x160 [ 8.843119][ T162] console_flush_one_record+0x46f/0x710 [ 8.843123][ T162] ? console_emit_next_record+0x4c0/0x4c0 [ 8.843124][ T162] ? __lock_acquire+0x518/0xc20 [ 8.843130][ T162] console_unlock+0xee/0x1f0 [ 8.843133][ T162] ? console_flush_one_record+0x710/0x710 [ 8.843134][ T162] ? rcu_is_watching+0x16/0xd0 [ 8.843136][ T162] ? lock_acquire+0x60/0x160 [ 8.843140][ T162] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.843142][ T162] ? vprintk_emit+0x320/0x3e0 [ 8.843145][ T162] vprintk_emit+0x37c/0x3e0 [ 8.843149][ T162] ? wake_up_klogd_work_func+0x90/0x90 [ 8.843152][ T162] ? __lock_acquire+0x518/0xc20 [ 8.843157][ T162] _printk+0xc7/0x100 [ 8.843161][ T162] ? snapshot_read.cold+0x21/0x21 [ 8.843163][ T162] ? do_raw_spin_lock+0x131/0x280 [ 8.843166][ T162] ? __rwlock_init+0x150/0x150 [ 8.843171][ T162] ? do_raw_spin_lock+0x131/0x280 [ 8.843174][ T162] do_exit.cold+0x82/0x9c [ 8.843178][ T162] ? exit_notify+0x890/0x890 [ 8.843179][ T162] ? __lock_release.isra.0+0x69/0x1a0 [ 8.843183][ T162] ? rcu_is_watching+0x16/0xd0 [ 8.843187][ T162] do_group_exit+0xb8/0x370 [ 8.843190][ T162] __x64_sys_exit_group+0x3c/0x50 [ 8.843192][ T162] x64_sys_call+0x1567/0x1570 [ 8.843195][ T162] do_syscall_64+0xff/0x530 [ 8.843199][ T162] ? exc_page_fault+0xee/0x100 [ 8.843202][ T162] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.843204][ T162] RIP: 0033:0x7ff5be0c71b8 [ 8.843206][ T162] Code: Unable to access opcode bytes at 0x7ff5be0c718e. [ 8.843207][ T162] RSP: 002b:00007ffcbe82f3a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 8.843210][ T162] RAX: ffffffffffffffda RBX: 00007ff5be1f7f88 RCX: 00007ff5be0c71b8 [ 8.843211][ T162] RDX: 00007ff5be005e88 RSI: ffffffffffffffb0 RDI: 0000000000000001 [ 8.843212][ T162] RBP: 00007ffcbe82f400 R08: 0000000000000000 R09: 0000000000000000 [ 8.843213][ T162] R10: 00007ffcbe82f240 R11: 0000000000000246 R12: 0000000000000002 [ 8.843214][ T162] R13: 0000000000000001 R14: 00007ff5be1f6680 R15: 00007ff5be1f7fa0 [ 8.843221][ T162]