[ 21.911520][ T312] ip (312) used greatest stack depth: 23968 bytes left [ 21.911536][ T312] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 21.911538][ T312] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 312, name: ip [ 21.911539][ T312] preempt_count: 2, expected: 0 [ 21.911540][ T312] RCU nest depth: 0, expected: 0 [ 21.911541][ T312] locks held by ip/312: 5, last CPU#2: [ 21.911543][ T312] #0: fffffffface167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 21.911554][ T312] #1: ffffffffacf7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 21.911559][ T312] #2: ffffffffacf7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 21.911563][ T312] #3: fffffffface9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 21.911567][ T312] #4: fffffffface9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 21.911571][ T312] irq event stamp: 22488 [ 21.911572][ T312] hardirqs last enabled at (22487): [] __down_trylock_console_sem+0x86/0xa0 [ 21.911575][ T312] hardirqs last disabled at (22488): [] console_emit_next_record+0x3d4/0x4c0 [ 21.911577][ T312] softirqs last enabled at (21422): [] handle_softirqs+0x67c/0x900 [ 21.911579][ T312] softirqs last disabled at (21417): [] __irq_exit_rcu+0x145/0x1c0 [ 21.911581][ T312] Preemption disabled at: [ 21.911582][ T312] [<0000000000000000>] 0x0 [ 21.911590][ T312] CPU: 2 UID: 0 PID: 312 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 21.911593][ T312] Tainted: [W]=WARN [ 21.911594][ T312] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 21.911595][ T312] Call Trace: [ 21.911597][ T312] [ 21.911598][ T312] dump_stack_lvl+0x6f/0xa0 [ 21.911605][ T312] __might_resched.cold+0x1fe/0x2c1 [ 21.911609][ T312] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 21.911613][ T312] ? __kmalloc_noprof+0xdb/0x760 [ 21.911617][ T312] __kmalloc_noprof+0x443/0x760 [ 21.911619][ T312] ? alloc_buf.isra.0+0x4b/0x260 [ 21.911626][ T312] ? do_raw_spin_unlock+0x59/0x250 [ 21.911629][ T312] alloc_buf.isra.0+0x4b/0x260 [ 21.911633][ T312] put_chars+0x1e1/0x2f0 [ 21.911635][ T312] ? __send_to_port+0x420/0x420 [ 21.911637][ T312] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 21.911640][ T312] ? validate_chain+0x38b/0xc20 [ 21.911645][ T312] hvc_console_print+0x292/0x780 [ 21.911653][ T312] ? hvc_write+0x3a0/0x3a0 [ 21.911655][ T312] ? rcu_is_watching+0x16/0xd0 [ 21.911657][ T312] ? lock_acquire+0x13c/0x160 [ 21.911661][ T312] console_emit_next_record+0x22f/0x4c0 [ 21.911665][ T312] ? devkmsg_read+0x4b0/0x4b0 [ 21.911667][ T312] ? console_flush_one_record+0x106/0x710 [ 21.911670][ T312] ? rcu_is_watching+0x16/0xd0 [ 21.911672][ T312] ? lock_acquire+0x13c/0x160 [ 21.911676][ T312] console_flush_one_record+0x46f/0x710 [ 21.911680][ T312] ? console_emit_next_record+0x4c0/0x4c0 [ 21.911681][ T312] ? __lock_acquire+0x518/0xc20 [ 21.911687][ T312] console_unlock+0xee/0x1f0 [ 21.911690][ T312] ? console_flush_one_record+0x710/0x710 [ 21.911691][ T312] ? rcu_is_watching+0x16/0xd0 [ 21.911693][ T312] ? lock_acquire+0xe0/0x160 [ 21.911697][ T312] ? __down_trylock_console_sem+0x5e/0xa0 [ 21.911699][ T312] ? vprintk_emit+0x320/0x3e0 [ 21.911701][ T312] vprintk_emit+0x37c/0x3e0 [ 21.911704][ T312] ? wake_up_klogd_work_func+0x90/0x90 [ 21.911707][ T312] ? __lock_acquire+0x518/0xc20 [ 21.911711][ T312] _printk+0xc7/0x100 [ 21.911714][ T312] ? snapshot_read.cold+0x21/0x21 [ 21.911717][ T312] ? do_raw_spin_lock+0x131/0x280 [ 21.911720][ T312] ? __rwlock_init+0x150/0x150 [ 21.911723][ T312] ? do_raw_spin_lock+0x131/0x280 [ 21.911726][ T312] do_exit.cold+0x82/0x9c [ 21.911730][ T312] ? exit_notify+0x890/0x890 [ 21.911731][ T312] ? __lock_release.isra.0+0x69/0x1a0 [ 21.911734][ T312] ? rcu_is_watching+0x16/0xd0 [ 21.911737][ T312] do_group_exit+0xb8/0x370 [ 21.911740][ T312] __x64_sys_exit_group+0x3c/0x50 [ 21.911742][ T312] x64_sys_call+0x1567/0x1570 [ 21.911745][ T312] do_syscall_64+0xff/0x530 [ 21.911748][ T312] ? exc_page_fault+0xee/0x100 [ 21.911751][ T312] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 21.911753][ T312] RIP: 0033:0x7f62527d11b8 [ 21.911755][ T312] Code: Unable to access opcode bytes at 0x7f62527d118e. [ 21.911757][ T312] RSP: 002b:00007fffb135f998 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 21.911759][ T312] RAX: ffffffffffffffda RBX: 00007f6252901f88 RCX: 00007f62527d11b8 [ 21.911760][ T312] RDX: 00007f625251bfc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 21.911761][ T312] RBP: 00007fffb135f9f0 R08: 0000000000000000 R09: 0000000000000050 [ 21.911762][ T312] R10: 00007fffb135f7b0 R11: 0000000000000246 R12: 0000000000000001 [ 21.911763][ T312] R13: 0000000000000000 R14: 00007f6252900680 R15: 00007f6252901fa0 [ 21.911769][ T312]