[ 12.628852][ T109] su (109) used greatest stack depth: 24104 bytes left [ 12.628870][ T109] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.628872][ T109] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 109, name: su [ 12.628874][ T109] preempt_count: 2, expected: 0 [ 12.628875][ T109] RCU nest depth: 0, expected: 0 [ 12.628876][ T109] locks held by su/109: 5, last CPU#3: [ 12.628878][ T109] #0: ffffffff86a027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 12.628890][ T109] #1: ffffffff86b69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.628895][ T109] #2: ffffffff86b69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.628899][ T109] #3: ffffffff86a89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.628902][ T109] #4: ffffffff86a89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.628905][ T109] irq event stamp: 163226 [ 12.628906][ T109] hardirqs last enabled at (163225): [] __down_trylock_console_sem+0x86/0xa0 [ 12.628909][ T109] hardirqs last disabled at (163226): [] console_emit_next_record+0x3d4/0x4c0 [ 12.628911][ T109] softirqs last enabled at (162738): [] handle_softirqs+0x67c/0x900 [ 12.628913][ T109] softirqs last disabled at (161309): [] __irq_exit_rcu+0x145/0x1c0 [ 12.628915][ T109] Preemption disabled at: [ 12.628916][ T109] [<0000000000000000>] 0x0 [ 12.628922][ T109] CPU: 3 UID: 0 PID: 109 Comm: su Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.628926][ T109] Tainted: [W]=WARN [ 12.628926][ T109] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.628928][ T109] Call Trace: [ 12.628930][ T109] [ 12.628931][ T109] dump_stack_lvl+0x6f/0xa0 [ 12.628936][ T109] __might_resched.cold+0x1fe/0x2c1 [ 12.628941][ T109] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.628944][ T109] ? __kmalloc_noprof+0xdb/0x760 [ 12.628949][ T109] __kmalloc_noprof+0x443/0x760 [ 12.628952][ T109] ? alloc_buf.isra.0+0x4b/0x260 [ 12.628958][ T109] ? do_raw_spin_unlock+0x59/0x250 [ 12.628961][ T109] alloc_buf.isra.0+0x4b/0x260 [ 12.628964][ T109] put_chars+0x1e1/0x2f0 [ 12.628967][ T109] ? __send_to_port+0x420/0x420 [ 12.628969][ T109] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.628973][ T109] ? validate_chain+0x38b/0xc20 [ 12.628978][ T109] hvc_console_print+0x292/0x780 [ 12.628984][ T109] ? hvc_write+0x3a0/0x3a0 [ 12.628987][ T109] ? rcu_is_watching+0x16/0xd0 [ 12.628989][ T109] ? lock_acquire+0x13c/0x160 [ 12.628993][ T109] console_emit_next_record+0x22f/0x4c0 [ 12.628996][ T109] ? devkmsg_read+0x4b0/0x4b0 [ 12.628997][ T109] ? console_flush_one_record+0x106/0x710 [ 12.629000][ T109] ? rcu_is_watching+0x16/0xd0 [ 12.629002][ T109] ? lock_acquire+0x13c/0x160 [ 12.629006][ T109] console_flush_one_record+0x46f/0x710 [ 12.629009][ T109] ? console_emit_next_record+0x4c0/0x4c0 [ 12.629011][ T109] ? __lock_acquire+0x518/0xc20 [ 12.629016][ T109] console_unlock+0xee/0x1f0 [ 12.629018][ T109] ? console_flush_one_record+0x710/0x710 [ 12.629019][ T109] ? rcu_is_watching+0x16/0xd0 [ 12.629021][ T109] ? lock_acquire+0x60/0x160 [ 12.629025][ T109] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.629027][ T109] ? vprintk_emit+0x320/0x3e0 [ 12.629030][ T109] vprintk_emit+0x37c/0x3e0 [ 12.629033][ T109] ? wake_up_klogd_work_func+0x90/0x90 [ 12.629036][ T109] ? __lock_acquire+0x518/0xc20 [ 12.629040][ T109] _printk+0xc7/0x100 [ 12.629044][ T109] ? snapshot_read.cold+0x21/0x21 [ 12.629046][ T109] ? do_raw_spin_lock+0x131/0x280 [ 12.629049][ T109] ? __rwlock_init+0x150/0x150 [ 12.629053][ T109] ? do_raw_spin_lock+0x131/0x280 [ 12.629056][ T109] do_exit.cold+0x82/0x9c [ 12.629059][ T109] ? exit_notify+0x890/0x890 [ 12.629061][ T109] ? __lock_release.isra.0+0x69/0x1a0 [ 12.629064][ T109] ? rcu_is_watching+0x16/0xd0 [ 12.629067][ T109] do_group_exit+0xb8/0x370 [ 12.629070][ T109] __x64_sys_exit_group+0x3c/0x50 [ 12.629072][ T109] x64_sys_call+0x1567/0x1570 [ 12.629075][ T109] do_syscall_64+0xff/0x530 [ 12.629079][ T109] ? exc_page_fault+0xee/0x100 [ 12.629082][ T109] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.629084][ T109] RIP: 0033