[ 14.052396][ T157] ksft_runner.sh (157) used greatest stack depth: 23952 bytes left [ 14.052413][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 14.052415][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: ksft_runner.sh [ 14.052417][ T157] preempt_count: 2, expected: 0 [ 14.052418][ T157] RCU nest depth: 0, expected: 0 [ 14.052419][ T157] locks held by ksft_runner.sh/157: 5, last CPU#2: [ 14.052421][ T157] #0: ffffffffae0027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 14.052433][ T157] #1: ffffffffae169cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 14.052438][ T157] #2: ffffffffae169d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 14.052442][ T157] #3: ffffffffae089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 14.052445][ T157] #4: ffffffffae089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 14.052448][ T157] irq event stamp: 38004 [ 14.052449][ T157] hardirqs last enabled at (38003): [] __down_trylock_console_sem+0x86/0xa0 [ 14.052452][ T157] hardirqs last disabled at (38004): [] console_emit_next_record+0x3d4/0x4c0 [ 14.052454][ T157] softirqs last enabled at (37276): [] handle_softirqs+0x67c/0x900 [ 14.052456][ T157] softirqs last disabled at (37269): [] __irq_exit_rcu+0x145/0x1c0 [ 14.052458][ T157] Preemption disabled at: [ 14.052459][ T157] [<0000000000000000>] 0x0 [ 14.052466][ T157] CPU: 2 UID: 0 PID: 157 Comm: ksft_runner.sh Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 14.052470][ T157] Tainted: [W]=WARN [ 14.052470][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.052472][ T157] Call Trace: [ 14.052474][ T157] [ 14.052476][ T157] dump_stack_lvl+0x6f/0xa0 [ 14.052481][ T157] __might_resched.cold+0x1fe/0x2c1 [ 14.052486][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 14.052489][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 14.052495][ T157] __kmalloc_noprof+0x443/0x760 [ 14.052497][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 14.052504][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 14.052506][ T157] alloc_buf.isra.0+0x4b/0x260 [ 14.052510][ T157] put_chars+0x1e1/0x2f0 [ 14.052513][ T157] ? __send_to_port+0x420/0x420 [ 14.052515][ T157] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 14.052519][ T157] ? validate_chain+0x38b/0xc20 [ 14.052524][ T157] hvc_console_print+0x292/0x780 [ 14.052531][ T157] ? hvc_write+0x3a0/0x3a0 [ 14.052533][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.052535][ T157] ? lock_acquire+0x13c/0x160 [ 14.052539][ T157] console_emit_next_record+0x22f/0x4c0 [ 14.052543][ T157] ? devkmsg_read+0x4b0/0x4b0 [ 14.052544][ T157] ? console_flush_one_record+0x106/0x710 [ 14.052547][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.052549][ T157] ? lock_acquire+0x13c/0x160 [ 14.052553][ T157] console_flush_one_record+0x46f/0x710 [ 14.052556][ T157] ? console_emit_next_record+0x4c0/0x4c0 [ 14.052558][ T157] ? __lock_acquire+0x518/0xc20 [ 14.052563][ T157] console_unlock+0xee/0x1f0 [ 14.052566][ T157] ? console_flush_one_record+0x710/0x710 [ 14.052567][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.052569][ T157] ? lock_acquire+0x60/0x160 [ 14.052573][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 14.052575][ T157] ? vprintk_emit+0x320/0x3e0 [ 14.052577][ T157] vprintk_emit+0x37c/0x3e0 [ 14.052581][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 14.052584][ T157] ? __lock_acquire+0x518/0xc20 [ 14.052588][ T157] _printk+0xc7/0x100 [ 14.052592][ T157] ? snapshot_read.cold+0x21/0x21 [ 14.052594][ T157] ? do_raw_spin_lock+0x131/0x280 [ 14.052597][ T157] ? __rwlock_init+0x150/0x150 [ 14.052601][ T157] ? do_raw_spin_lock+0x131/0x280 [ 14.052604][ T157] do_exit.cold+0x82/0x9c [ 14.052608][ T157] ? exit_notify+0x890/0x890 [ 14.052609][ T157] ? __lock_release.isra.0+0x69/0x1a0 [ 14.052612][ T157] ? rcu_is_watching+0x16/0xd0 [ 14.052616][ T157] do_group_exit+0xb8/0x370 [ 14.052619][ T157] __x64_sys_exit_group+0x3c/0x50 [ 14.052621][ T157] x64_sys_call+0x1567/0x1570 [ 14.052624][ T157] do_syscall_64+0xff/0x530 [ 14.052628][ T157] ? exc_page_fault+0xee/0x100 [ 14.052631][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 14.052633][ T157] RIP: 0033:0x7f2c918c91b8 [ 14.052635][ T157] Code: Unable to access opcode bytes at 0x7f2c918c918e. [ 14.052636][ T157] RSP: 002b:00007ffee7375738 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 14.052639][ T157] RAX: ffffffffffffffda RBX: 00007f2c919f9f88 RCX: 00007f2c918c91b8 [ 14.052640][ T157] RDX: 00007f2c91807e88 RSI: ffffffffffffffb0 RDI: 0000000000000000 [ 14.052641][ T157] RBP: 00007ffee7375790 R08: 0000000000000000 R09: 0000000000000000 [ 14.052642][ T157] R10: 00007ffee73755d0 R11: 0000000000000246 R12: 0000000000000001 [ 14.052642][ T157] R13: 0000000000000000 R14: 00007f2c919f8680 R15: 00007f2c919f9fa0 [ 14.052649][ T157]