[ 11.045239][ T157] ksft_runner.sh (157) used greatest stack depth: 23904 bytes left [ 11.045254][ T157] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.045256][ T157] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 157, name: ksft_runner.sh [ 11.045257][ T157] preempt_count: 2, expected: 0 [ 11.045258][ T157] RCU nest depth: 0, expected: 0 [ 11.045259][ T157] locks held by ksft_runner.sh/157: 5, last CPU#1: [ 11.045261][ T157] #0: ffffffff880027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 11.045273][ T157] #1: ffffffff88169cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.045278][ T157] #2: ffffffff88169d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.045281][ T157] #3: ffffffff88089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.045284][ T157] #4: ffffffff88089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.045287][ T157] irq event stamp: 38272 [ 11.045288][ T157] hardirqs last enabled at (38271): [] __down_trylock_console_sem+0x86/0xa0 [ 11.045291][ T157] hardirqs last disabled at (38272): [] console_emit_next_record+0x3d4/0x4c0 [ 11.045293][ T157] softirqs last enabled at (35890): [] restore_fpregs_from_user+0x1cf/0x490 [ 11.045297][ T157] softirqs last disabled at (35888): [] restore_fpregs_from_user+0xc3/0x490 [ 11.045299][ T157] Preemption disabled at: [ 11.045300][ T157] [<0000000000000000>] 0x0 [ 11.045307][ T157] CPU: 1 UID: 0 PID: 157 Comm: ksft_runner.sh Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.045310][ T157] Tainted: [W]=WARN [ 11.045311][ T157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.045313][ T157] Call Trace: [ 11.045314][ T157] [ 11.045316][ T157] dump_stack_lvl+0x6f/0xa0 [ 11.045321][ T157] __might_resched.cold+0x1fe/0x2c1 [ 11.045325][ T157] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.045328][ T157] ? __kmalloc_noprof+0xdb/0x760 [ 11.045333][ T157] __kmalloc_noprof+0x443/0x760 [ 11.045336][ T157] ? alloc_buf.isra.0+0x4b/0x260 [ 11.045342][ T157] ? do_raw_spin_unlock+0x59/0x250 [ 11.045345][ T157] alloc_buf.isra.0+0x4b/0x260 [ 11.045348][ T157] put_chars+0x1e1/0x2f0 [ 11.045351][ T157] ? __send_to_port+0x420/0x420 [ 11.045352][ T157] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.045357][ T157] ? validate_chain+0x38b/0xc20 [ 11.045362][ T157] hvc_console_print+0x292/0x780 [ 11.045368][ T157] ? hvc_write+0x3a0/0x3a0 [ 11.045370][ T157] ? rcu_is_watching+0x16/0xd0 [ 11.045372][ T157] ? lock_acquire+0x13c/0x160 [ 11.045376][ T157] console_emit_next_record+0x22f/0x4c0 [ 11.045379][ T157] ? devkmsg_read+0x4b0/0x4b0 [ 11.045381][ T157] ? console_flush_one_record+0x106/0x710 [ 11.045383][ T157] ? rcu_is_watching+0x16/0xd0 [ 11.045385][ T157] ? lock_acquire+0x13c/0x160 [ 11.045389][ T157] console_flush_one_record+0x46f/0x710 [ 11.045392][ T157] ? console_emit_next_record+0x4c0/0x4c0 [ 11.045393][ T157] ? __lock_acquire+0x518/0xc20 [ 11.045399][ T157] console_unlock+0xee/0x1f0 [ 11.045401][ T157] ? console_flush_one_record+0x710/0x710 [ 11.045402][ T157] ? rcu_is_watching+0x16/0xd0 [ 11.045404][ T157] ? lock_acquire+0x60/0x160 [ 11.045407][ T157] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.045409][ T157] ? vprintk_emit+0x320/0x3e0 [ 11.045412][ T157] vprintk_emit+0x37c/0x3e0 [ 11.045415][ T157] ? wake_up_klogd_work_func+0x90/0x90 [ 11.045417][ T157] ? __lock_acquire+0x518/0xc20 [ 11.045421][ T157] _printk+0xc7/0x100 [ 11.045425][ T157] ? snapshot_read.cold+0x21/0x21 [ 11.045427][ T157] ? do_raw_spin_lock+0x131/0x280 [ 11.045430][ T157] ? __rwlock_init+0x150/0x150 [ 11.045434][ T157] ? do_raw_spin_lock+0x131/0x280 [ 11.045437][ T157] do_exit.cold+0x82/0x9c [ 11.045440][ T157] ? exit_notify+0x890/0x890 [ 11.045441][ T157] ? __lock_release.isra.0+0x69/0x1a0 [ 11.045444][ T157] ? rcu_is_watching+0x16/0xd0 [ 11.045447][ T157] do_group_exit+0xb8/0x370 [ 11.045450][ T157] __x64_sys_exit_group+0x3c/0x50 [ 11.045452][ T157] x64_sys_call+0x1567/0x1570 [ 11.045455][ T157] do_syscall_64+0xff/0x530 [ 11.045459][ T157] ? exc_page_fault+0xee/0x100 [ 11.045462][ T157] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.045463][ T157] RIP: 0033:0x7f8caad8f1b8 [ 11.045466][ T157] Code: Unable to access opcode bytes at 0x7f8caad8f18e. [ 11.045467][ T157] RSP: 002b:00007ffcc414d7c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 11.045469][ T157] RAX: ffffffffffffffda RBX: 00007f8caaebff88 RCX: 00007f8caad8f1b8 [ 11.045470][ T157] RDX: 00007f8caaccde88 RSI: ffffffffffffffb0 RDI: 0000000000000000 [ 11.045471][ T157] RBP: 00007ffcc414d820 R08: 0000000000000000 R09: 0000000000000000 [ 11.045472][ T157] R10: 00007ffcc414d660 R11: 0000000000000246 R12: 0000000000000001 [ 11.045473][ T157] R13: 0000000000000000 R14: 00007f8caaebe680 R15: 00007f8caaebffa0 [ 11.045479][ T157]