[ 11.975146][ T158] ksft_runner.sh (158) used greatest stack depth: 24224 bytes left [ 11.975165][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.975167][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: ksft_runner.sh [ 11.975169][ T158] preempt_count: 2, expected: 0 [ 11.975169][ T158] RCU nest depth: 0, expected: 0 [ 11.975170][ T158] locks held by ksft_runner.sh/158: 5, last CPU#1: [ 11.975172][ T158] #0: ffffffff88e027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 11.975187][ T158] #1: ffffffff88f69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.975192][ T158] #2: ffffffff88f69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.975196][ T158] #3: ffffffff88e89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.975199][ T158] #4: ffffffff88e89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.975203][ T158] irq event stamp: 35472 [ 11.975203][ T158] hardirqs last enabled at (35471): [] __down_trylock_console_sem+0x86/0xa0 [ 11.975207][ T158] hardirqs last disabled at (35472): [] console_emit_next_record+0x3d4/0x4c0 [ 11.975209][ T158] softirqs last enabled at (33492): [] handle_softirqs+0x67c/0x900 [ 11.975211][ T158] softirqs last disabled at (33485): [] __irq_exit_rcu+0x145/0x1c0 [ 11.975213][ T158] Preemption disabled at: [ 11.975214][ T158] [<0000000000000000>] 0x0 [ 11.975221][ T158] CPU: 1 UID: 0 PID: 158 Comm: ksft_runner.sh Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.975224][ T158] Tainted: [W]=WARN [ 11.975225][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.975227][ T158] Call Trace: [ 11.975229][ T158] [ 11.975230][ T158] dump_stack_lvl+0x6f/0xa0 [ 11.975235][ T158] __might_resched.cold+0x1fe/0x2c1 [ 11.975240][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.975243][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 11.975248][ T158] __kmalloc_noprof+0x443/0x760 [ 11.975251][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 11.975257][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 11.975260][ T158] alloc_buf.isra.0+0x4b/0x260 [ 11.975263][ T158] put_chars+0x1e1/0x2f0 [ 11.975266][ T158] ? __send_to_port+0x420/0x420 [ 11.975268][ T158] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.975272][ T158] ? validate_chain+0x38b/0xc20 [ 11.975277][ T158] hvc_console_print+0x292/0x780 [ 11.975283][ T158] ? hvc_write+0x3a0/0x3a0 [ 11.975286][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.975287][ T158] ? lock_acquire+0x13c/0x160 [ 11.975292][ T158] console_emit_next_record+0x22f/0x4c0 [ 11.975295][ T158] ? devkmsg_read+0x4b0/0x4b0 [ 11.975296][ T158] ? console_flush_one_record+0x106/0x710 [ 11.975299][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.975301][ T158] ? lock_acquire+0x13c/0x160 [ 11.975305][ T158] console_flush_one_record+0x46f/0x710 [ 11.975308][ T158] ? console_emit_next_record+0x4c0/0x4c0 [ 11.975310][ T158] ? __lock_acquire+0x518/0xc20 [ 11.975315][ T158] console_unlock+0xee/0x1f0 [ 11.975317][ T158] ? console_flush_one_record+0x710/0x710 [ 11.975318][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.975320][ T158] ? lock_acquire+0x60/0x160 [ 11.975324][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.975326][ T158] ? vprintk_emit+0x320/0x3e0 [ 11.975329][ T158] vprintk_emit+0x37c/0x3e0 [ 11.975332][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 11.975335][ T158] ? __lock_acquire+0x518/0xc20 [ 11.975339][ T158] _printk+0xc7/0x100 [ 11.975342][ T158] ? snapshot_read.cold+0x21/0x21 [ 11.975345][ T158] ? do_raw_spin_lock+0x131/0x280 [ 11.975348][ T158] ? __rwlock_init+0x150/0x150 [ 11.975352][ T158] ? do_raw_spin_lock+0x131/0x280 [ 11.975355][ T158] do_exit.cold+0x82/0x9c [ 11.975358][ T158] ? exit_notify+0x890/0x890 [ 11.975359][ T158] ? __lock_release.isra.0+0x69/0x1a0 [ 11.975362][ T158] ? rcu_is_watching+0x16/0xd0 [ 11.975366][ T158] do_group_exit+0xb8/0x370 [ 11.975369][ T158] __x64_sys_exit_group+0x3c/0x50 [ 11.975371][ T158] x64_sys_call+0x1567/0x1570 [ 11.975374][ T158] do_syscall_64+0xff/0x530 [ 11.975377][ T158] ? exc_page_fault+0xee/0x100 [ 11.975380][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.975383][ T158] RIP: 0033:0x7fee0551f1b8 [ 11.975385][ T158] Code: Unable to access opcode bytes at 0x7fee0551f18e. [ 11.975386][ T158] RSP: 002b:00007ffd1449fa88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 11.975388][ T158] RAX: ffffffffffffffda RBX: 00007fee0564ff88 RCX: 00007fee0551f1b8 [ 11.975389][ T158] RDX: 00007fee0545de88 RSI: ffffffffffffffb0 RDI: 0000000000000000 [ 11.975390][ T158] RBP: 00007ffd1449fae0 R08: 0000000000000000 R09: 0000000000000000 [ 11.975391][ T158] R10: 00007ffd1449f920 R11: 0000000000000246 R12: 0000000000000001 [ 11.975392][ T158] R13: 0000000000000000 R14: 00007fee0564e680 R15: 00007fee0564ffa0 [ 11.975398][ T158]