[ 19.330540][ T312] grep (312) used greatest stack depth: 23808 bytes left [ 19.330558][ T312] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 19.330560][ T312] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 312, name: grep [ 19.330561][ T312] preempt_count: 2, expected: 0 [ 19.330562][ T312] RCU nest depth: 0, expected: 0 [ 19.330563][ T312] locks held by grep/312: 5, last CPU#0: [ 19.330564][ T312] #0: ffffffffa6e167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 19.330580][ T312] #1: ffffffffa6f7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 19.330585][ T312] #2: ffffffffa6f7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 19.330589][ T312] #3: ffffffffa6e9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 19.330593][ T312] #4: ffffffffa6e9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 19.330597][ T312] irq event stamp: 11854 [ 19.330598][ T312] hardirqs last enabled at (11853): [] __down_trylock_console_sem+0x86/0xa0 [ 19.330604][ T312] hardirqs last disabled at (11854): [] console_emit_next_record+0x3d4/0x4c0 [ 19.330606][ T312] softirqs last enabled at (11178): [] handle_softirqs+0x67c/0x900 [ 19.330608][ T312] softirqs last disabled at (11053): [] __irq_exit_rcu+0x145/0x1c0 [ 19.330611][ T312] Preemption disabled at: [ 19.330611][ T312] [<0000000000000000>] 0x0 [ 19.330618][ T312] CPU: 0 UID: 0 PID: 312 Comm: grep Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 19.330621][ T312] Tainted: [W]=WARN [ 19.330622][ T312] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.330623][ T312] Call Trace: [ 19.330625][ T312] [ 19.330626][ T312] dump_stack_lvl+0x6f/0xa0 [ 19.330633][ T312] __might_resched.cold+0x1fe/0x2c1 [ 19.330637][ T312] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 19.330641][ T312] ? __kmalloc_noprof+0xdb/0x760 [ 19.330646][ T312] __kmalloc_noprof+0x443/0x760 [ 19.330647][ T312] ? alloc_buf.isra.0+0x4b/0x260 [ 19.330654][ T312] ? do_raw_spin_unlock+0x59/0x250 [ 19.330657][ T312] alloc_buf.isra.0+0x4b/0x260 [ 19.330660][ T312] put_chars+0x1e1/0x2f0 [ 19.330663][ T312] ? __send_to_port+0x420/0x420 [ 19.330664][ T312] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 19.330667][ T312] ? validate_chain+0x38b/0xc20 [ 19.330672][ T312] hvc_console_print+0x292/0x780 [ 19.330680][ T312] ? hvc_write+0x3a0/0x3a0 [ 19.330682][ T312] ? rcu_is_watching+0x16/0xd0 [ 19.330684][ T312] ? lock_acquire+0x13c/0x160 [ 19.330688][ T312] console_emit_next_record+0x22f/0x4c0 [ 19.330692][ T312] ? devkmsg_read+0x4b0/0x4b0 [ 19.330694][ T312] ? console_flush_one_record+0x106/0x710 [ 19.330697][ T312] ? rcu_is_watching+0x16/0xd0 [ 19.330699][ T312] ? lock_acquire+0x13c/0x160 [ 19.330702][ T312] console_flush_one_record+0x46f/0x710 [ 19.330706][ T312] ? console_emit_next_record+0x4c0/0x4c0 [ 19.330708][ T312] ? __lock_acquire+0x518/0xc20 [ 19.330713][ T312] console_unlock+0xee/0x1f0 [ 19.330716][ T312] ? console_flush_one_record+0x710/0x710 [ 19.330718][ T312] ? rcu_is_watching+0x16/0xd0 [ 19.330720][ T312] ? lock_acquire+0xe0/0x160 [ 19.330724][ T312] ? __down_trylock_console_sem+0x5e/0xa0 [ 19.330726][ T312] ? vprintk_emit+0x320/0x3e0 [ 19.330729][ T312] vprintk_emit+0x37c/0x3e0 [ 19.330732][ T312] ? wake_up_klogd_work_func+0x90/0x90 [ 19.330734][ T312] ? __lock_acquire+0x518/0xc20 [ 19.330738][ T312] _printk+0xc7/0x100 [ 19.330742][ T312] ? snapshot_read.cold+0x21/0x21 [ 19.330744][ T312] ? do_raw_spin_lock+0x131/0x280 [ 19.330747][ T312] ? __rwlock_init+0x150/0x150 [ 19.330751][ T312] ? do_raw_spin_lock+0x131/0x280 [ 19.330753][ T312] do_exit.cold+0x82/0x9c [ 19.330757][ T312] ? exit_notify+0x890/0x890 [ 19.330758][ T312] ? __lock_release.isra.0+0x69/0x1a0 [ 19.330761][ T312] ? rcu_is_watching+0x16/0xd0 [ 19.330764][ T312] do_group_exit+0xb8/0x370 [ 19.330767][ T312] __x64_sys_exit_group+0x3c/0x50 [ 19.330769][ T312] x64_sys_call+0x1567/0x1570 [ 19.330771][ T312] do_syscall_64+0xff/0x530 [ 19.330775][ T312] ? exc_page_fault+0xee/0x100 [ 19.330778][ T312] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 19.330780][ T312] RIP: 0033:0x7f75bcebc1b8 [ 19.330782][ T312] Code: Unable to access opcode bytes at 0x7f75bcebc18e. [ 19.330783][ T312] RSP: 002b:00007ffe931d9f48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 19.330786][ T312] RAX: ffffffffffffffda RBX: 00007f75bcfecf88 RCX: 00007f75bcebc1b8 [ 19.330787][ T312] RDX: 00007f75bcdfae88 RSI: ffffffffffffffb0 RDI: 0000000000000000 [ 19.330788][ T312] RBP: 00007ffe931d9fa0 R08: 0000000000000000 R09: 0000000000000000 [ 19.330789][ T312] R10: 00007ffe931d9de0 R11: 0000000000000246 R12: 0000000000000002 [ 19.330790][ T312] R13: 0000000000000000 R14: 00007f75bcfeb680 R15: 00007f75bcfecfa0 [ 19.330797][ T312]