[ 12.754865][ T312] nstat (312) used greatest stack depth: 23632 bytes left [ 12.754883][ T312] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.754885][ T312] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 312, name: nstat [ 12.754887][ T312] preempt_count: 2, expected: 0 [ 12.754888][ T312] RCU nest depth: 0, expected: 0 [ 12.754889][ T312] locks held by nstat/312: 5, last CPU#1: [ 12.754891][ T312] #0: ffffffffa84027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 12.754903][ T312] #1: ffffffffa8569cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.754909][ T312] #2: ffffffffa8569d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.754913][ T312] #3: ffffffffa8489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.754916][ T312] #4: ffffffffa8489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.754921][ T312] irq event stamp: 25152 [ 12.754922][ T312] hardirqs last enabled at (25151): [] __down_trylock_console_sem+0x86/0xa0 [ 12.754925][ T312] hardirqs last disabled at (25152): [] console_emit_next_record+0x3d4/0x4c0 [ 12.754927][ T312] softirqs last enabled at (24224): [] handle_softirqs+0x67c/0x900 [ 12.754929][ T312] softirqs last disabled at (23131): [] __irq_exit_rcu+0x145/0x1c0 [ 12.754932][ T312] Preemption disabled at: [ 12.754933][ T312] [<0000000000000000>] 0x0 [ 12.754941][ T312] CPU: 1 UID: 0 PID: 312 Comm: nstat Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.754944][ T312] Tainted: [W]=WARN [ 12.754945][ T312] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.754947][ T312] Call Trace: [ 12.754948][ T312] [ 12.754950][ T312] dump_stack_lvl+0x6f/0xa0 [ 12.754956][ T312] __might_resched.cold+0x1fe/0x2c1 [ 12.754967][ T312] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.754971][ T312] ? __kmalloc_noprof+0xdb/0x760 [ 12.754976][ T312] __kmalloc_noprof+0x443/0x760 [ 12.754978][ T312] ? alloc_buf.isra.0+0x4b/0x260 [ 12.754984][ T312] ? do_raw_spin_unlock+0x59/0x250 [ 12.754987][ T312] alloc_buf.isra.0+0x4b/0x260 [ 12.754991][ T312] put_chars+0x1e1/0x2f0 [ 12.754994][ T312] ? __send_to_port+0x420/0x420 [ 12.754995][ T312] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.754999][ T312] ? validate_chain+0x38b/0xc20 [ 12.755005][ T312] hvc_console_print+0x292/0x780 [ 12.755012][ T312] ? hvc_write+0x3a0/0x3a0 [ 12.755015][ T312] ? rcu_is_watching+0x16/0xd0 [ 12.755018][ T312] ? lock_acquire+0x13c/0x160 [ 12.755023][ T312] console_emit_next_record+0x22f/0x4c0 [ 12.755026][ T312] ? devkmsg_read+0x4b0/0x4b0 [ 12.755028][ T312] ? console_flush_one_record+0x106/0x710 [ 12.755031][ T312] ? rcu_is_watching+0x16/0xd0 [ 12.755033][ T312] ? lock_acquire+0x13c/0x160 [ 12.755037][ T312] console_flush_one_record+0x46f/0x710 [ 12.755041][ T312] ? console_emit_next_record+0x4c0/0x4c0 [ 12.755043][ T312] ? __lock_acquire+0x518/0xc20 [ 12.755048][ T312] console_unlock+0xee/0x1f0 [ 12.755051][ T312] ? console_flush_one_record+0x710/0x710 [ 12.755052][ T312] ? rcu_is_watching+0x16/0xd0 [ 12.755054][ T312] ? lock_acquire+0x60/0x160 [ 12.755058][ T312] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.755060][ T312] ? vprintk_emit+0x320/0x3e0 [ 12.755063][ T312] vprintk_emit+0x37c/0x3e0 [ 12.755066][ T312] ? wake_up_klogd_work_func+0x90/0x90 [ 12.755069][ T312] ? __lock_acquire+0x518/0xc20 [ 12.755072][ T312] _printk+0xc7/0x100 [ 12.755077][ T312] ? snapshot_read.cold+0x21/0x21 [ 12.755079][ T312] ? do_raw_spin_lock+0x131/0x280 [ 12.755082][ T312] ? __rwlock_init+0x150/0x150 [ 12.755086][ T312] ? do_raw_spin_lock+0x131/0x280 [ 12.755089][ T312] do_exit.cold+0x82/0x9c [ 12.755092][ T312] ? exit_notify+0x890/0x890 [ 12.755094][ T312] ? __lock_release.isra.0+0x69/0x1a0 [ 12.755097][ T312] ? rcu_is_watching+0x16/0xd0 [ 12.755101][ T312] do_group_exit+0xb8/0x370 [ 12.755104][ T312] __x64_sys_exit_group+0x3c/0x50 [ 12.755106][ T312] x64_sys_call+0x1567/0x1570 [ 12.755108][ T312] do_syscall_64+0xff/0x530 [ 12.755112][ T312] ? exc_page_fault+0xee/0x100 [ 12.755115][ T312] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.755117][ T312] RIP: 0033:0x7f032d0031b8 [ 12.755120][ T312] Code: Unable to access opcode bytes at 0x7f032d00318e. [ 12.755121][ T312] RSP: 002b:00007ffc2f94f238 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 12.755123][ T312] RAX: ffffffffffffffda RBX: 00007f032d133f88 RCX: 00007f032d0031b8 [ 12.755125][ T312] RDX: 00007f032ce2aa88 RSI: ffffffffffffffa0 RDI: 0000000000000000 [ 12.755126][ T312] RBP: 00007ffc2f94f290 R08: 0000000000000000 R09: 0000000000000000 [ 12.755126][ T312] R10: 00007ffc2f94f070 R11: 0000000000000246 R12: 0000000000000001 [ 12.755127][ T312] R13: 0000000000000000 R14: 00007f032d132680 R15: 00007f032d133fa0 [ 12.755134][ T312]