[ 10.623522][ T118] su (118) used greatest stack depth: 22992 bytes left [ 10.623538][ T118] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.623540][ T118] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 118, name: su [ 10.623541][ T118] preempt_count: 2, expected: 0 [ 10.623542][ T118] RCU nest depth: 0, expected: 0 [ 10.623543][ T118] locks held by su/118: 5, last CPU#0: [ 10.623545][ T118] #0: ffffffff988167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.623556][ T118] #1: ffffffff9897ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.623560][ T118] #2: ffffffff9897de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.623565][ T118] #3: ffffffff9889d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.623568][ T118] #4: ffffffff9889d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.623572][ T118] irq event stamp: 151536 [ 10.623573][ T118] hardirqs last enabled at (151535): [] __down_trylock_console_sem+0x86/0xa0 [ 10.623576][ T118] hardirqs last disabled at (151536): [] console_emit_next_record+0x3d4/0x4c0 [ 10.623583][ T118] softirqs last enabled at (150978): [] handle_softirqs+0x67c/0x900 [ 10.623586][ T118] softirqs last disabled at (150973): [] __irq_exit_rcu+0x145/0x1c0 [ 10.623589][ T118] Preemption disabled at: [ 10.623589][ T118] [<0000000000000000>] 0x0 [ 10.623596][ T118] CPU: 0 UID: 0 PID: 118 Comm: su Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.623599][ T118] Tainted: [W]=WARN [ 10.623600][ T118] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.623602][ T118] Call Trace: [ 10.623603][ T118] [ 10.623605][ T118] dump_stack_lvl+0x6f/0xa0 [ 10.623611][ T118] __might_resched.cold+0x1fe/0x2c1 [ 10.623616][ T118] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.623620][ T118] ? __kmalloc_noprof+0xdb/0x760 [ 10.623624][ T118] __kmalloc_noprof+0x443/0x760 [ 10.623626][ T118] ? alloc_buf.isra.0+0x4b/0x260 [ 10.623633][ T118] ? do_raw_spin_unlock+0x59/0x250 [ 10.623636][ T118] alloc_buf.isra.0+0x4b/0x260 [ 10.623639][ T118] put_chars+0x1e1/0x2f0 [ 10.623642][ T118] ? __send_to_port+0x420/0x420 [ 10.623643][ T118] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.623646][ T118] ? validate_chain+0x38b/0xc20 [ 10.623652][ T118] hvc_console_print+0x292/0x780 [ 10.623659][ T118] ? hvc_write+0x3a0/0x3a0 [ 10.623662][ T118] ? rcu_is_watching+0x16/0xd0 [ 10.623664][ T118] ? lock_acquire+0x13c/0x160 [ 10.623668][ T118] console_emit_next_record+0x22f/0x4c0 [ 10.623672][ T118] ? devkmsg_read+0x4b0/0x4b0 [ 10.623673][ T118] ? console_flush_one_record+0x106/0x710 [ 10.623677][ T118] ? rcu_is_watching+0x16/0xd0 [ 10.623678][ T118] ? lock_acquire+0x13c/0x160 [ 10.623682][ T118] console_flush_one_record+0x46f/0x710 [ 10.623687][ T118] ? console_emit_next_record+0x4c0/0x4c0 [ 10.623688][ T118] ? __lock_acquire+0x518/0xc20 [ 10.623694][ T118] console_unlock+0xee/0x1f0 [ 10.623696][ T118] ? console_flush_one_record+0x710/0x710 [ 10.623698][ T118] ? rcu_is_watching+0x16/0xd0 [ 10.623700][ T118] ? lock_acquire+0xe0/0x160 [ 10.623703][ T118] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.623705][ T118] ? vprintk_emit+0x320/0x3e0 [ 10.623708][ T118] vprintk_emit+0x37c/0x3e0 [ 10.623711][ T118] ? wake_up_klogd_work_func+0x90/0x90 [ 10.623714][ T118] ? __lock_acquire+0x518/0xc20 [ 10.623717][ T118] _printk+0xc7/0x100 [ 10.623721][ T118] ? snapshot_read.cold+0x21/0x21 [ 10.623723][ T118] ? do_raw_spin_lock+0x131/0x280 [ 10.623726][ T118] ? __rwlock_init+0x150/0x150 [ 10.623730][ T118] ? do_raw_spin_lock+0x131/0x280 [ 10.623732][ T118] do_exit.cold+0x82/0x9c [ 10.623736][ T118] ? exit_notify+0x890/0x890 [ 10.623738][ T118] ? __lock_release.isra.0+0x69/0x1a0 [ 10.623740][ T118] ? rcu_is_watching+0x16/0xd0 [ 10.623744][ T118] do_group_exit+0xb8/0x370 [ 10.623746][ T118] __x64_sys_exit_group+0x3c/0x50 [ 10.623748][ T118] x64_sys_call+0x1567/0x1570 [ 10.623751][ T118] do_sysca