[ 14.286691][ T158] ksft_runner.sh (158) used greatest stack depth: 24128 bytes left [ 14.286714][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 14.286716][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: ksft_runner.sh [ 14.286718][ T158] preempt_count: 2, expected: 0 [ 14.286719][ T158] RCU nest depth: 0, expected: 0 [ 14.286720][ T158] locks held by ksft_runner.sh/158: 5, last CPU#3: [ 14.286723][ T158] #0: ffffffff8c6027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 14.286736][ T158] #1: ffffffff8c769cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 14.286741][ T158] #2: ffffffff8c769d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 14.286744][ T158] #3: ffffffff8c689660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 14.286747][ T158] #4: ffffffff8c689560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 14.286751][ T158] irq event stamp: 50922 [ 14.286752][ T158] hardirqs last enabled at (50921): [] __down_trylock_console_sem+0x86/0xa0 [ 14.286755][ T158] hardirqs last disabled at (50922): [] console_emit_next_record+0x3d4/0x4c0 [ 14.286757][ T158] softirqs last enabled at (48146): [] handle_softirqs+0x67c/0x900 [ 14.286759][ T158] softirqs last disabled at (48135): [] __irq_exit_rcu+0x145/0x1c0 [ 14.286762][ T158] Preemption disabled at: [ 14.286762][ T158] [<0000000000000000>] 0x0 [ 14.286769][ T158] CPU: 3 UID: 0 PID: 158 Comm: ksft_runner.sh Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 14.286773][ T158] Tainted: [W]=WARN [ 14.286774][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.286776][ T158] Call Trace: [ 14.286777][ T158] [ 14.286779][ T158] dump_stack_lvl+0x6f/0xa0 [ 14.286784][ T158] __might_resched.cold+0x1fe/0x2c1 [ 14.286789][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 14.286792][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 14.286797][ T158] __kmalloc_noprof+0x443/0x760 [ 14.286800][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 14.286806][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 14.286809][ T158] alloc_buf.isra.0+0x4b/0x260 [ 14.286813][ T158] put_chars+0x1e1/0x2f0 [ 14.286816][ T158] ? __send_to_port+0x420/0x420 [ 14.286818][ T158] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 14.286822][ T158] ? validate_chain+0x38b/0xc20 [ 14.286827][ T158] hvc_console_print+0x292/0x780 [ 14.286834][ T158] ? hvc_write+0x3a0/0x3a0 [ 14.286836][ T158] ? rcu_is_watching+0x16/0xd0 [ 14.286838][ T158] ? lock_acquire+0x13c/0x160 [ 14.286843][ T158] console_emit_next_record+0x22f/0x4c0 [ 14.286846][ T158] ? devkmsg_read+0x4b0/0x4b0 [ 14.286847][ T158] ? console_flush_one_record+0x106/0x710 [ 14.286850][ T158] ? rcu_is_watching+0x16/0xd0 [ 14.286852][ T158] ? lock_acquire+0x13c/0x160 [ 14.286856][ T158] console_flush_one_record+0x46f/0x710 [ 14.286860][ T158] ? console_emit_next_record+0x4c0/0x4c0 [ 14.286861][ T158] ? __lock_acquire+0x518/0xc20 [ 14.286866][ T158] console_unlock+0xee/0x1f0 [ 14.286871][ T158] ? console_flush_one_record+0x710/0x710 [ 14.286873][ T158] ? rcu_is_watching+0x16/0xd0 [ 14.286875][ T158] ? lock_acquire+0x60/0x160 [ 14.286879][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 14.286880][ T158] ? vprintk_emit+0x320/0x3e0 [ 14.286883][ T158] vprintk_emit+0x37c/0x3e0 [ 14.286887][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 14.286890][ T158] ? __lock_acquire+0x518/0xc20 [ 14.286894][ T158] _printk+0xc7/0x100 [ 14.286897][ T158] ? snapshot_read.cold+0x21/0x21 [ 14.286900][ T158] ? do_raw_spin_lock+0x131/0x280 [ 14.286903][ T158] ? __rwlock_init+0x150/0x150 [ 14.286907][ T158] ? do_raw_spin_lock+0x131/0x280 [ 14.286910][ T158] do_exit.cold+0x82/0x9c [ 14.286913][ T158] ? exit_notify+0x890/0x890 [ 14.286915][ T158] ? __lock_release.isra.0+0x69/0x1a0 [ 14.286918][ T158] ? rcu_is_watching+0x16/0xd0 [ 14.286922][ T158] do_group_exit+0xb8/0x370 [ 14.286925][ T158] __x64_sys_exit_group+0x3c/0x50 [ 14.286927][ T158] x64_sys_call+0x1567/0x1570 [ 14.286929][ T158] do_syscall_64+0xff/0x530 [ 14.286934][ T158] ? exc_page_fault+0xee/0x100 [ 14.286937][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 14.286939][ T158] RIP: 0033:0x7f6a69da91b8 [ 14.286942][ T158] Code: Unable to access opcode bytes at 0x7f6a69da918e. [ 14.286942][ T158] RSP: 002b:00007ffd25d034a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 14.286945][ T158] RAX: ffffffffffffffda RBX: 00007f6a69ed9f88 RCX: 00007f6a69da91b8 [ 14.286946][ T158] RDX: 00007f6a69ce7e88 RSI: ffffffffffffffb0 RDI: 0000000000000000 [ 14.286947][ T158] RBP: 00007ffd25d03500 R08: 0000000000000000 R09: 0000000000000000 [ 14.286948][ T158] R10: 00007ffd25d03340 R11: 0000000000000246 R12: 0000000000000001 [ 14.286949][ T158] R13: 0000000000000000 R14: 00007f6a69ed8680 R15: 00007f6a69ed9fa0 [ 14.286956][ T158]