[ 12.168190][ T241] pm_nl_ctl (241) used greatest stack depth: 24544 bytes left [ 12.168209][ T241] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.168211][ T241] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 241, name: pm_nl_ctl [ 12.168212][ T241] preempt_count: 2, expected: 0 [ 12.168213][ T241] RCU nest depth: 0, expected: 0 [ 12.168214][ T241] locks held by pm_nl_ctl/241: 5, last CPU#1: [ 12.168217][ T241] #0: ffffffff976267b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 12.168228][ T241] #1: ffffffff9778dcc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.168234][ T241] #2: ffffffff9778dd38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.168237][ T241] #3: ffffffff976ad660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.168241][ T241] #4: ffffffff976ad560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.168245][ T241] irq event stamp: 49448 [ 12.168245][ T241] hardirqs last enabled at (49447): [] __down_trylock_console_sem+0x86/0xa0 [ 12.168248][ T241] hardirqs last disabled at (49448): [] console_emit_next_record+0x3d4/0x4c0 [ 12.168249][ T241] softirqs last enabled at (48708): [] netlink_release+0x17b/0xcf0 [ 12.168254][ T241] softirqs last disabled at (48706): [] netlink_release+0xd2/0xcf0 [ 12.168257][ T241] Preemption disabled at: [ 12.168257][ T241] [<0000000000000000>] 0x0 [ 12.168264][ T241] CPU: 1 UID: 0 PID: 241 Comm: pm_nl_ctl Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.168268][ T241] Tainted: [W]=WARN [ 12.168268][ T241] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.168270][ T241] Call Trace: [ 12.168272][ T241] [ 12.168273][ T241] dump_stack_lvl+0x6f/0xa0 [ 12.168279][ T241] __might_resched.cold+0x1fe/0x2c1 [ 12.168284][ T241] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.168288][ T241] ? __kmalloc_noprof+0xdb/0x760 [ 12.168293][ T241] __kmalloc_noprof+0x443/0x760 [ 12.168295][ T241] ? alloc_buf.isra.0+0x4b/0x260 [ 12.168301][ T241] ? do_raw_spin_unlock+0x59/0x250 [ 12.168303][ T241] alloc_buf.isra.0+0x4b/0x260 [ 12.168307][ T241] put_chars+0x1e1/0x2f0 [ 12.168310][ T241] ? __send_to_port+0x420/0x420 [ 12.168312][ T241] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.168317][ T241] ? validate_chain+0x38b/0xc20 [ 12.168322][ T241] hvc_console_print+0x292/0x780 [ 12.168329][ T241] ? hvc_write+0x3a0/0x3a0 [ 12.168332][ T241] ? rcu_is_watching+0x16/0xd0 [ 12.168334][ T241] ? lock_acquire+0x13c/0x160 [ 12.168338][ T241] console_emit_next_record+0x22f/0x4c0 [ 12.168341][ T241] ? devkmsg_read+0x4b0/0x4b0 [ 12.168343][ T241] ? console_flush_one_record+0x106/0x710 [ 12.168346][ T241] ? rcu_is_watching+0x16/0xd0 [ 12.168348][ T241] ? lock_acquire+0x13c/0x160 [ 12.168351][ T241] console_flush_one_record+0x46f/0x710 [ 12.168355][ T241] ? console_emit_next_record+0x4c0/0x4c0 [ 12.168357][ T241] ? __lock_acquire+0x518/0xc20 [ 12.168362][ T241] console_unlock+0xee/0x1f0 [ 12.168364][ T241] ? console_flush_one_record+0x710/0x710 [ 12.168366][ T241] ? rcu_is_watching+0x16/0xd0 [ 12.168368][ T241] ? lock_acquire+0x60/0x160 [ 12.168371][ T241] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.168373][ T241] ? vprintk_emit+0x320/0x3e0 [ 12.168376][ T241] vprintk_emit+0x37c/0x3e0 [ 12.168379][ T241] ? wake_up_klogd_work_func+0x90/0x90 [ 12.168382][ T241] ? __lock_acquire+0x518/0xc20 [ 12.168386][ T241] _printk+0xc7/0x100 [ 12.168390][ T241] ? snapshot_read.cold+0x21/0x21 [ 12.168392][ T241] ? do_raw_spin_lock+0x131/0x280 [ 12.168395][ T241] ? __rwlock_init+0x150/0x150 [ 12.168398][ T241] ? do_raw_spin_lock+0x131/0x280 [ 12.168401][ T241] do_exit.cold+0x82/0x9c [ 12.168405][ T241] ? exit_notify+0x890/0x890 [ 12.168406][ T241] ? __lock_release.isra.0+0x69/0x1a0 [ 12.168409][ T241] ? rcu_is_watching+0x16/0xd0 [ 12.168413][ T241] do_group_exit+0xb8/0x370 [ 12.168416][ T241] __x64_sys_exit_group+0x3c/0x50 [ 12.168418][ T241] x64_sys_call+0x1567/0x1570 [ 12.168420][ T241] do_syscall_64+0xff/0x530 [ 12.168423][ T241] ? exc_page_fault+0xee/0x100 [ 12.168426][ T241] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.168429][ T241] RIP: 0033:0x7f85734a51b8 [ 12.168431][ T241] Code: Unable to access opcode bytes at 0x7f85734a518e. [ 12.168432][ T241] RSP: 002b:00007ffc85a65488 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 12.168434][ T241] RAX: ffffffffffffffda RBX: 00007f85735d5f88 RCX: 00007f85734a51b8 [ 12.168436][ T241] RDX: 00007f85733e2a48 RSI: ffffffffffffffb0 RDI: 0000000000000000 [ 12.168437][ T241] RBP: 00007ffc85a654e0 R08: 0000000000000000 R09: 0000000000000000 [ 12.168437][ T241] R10: 00007ffc85a65320 R11: 0000000000000246 R12: 0000000000000001 [ 12.168438][ T241] R13: 0000000000000000 R14: 00007f85735d4680 R15: 00007f85735d5fa0 [ 12.168445][ T241]