[ 45.833643][ T385] nstat (385) used greatest stack depth: 23440 bytes left [ 45.833660][ T385] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 45.833662][ T385] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 385, name: nstat [ 45.833664][ T385] preempt_count: 2, expected: 0 [ 45.833665][ T385] RCU nest depth: 0, expected: 0 [ 45.833666][ T385] locks held by nstat/385: 5, last CPU#0: [ 45.833668][ T385] #0: ffffffffb22267b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 45.833682][ T385] #1: ffffffffb238dcc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 45.833688][ T385] #2: ffffffffb238dd38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 45.833692][ T385] #3: ffffffffb22ad660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 45.833695][ T385] #4: ffffffffb22ad560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 45.833699][ T385] irq event stamp: 37980 [ 45.833700][ T385] hardirqs last enabled at (37979): [] __down_trylock_console_sem+0x86/0xa0 [ 45.833702][ T385] hardirqs last disabled at (37980): [] console_emit_next_record+0x3d4/0x4c0 [ 45.833704][ T385] softirqs last enabled at (34684): [] handle_softirqs+0x67c/0x900 [ 45.833706][ T385] softirqs last disabled at (33779): [] __irq_exit_rcu+0x145/0x1c0 [ 45.833709][ T385] Preemption disabled at: [ 45.833709][ T385] [<0000000000000000>] 0x0 [ 45.833717][ T385] CPU: 0 UID: 0 PID: 385 Comm: nstat Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 45.833720][ T385] Tainted: [W]=WARN [ 45.833721][ T385] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 45.833723][ T385] Call Trace: [ 45.833724][ T385] [ 45.833726][ T385] dump_stack_lvl+0x6f/0xa0 [ 45.833732][ T385] __might_resched.cold+0x1fe/0x2c1 [ 45.833737][ T385] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 45.833741][ T385] ? __kmalloc_noprof+0xdb/0x760 [ 45.833746][ T385] __kmalloc_noprof+0x443/0x760 [ 45.833748][ T385] ? alloc_buf.isra.0+0x4b/0x260 [ 45.833754][ T385] ? do_raw_spin_unlock+0x59/0x250 [ 45.833757][ T385] alloc_buf.isra.0+0x4b/0x260 [ 45.833761][ T385] put_chars+0x1e1/0x2f0 [ 45.833764][ T385] ? __send_to_port+0x420/0x420 [ 45.833766][ T385] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 45.833771][ T385] ? validate_chain+0x38b/0xc20 [ 45.833776][ T385] hvc_console_print+0x292/0x780 [ 45.833783][ T385] ? hvc_write+0x3a0/0x3a0 [ 45.833786][ T385] ? rcu_is_watching+0x16/0xd0 [ 45.833788][ T385] ? lock_acquire+0x13c/0x160 [ 45.833792][ T385] console_emit_next_record+0x22f/0x4c0 [ 45.833796][ T385] ? devkmsg_read+0x4b0/0x4b0 [ 45.833797][ T385] ? console_flush_one_record+0x106/0x710 [ 45.833800][ T385] ? rcu_is_watching+0x16/0xd0 [ 45.833803][ T385] ? lock_acquire+0x13c/0x160 [ 45.833806][ T385] console_flush_one_record+0x46f/0x710 [ 45.833810][ T385] ? console_emit_next_record+0x4c0/0x4c0 [ 45.833812][ T385] ? __lock_acquire+0x518/0xc20 [ 45.833817][ T385] console_unlock+0xee/0x1f0 [ 45.833820][ T385] ? console_flush_one_record+0x710/0x710 [ 45.833821][ T385] ? rcu_is_watching+0x16/0xd0 [ 45.833824][ T385] ? lock_acquire+0x60/0x160 [ 45.833827][ T385] ? __down_trylock_console_sem+0x5e/0xa0 [ 45.833829][ T385] ? vprintk_emit+0x320/0x3e0 [ 45.833832][ T385] vprintk_emit+0x37c/0x3e0 [ 45.833835][ T385] ? wake_up_klogd_work_func+0x90/0x90 [ 45.833839][ T385] ? __lock_acquire+0x518/0xc20 [ 45.833842][ T385] _printk+0xc7/0x100 [ 45.833846][ T385] ? snapshot_read.cold+0x21/0x21 [ 45.833849][ T385] ? do_raw_spin_lock+0x131/0x280 [ 45.833851][ T385] ? __rwlock_init+0x150/0x150 [ 45.833855][ T385] ? do_raw_spin_lock+0x131/0x280 [ 45.833857][ T385] do_exit.cold+0x82/0x9c [ 45.833861][ T385] ? exit_notify+0x890/0x890 [ 45.833863][ T385] ? __lock_release.isra.0+0x69/0x1a0 [ 45.833865][ T385] ? rcu_is_watching+0x16/0xd0 [ 45.833869][ T385] do_group_exit+0xb8/0x370 [ 45.833873][ T385] __x64_sys_exit_group+0x3c/0x50 [ 45.833875][ T385] x64_sys_call+0x1567/0x1570 [ 45.833877][ T385] do_syscall_64+0xff/0x530 [ 45.833881][ T385] ? exc_page_fault+0xee/0x100 [ 45.833884][ T385] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 45.833886][ T385] RIP: 0033:0x7f6da98771b8 [ 45.833889][ T385] Code: Unable to access opcode bytes at 0x7f6da987718e. [ 45.833890][ T385] RSP: 002b:00007ffcb8495c48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 45.833893][ T385] RAX: ffffffffffffffda RBX: 00007f6da99a7f88 RCX: 00007f6da98771b8 [ 45.833894][ T385] RDX: 00007f6da969ea88 RSI: ffffffffffffffa0 RDI: 0000000000000000 [ 45.833895][ T385] RBP: 00007ffcb8495ca0 R08: 0000000000000000 R09: 00000000000001e0 [ 45.833896][ T385] R10: 00007ffcb8495a80 R11: 0000000000000246 R12: 0000000000000001 [ 45.833897][ T385] R13: 0000000000000000 R14: 00007f6da99a6680 R15: 00007f6da99a7fa0 [ 45.833904][ T385]