[ 39.843057][ T338] bash (338) used greatest stack depth: 23792 bytes left [ 39.843077][ T338] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 39.843079][ T338] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 338, name: bash [ 39.843081][ T338] preempt_count: 2, expected: 0 [ 39.843081][ T338] RCU nest depth: 0, expected: 0 [ 39.843082][ T338] locks held by bash/338: 5, last CPU#2: [ 39.843084][ T338] #0: ffffffffba6027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 39.843096][ T338] #1: ffffffffba799dc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 39.843102][ T338] #2: ffffffffba799e38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 39.843106][ T338] #3: ffffffffba689760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 39.843110][ T338] #4: ffffffffba689660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 39.843114][ T338] irq event stamp: 43168 [ 39.843115][ T338] hardirqs last enabled at (43167): [] __down_trylock_console_sem+0x86/0xa0 [ 39.843117][ T338] hardirqs last disabled at (43168): [] console_emit_next_record+0x3f8/0x4f0 [ 39.843119][ T338] softirqs last enabled at (42980): [] handle_softirqs+0x67c/0x900 [ 39.843121][ T338] softirqs last disabled at (42975): [] __irq_exit_rcu+0x145/0x1c0 [ 39.843124][ T338] Preemption disabled at: [ 39.843124][ T338] [<0000000000000000>] 0x0 [ 39.843132][ T338] CPU: 2 UID: 0 PID: 338 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 39.843135][ T338] Tainted: [W]=WARN [ 39.843136][ T338] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 39.843138][ T338] Call Trace: [ 39.843140][ T338] [ 39.843141][ T338] dump_stack_lvl+0x6f/0xa0 [ 39.843148][ T338] __might_resched.cold+0x1fe/0x2c1 [ 39.843152][ T338] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 39.843157][ T338] ? __kmalloc_noprof+0xdb/0x760 [ 39.843162][ T338] __kmalloc_noprof+0x443/0x760 [ 39.843164][ T338] ? alloc_buf.isra.0+0x4b/0x260 [ 39.843171][ T338] ? do_raw_spin_unlock+0x59/0x250 [ 39.843174][ T338] alloc_buf.isra.0+0x4b/0x260 [ 39.843178][ T338] put_chars+0x1e1/0x2f0 [ 39.843181][ T338] ? __send_to_port+0x420/0x420 [ 39.843183][ T338] ? printk_get_next_message+0x2fe/0x7d0 [ 39.843186][ T338] ? rcu_read_lock_any_held+0x3c/0x90 [ 39.843189][ T338] ? validate_chain+0x38b/0xc20 [ 39.843193][ T338] hvc_console_print+0x292/0x780 [ 39.843197][ T338] ? __lock_acquire+0x518/0xc20 [ 39.843198][ T338] ? __lock_acquire+0x518/0xc20 [ 39.843203][ T338] ? hvc_write+0x3a0/0x3a0 [ 39.843206][ T338] ? rcu_is_watching+0x16/0xd0 [ 39.843210][ T338] ? lock_acquire+0x13c/0x160 [ 39.843213][ T338] console_emit_next_record+0x252/0x4f0 [ 39.843217][ T338] ? devkmsg_read+0x4e0/0x4e0 [ 39.843222][ T338] ? rcu_is_watching+0x16/0xd0 [ 39.843224][ T338] ? lock_acquire+0x13c/0x160 [ 39.843228][ T338] console_flush_one_record+0x46f/0x710 [ 39.843232][ T338] ? console_emit_next_record+0x4f0/0x4f0 [ 39.843234][ T338] ? __lock_acquire+0x518/0xc20 [ 39.843239][ T338] console_unlock+0xee/0x1f0 [ 39.843242][ T338] ? console_flush_one_record+0x710/0x710 [ 39.843243][ T338] ? rcu_is_watching+0x16/0xd0 [ 39.843246][ T338] ? lock_acquire+0xa0/0x160 [ 39.843249][ T338] ? __down_trylock_console_sem+0x5e/0xa0 [ 39.843251][ T338] ? vprintk_emit+0x320/0x3e0 [ 39.843254][ T338] vprintk_emit+0x37c/0x3e0 [ 39.843258][ T338] ? wake_up_klogd_work_func+0x90/0x90 [ 39.843261][ T338] ? __lock_acquire+0x518/0xc20 [ 39.843265][ T338] _printk+0xc7/0x100 [ 39.843268][ T338] ? snapshot_read.cold+0x21/0x21 [ 39.843271][ T338] ? do_raw_spin_lock+0x131/0x280 [ 39.843273][ T338] ? __rwlock_init+0x150/0x150 [ 39.843277][ T338] ? do_raw_spin_lock+0x131/0x280 [ 39.843280][ T338] do_exit.cold+0x82/0x9c [ 39.843283][ T338] ? exit_notify+0x890/0x890 [ 39.843285][ T338] ? __lock_release.isra.0+0x69/0x1a0 [ 39.843287][ T338] ? rcu_is_watching+0x16/0xd0 [ 39.843291][ T338] do_group_exit+0xb8/0x370 [ 39.843294][ T338] __x64_sys_exit_group+0x3c/0x50 [ 39.843296][ T338] x64_sys_call+0x1567/0x1570 [ 39.843298][ T338] do_syscall_64+0xff/0x530 [ 39.843301][ T338] ? exc_page_fault+0xee/0x100 [ 39.843305][ T338] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 39.843307][ T338] RIP: 0033:0x7fa0350041b8 [ 39.843309][ T338] Code: Unable to access opcode bytes at 0x7fa03500418e. [ 39.843311][ T338] RSP: 002b:00007ffc724991c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 39.843313][ T338] RAX: ffffffffffffffda RBX: 00007fa035134f88 RCX: 00007fa0350041b8 [ 39.843315][ T338] RDX: 00007fa034f42e88 RSI: ffffffffffffffb0 RDI: 0000000000000000 [ 39.843316][ T338] RBP: 00007ffc72499220 R08: 0000000000000000 R09: 0000000000000050 [ 39.843317][ T338] R10: 00007ffc72499060 R11: 0000000000000246 R12: 0000000000000001 [ 39.843317][ T338] R13: 0000000000000000 R14: 00007fa035133680 R15: 00007fa035134fa0 [ 39.843324][ T338]