[ 10.396130][ T213] ip (213) used greatest stack depth: 23904 bytes left [ 10.396146][ T213] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.396148][ T213] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 213, name: ip [ 10.396149][ T213] preempt_count: 2, expected: 0 [ 10.396150][ T213] RCU nest depth: 0, expected: 0 [ 10.396151][ T213] locks held by ip/213: 5, last CPU#3: [ 10.396153][ T213] #0: ffffffffb1a167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.396165][ T213] #1: ffffffffb1b7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.396170][ T213] #2: ffffffffb1b7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.396174][ T213] #3: ffffffffb1a9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.396178][ T213] #4: ffffffffb1a9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.396182][ T213] irq event stamp: 23398 [ 10.396183][ T213] hardirqs last enabled at (23397): [] __down_trylock_console_sem+0x86/0xa0 [ 10.396186][ T213] hardirqs last disabled at (23398): [] console_emit_next_record+0x3d4/0x4c0 [ 10.396188][ T213] softirqs last enabled at (22200): [] handle_softirqs+0x67c/0x900 [ 10.396190][ T213] softirqs last disabled at (21407): [] __irq_exit_rcu+0x145/0x1c0 [ 10.396193][ T213] Preemption disabled at: [ 10.396193][ T213] [<0000000000000000>] 0x0 [ 10.396201][ T213] CPU: 3 UID: 0 PID: 213 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.396204][ T213] Tainted: [W]=WARN [ 10.396205][ T213] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.396207][ T213] Call Trace: [ 10.396209][ T213] [ 10.396210][ T213] dump_stack_lvl+0x6f/0xa0 [ 10.396217][ T213] __might_resched.cold+0x1fe/0x2c1 [ 10.396221][ T213] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.396225][ T213] ? __kmalloc_noprof+0xdb/0x760 [ 10.396230][ T213] __kmalloc_noprof+0x443/0x760 [ 10.396231][ T213] ? alloc_buf.isra.0+0x4b/0x260 [ 10.396238][ T213] ? do_raw_spin_unlock+0x59/0x250 [ 10.396241][ T213] alloc_buf.isra.0+0x4b/0x260 [ 10.396245][ T213] put_chars+0x1e1/0x2f0 [ 10.396247][ T213] ? __send_to_port+0x420/0x420 [ 10.396248][ T213] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.396252][ T213] ? validate_chain+0x38b/0xc20 [ 10.396257][ T213] hvc_console_print+0x292/0x780 [ 10.396265][ T213] ? hvc_write+0x3a0/0x3a0 [ 10.396268][ T213] ? rcu_is_watching+0x16/0xd0 [ 10.396269][ T213] ? lock_acquire+0x13c/0x160 [ 10.396274][ T213] console_emit_next_record+0x22f/0x4c0 [ 10.396277][ T213] ? devkmsg_read+0x4b0/0x4b0 [ 10.396279][ T213] ? console_flush_one_record+0x106/0x710 [ 10.396283][ T213] ? rcu_is_watching+0x16/0xd0 [ 10.396284][ T213] ? lock_acquire+0x13c/0x160 [ 10.396288][ T213] console_flush_one_record+0x46f/0x710 [ 10.396293][ T213] ? console_emit_next_record+0x4c0/0x4c0 [ 10.396295][ T213] ? __lock_acquire+0x518/0xc20 [ 10.396300][ T213] console_unlock+0xee/0x1f0 [ 10.396303][ T213] ? console_flush_one_record+0x710/0x710 [ 10.396305][ T213] ? rcu_is_watching+0x16/0xd0 [ 10.396306][ T213] ? lock_acquire+0xe0/0x160 [ 10.396310][ T213] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.396312][ T213] ? vprintk_emit+0x320/0x3e0 [ 10.396315][ T213] vprintk_emit+0x37c/0x3e0 [ 10.396318][ T213] ? wake_up_klogd_work_func+0x90/0x90 [ 10.396321][ T213] ? __lock_acquire+0x518/0xc20 [ 10.396324][ T213] _printk+0xc7/0x100 [ 10.396328][ T213] ? snapshot_read.cold+0x21/0x21 [ 10.396331][ T213] ? do_raw_spin_lock+0x131/0x280 [ 10.396334][ T213] ? __rwlock_init+0x150/0x150 [ 10.396338][ T213] ? do_raw_spin_lock+0x131/0x280 [ 10.396340][ T213] do_exit.cold+0x82/0x9c [ 10.396344][ T213] ? exit_notify+0x890/0x890 [ 10.396346][ T213] ? __lock_release.isra.0+0x69/0x1a0 [ 10.396349][ T213] ? rcu_is_watching+0x16/0xd0 [ 10.396352][ T213] do_group_exit+0xb8/0x370 [ 10.396355][ T213] __x64_sys_exit_group+0x3c/0x50 [ 10.396357][ T213] x64_sys_call+0x1567/0x1570 [ 10.396359][ T213] do_syscall_64+0xff/0x530 [ 10.396364][ T213] ? exc_page_fault+0xee/0x100 [ 10.396367][ T213] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.396369][ T213] RIP: 0033:0x7f5410a6d1b8 [ 10.396371][ T213] Code: Unable to access opcode bytes at 0x7f5410a6d18e. [ 10.396372][ T213] RSP: 002b:00007ffdba135948 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.396375][ T213] RAX: ffffffffffffffda RBX: 00007f5410b9df88 RCX: 00007f5410a6d1b8 [ 10.396376][ T213] RDX: 00007f54107b7fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 10.396377][ T213] RBP: 00007ffdba1359a0 R08: 0000000000000000 R09: 0000000000000050 [ 10.396378][ T213] R10: 00007ffdba135760 R11: 0000000000000246 R12: 0000000000000001 [ 10.396379][ T213] R13: 0000000000000000 R14: 00007f5410b9c680 R15: 00007f5410b9dfa0 [ 10.396385][ T213]