[ 37.106979][ T345] grep (345) used greatest stack depth: 23840 bytes left [ 37.107003][ T345] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 37.107005][ T345] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 345, name: grep [ 37.107008][ T345] preempt_count: 2, expected: 0 [ 37.107009][ T345] RCU nest depth: 0, expected: 0 [ 37.107010][ T345] locks held by grep/345: 5, last CPU#0: [ 37.107013][ T345] #0: ffffffff958267b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 37.107029][ T345] #1: ffffffff9598dcc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 37.107036][ T345] #2: ffffffff9598dd38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 37.107042][ T345] #3: ffffffff958ad660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 37.107048][ T345] #4: ffffffff958ad560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 37.107054][ T345] irq event stamp: 10600 [ 37.107055][ T345] hardirqs last enabled at (10599): [] __down_trylock_console_sem+0x86/0xa0 [ 37.107058][ T345] hardirqs last disabled at (10600): [] console_emit_next_record+0x3d4/0x4c0 [ 37.107061][ T345] softirqs last enabled at (10490): [] handle_softirqs+0x67c/0x900 [ 37.107064][ T345] softirqs last disabled at (10483): [] __irq_exit_rcu+0x145/0x1c0 [ 37.107067][ T345] Preemption disabled at: [ 37.107068][ T345] [<0000000000000000>] 0x0 [ 37.107077][ T345] CPU: 0 UID: 0 PID: 345 Comm: grep Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 37.107081][ T345] Tainted: [W]=WARN [ 37.107082][ T345] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 37.107085][ T345] Call Trace: [ 37.107087][ T345] [ 37.107090][ T345] dump_stack_lvl+0x6f/0xa0 [ 37.107097][ T345] __might_resched.cold+0x1fe/0x2c1 [ 37.107103][ T345] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 37.107109][ T345] ? __kmalloc_noprof+0xdb/0x760 [ 37.107116][ T345] __kmalloc_noprof+0x443/0x760 [ 37.107119][ T345] ? alloc_buf.isra.0+0x4b/0x260 [ 37.107129][ T345] ? do_raw_spin_unlock+0x59/0x250 [ 37.107132][ T345] alloc_buf.isra.0+0x4b/0x260 [ 37.107138][ T345] put_chars+0x1e1/0x2f0 [ 37.107143][ T345] ? __send_to_port+0x420/0x420 [ 37.107146][ T345] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 37.107152][ T345] ? validate_chain+0x38b/0xc20 [ 37.107161][ T345] hvc_console_print+0x292/0x780 [ 37.107173][ T345] ? hvc_write+0x3a0/0x3a0 [ 37.107177][ T345] ? rcu_is_watching+0x16/0xd0 [ 37.107181][ T345] ? lock_acquire+0x13c/0x160 [ 37.107187][ T345] console_emit_next_record+0x22f/0x4c0 [ 37.107194][ T345] ? devkmsg_read+0x4b0/0x4b0 [ 37.107196][ T345] ? console_flush_one_record+0x106/0x710 [ 37.107201][ T345] ? rcu_is_watching+0x16/0xd0 [ 37.107204][ T345] ? lock_acquire+0x13c/0x160 [ 37.107212][ T345] console_flush_one_record+0x46f/0x710 [ 37.107218][ T345] ? console_emit_next_record+0x4c0/0x4c0 [ 37.107221][ T345] ? __lock_acquire+0x518/0xc20 [ 37.107229][ T345] console_unlock+0xee/0x1f0 [ 37.107233][ T345] ? console_flush_one_record+0x710/0x710 [ 37.107236][ T345] ? rcu_is_watching+0x16/0xd0 [ 37.107239][ T345] ? lock_acquire+0x60/0x160 [ 37.107245][ T345] ? __down_trylock_console_sem+0x5e/0xa0 [ 37.107248][ T345] ? vprintk_emit+0x320/0x3e0 [ 37.107253][ T345] vprintk_emit+0x37c/0x3e0 [ 37.107259][ T345] ? wake_up_klogd_work_func+0x90/0x90 [ 37.107265][ T345] ? __lock_acquire+0x518/0xc20 [ 37.107271][ T345] _printk+0xc7/0x100 [ 37.107277][ T345] ? snapshot_read.cold+0x21/0x21 [ 37.107281][ T345] ? do_raw_spin_lock+0x131/0x280 [ 37.107285][ T345] ? __rwlock_init+0x150/0x150 [ 37.107292][ T345] ? do_raw_spin_lock+0x131/0x280 [ 37.107296][ T345] do_exit.cold+0x82/0x9c [ 37.107301][ T345] ? exit_notify+0x890/0x890 [ 37.107304][ T345] ? __lock_release.isra.0+0x69/0x1a0 [ 37.107309][ T345] ? rcu_is_watching+0x16/0xd0 [ 37.107316][ T345] do_group_exit+0xb8/0x370 [ 37.107321][ T345] __x64_sys_exit_group+0x3c/0x50 [ 37.107325][ T345] x64_sys_call+0x1567/0x1570 [ 37.107328][ T345] do_syscall_64+0xff/0x530 [ 37.107332][ T345] ? exc_page_fault+0xee/0x100 [ 37.107337][ T345] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 37.107341][ T345] RIP: 0033:0x7f24e49281b8 [ 37.107344][ T345] Code: Unable to access opcode bytes at 0x7f24e492818e. [ 37.107346][ T345] RSP: 002b:00007ffc96b7c318 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.107349][ T345] RAX: ffffffffffffffda RBX: 00007f24e4a58f88 RCX: 00007f24e49281b8 [ 37.107351][ T345] RDX: 00007f24e4866e88 RSI: ffffffffffffffb0 RDI: 0000000000000000 [ 37.107353][ T345] RBP: 00007ffc96b7c370 R08: 0000000000000000 R09: 0000000000001010 [ 37.107354][ T345] R10: 00007ffc96b7c1b0 R11: 0000000000000246 R12: 0000000000000002 [ 37.107355][ T345] R13: 0000000000000000 R14: 00007f24e4a57680 R15: 00007f24e4a58fa0 [ 37.107368][ T345]