[ 17.018279][ T407] ip (407) used greatest stack depth: 23520 bytes left [ 17.018297][ T407] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 17.018299][ T407] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 407, name: ip [ 17.018301][ T407] preempt_count: 2, expected: 0 [ 17.018302][ T407] RCU nest depth: 0, expected: 0 [ 17.018303][ T407] locks held by ip/407: 5, last CPU#3: [ 17.018305][ T407] #0: ffffffffb1402f58 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x8e7/0xef0 [ 17.018325][ T407] #1: ffffffffb156a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 17.018330][ T407] #2: ffffffffb156a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 17.018334][ T407] #3: ffffffffb1489de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 17.018337][ T407] #4: ffffffffb1489ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 17.018341][ T407] irq event stamp: 40686 [ 17.018342][ T407] hardirqs last enabled at (40685): [] __down_trylock_console_sem+0x86/0xa0 [ 17.018346][ T407] hardirqs last disabled at (40686): [] console_emit_next_record+0x3d4/0x4c0 [ 17.018347][ T407] softirqs last enabled at (40598): [] handle_softirqs+0x67c/0x900 [ 17.018350][ T407] softirqs last disabled at (40593): [] __irq_exit_rcu+0x145/0x1c0 [ 17.018353][ T407] Preemption disabled at: [ 17.018353][ T407] [<0000000000000000>] 0x0 [ 17.018360][ T407] CPU: 3 UID: 0 PID: 407 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.018364][ T407] Tainted: [W]=WARN [ 17.018364][ T407] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.018366][ T407] Call Trace: [ 17.018368][ T407] [ 17.018369][ T407] dump_stack_lvl+0x6f/0xa0 [ 17.018375][ T407] __might_resched.cold+0x1fe/0x2c1 [ 17.018380][ T407] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.018383][ T407] ? __kmalloc_noprof+0xdb/0x760 [ 17.018388][ T407] __kmalloc_noprof+0x443/0x760 [ 17.018391][ T407] ? alloc_buf.isra.0+0x4b/0x260 [ 17.018397][ T407] ? do_raw_spin_unlock+0x59/0x250 [ 17.018401][ T407] alloc_buf.isra.0+0x4b/0x260 [ 17.018404][ T407] put_chars+0x1e1/0x2f0 [ 17.018407][ T407] ? __send_to_port+0x420/0x420 [ 17.018414][ T407] hvc_console_print+0x292/0x780 [ 17.018421][ T407] ? hvc_write+0x3a0/0x3a0 [ 17.018424][ T407] ? lock_acquire+0x13c/0x160 [ 17.018429][ T407] console_emit_next_record+0x22f/0x4c0 [ 17.018432][ T407] ? devkmsg_read+0x4b0/0x4b0 [ 17.018433][ T407] ? console_flush_one_record+0x106/0x710 [ 17.018436][ T407] ? rcu_is_watching+0x16/0xd0 [ 17.018440][ T407] ? lock_acquire+0x13c/0x160 [ 17.018444][ T407] console_flush_one_record+0x46f/0x710 [ 17.018448][ T407] ? console_emit_next_record+0x4c0/0x4c0 [ 17.018449][ T407] ? __lock_acquire+0x518/0xc20 [ 17.018455][ T407] console_unlock+0xee/0x1f0 [ 17.018457][ T407] ? console_flush_one_record+0x710/0x710 [ 17.018458][ T407] ? rcu_is_watching+0x16/0xd0 [ 17.018460][ T407] ? lock_acquire+0x60/0x160 [ 17.018464][ T407] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.018466][ T407] ? vprintk_emit+0x320/0x3e0 [ 17.018469][ T407] vprintk_emit+0x37c/0x3e0 [ 17.018472][ T407] ? wake_up_klogd_work_func+0x90/0x90 [ 17.018475][ T407] ? __lock_acquire+0x518/0xc20 [ 17.018479][ T407] _printk+0xc7/0x100 [ 17.018483][ T407] ? snapshot_read.cold+0x21/0x21 [ 17.018486][ T407] ? do_raw_spin_lock+0x131/0x280 [ 17.018489][ T407] ? __rwlock_init+0x150/0x150 [ 17.018493][ T407] ? do_raw_spin_lock+0x131/0x280 [ 17.018496][ T407] do_exit.cold+0x82/0x9c [ 17.018500][ T407] ? exit_notify+0x890/0x890 [ 17.018501][ T407] ? __lock_release.isra.0+0x69/0x1a0 [ 17.018505][ T407] ? rcu_is_watching+0x16/0xd0 [ 17.018509][ T407] do_group_exit+0xb8/0x370 [ 17.018512][ T407] __x64_sys_exit_group+0x3c/0x50 [ 17.018514][ T407] x64_sys_call+0x1567/0x1570 [ 17.018517][ T407] do_syscall_64+0x10e/0x570 [ 17.018520][ T407] ? exc_page_fault+0xee/0x100 [ 17.018524][ T407] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.018526][ T407] RIP: 0033:0x7f7a3a3451b8 [ 17.018528][ T407] Code: Unable to access opcode bytes at 0x7f7a3a34518e. [ 17.018529][ T407] RSP: 002b:00007ffd8dde4038 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 17.018532][ T407] RAX: ffffffffffffffda RBX: 00007f7a3a475f88 RCX: 00007f7a3a3451b8 [ 17.018533][ T407] RDX: 00007f7a3a08ffc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 17.018534][ T407] RBP: 00007ffd8dde4090 R08: 0000000000000000 R09: 0000000000000000 [ 17.018535][ T407] R10: 00007ffd8dde3e50 R11: 0000000000000246 R12: 0000000000000001 [ 17.018535][ T407] R13: 0000000000000000 R14: 00007f7a3a474680 R15: 00007f7a3a475fa0 [ 17.018543][ T407]