[ 9.875598][ T170] ip (170) used greatest stack depth: 24808 bytes left [ 9.875615][ T170] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.875617][ T170] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 170, name: ip [ 9.875619][ T170] preempt_count: 2, expected: 0 [ 9.875620][ T170] RCU nest depth: 0, expected: 0 [ 9.875621][ T170] locks held by ip/170: 5, last CPU#2: [ 9.875623][ T170] #0: ffffffff8cc027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 9.875635][ T170] #1: ffffffff8cd69cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.875640][ T170] #2: ffffffff8cd69d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.875644][ T170] #3: ffffffff8cc89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.875647][ T170] #4: ffffffff8cc89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.875651][ T170] irq event stamp: 30726 [ 9.875652][ T170] hardirqs last enabled at (30725): [] __down_trylock_console_sem+0x86/0xa0 [ 9.875656][ T170] hardirqs last disabled at (30726): [] console_emit_next_record+0x3d4/0x4c0 [ 9.875657][ T170] softirqs last enabled at (30720): [] handle_softirqs+0x67c/0x900 [ 9.875659][ T170] softirqs last disabled at (30553): [] __irq_exit_rcu+0x145/0x1c0 [ 9.875661][ T170] Preemption disabled at: [ 9.875662][ T170] [<0000000000000000>] 0x0 [ 9.875673][ T170] CPU: 2 UID: 0 PID: 170 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.875676][ T170] Tainted: [W]=WARN [ 9.875677][ T170] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.875679][ T170] Call Trace: [ 9.875681][ T170] [ 9.875682][ T170] dump_stack_lvl+0x6f/0xa0 [ 9.875688][ T170] __might_resched.cold+0x1fe/0x2c1 [ 9.875692][ T170] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.875696][ T170] ? __kmalloc_noprof+0xdb/0x760 [ 9.875701][ T170] __kmalloc_noprof+0x443/0x760 [ 9.875703][ T170] ? alloc_buf.isra.0+0x4b/0x260 [ 9.875710][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 9.875713][ T170] alloc_buf.isra.0+0x4b/0x260 [ 9.875716][ T170] put_chars+0x1e1/0x2f0 [ 9.875719][ T170] ? __send_to_port+0x420/0x420 [ 9.875721][ T170] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.875725][ T170] ? validate_chain+0x38b/0xc20 [ 9.875730][ T170] hvc_console_print+0x292/0x780 [ 9.875737][ T170] ? hvc_write+0x3a0/0x3a0 [ 9.875739][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.875741][ T170] ? lock_acquire+0x13c/0x160 [ 9.875745][ T170] console_emit_next_record+0x22f/0x4c0 [ 9.875748][ T170] ? devkmsg_read+0x4b0/0x4b0 [ 9.875750][ T170] ? console_flush_one_record+0x106/0x710 [ 9.875752][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.875754][ T170] ? lock_acquire+0x13c/0x160 [ 9.875758][ T170] console_flush_one_record+0x46f/0x710 [ 9.875762][ T170] ? console_emit_next_record+0x4c0/0x4c0 [ 9.875763][ T170] ? __lock_acquire+0x518/0xc20 [ 9.875768][ T170] console_unlock+0xee/0x1f0 [ 9.875771][ T170] ? console_flush_one_record+0x710/0x710 [ 9.875772][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.875774][ T170] ? lock_acquire+0x60/0x160 [ 9.875778][ T170] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.875779][ T170] ? vprintk_emit+0x320/0x3e0 [ 9.875782][ T170] vprintk_emit+0x37c/0x3e0 [ 9.875785][ T170] ? wake_up_klogd_work_func+0x90/0x90 [ 9.875788][ T170] ? __lock_acquire+0x518/0xc20 [ 9.875792][ T170] _printk+0xc7/0x100 [ 9.875796][ T170] ? snapshot_read.cold+0x21/0x21 [ 9.875799][ T170] ? do_raw_spin_lock+0x131/0x280 [ 9.875801][ T170] ? __rwlock_init+0x150/0x150 [ 9.875805][ T170] ? do_raw_spin_lock+0x131/0x280 [ 9.875808][ T170] do_exit.cold+0x82/0x9c [ 9.875811][ T170] ? exit_notify+0x890/0x890 [ 9.875813][ T170] ? __lock_release.isra.0+0x69/0x1a0 [ 9.875816][ T170] ? rcu_is_watching+0x16/0xd0 [ 9.875820][ T170] do_group_exit+0xb8/0x370 [ 9.875822][ T170] __x64_sys_exit_group+0x3c/0x50 [ 9.875825][ T170] x64_sys_call+0x1567/0x1570 [ 9.875827][ T170] do_syscall_64+0xff/0x530 [ 9.875831][ T170] ? exc_page_fault+0xee/0x100 [ 9.875834][ T170] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.875836][ T170] RIP: 0033:0x7f423b3ce1b8 [ 9.875839][ T170] Code: Unable to access opcode bytes at 0x7f423b3ce18e. [ 9.875840][ T170] RSP: 002b:00007ffcda7cbc38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 9.875842][ T170] RAX: ffffffffffffffda RBX: 00007f423b4fef88 RCX: 00007f423b3ce1b8 [ 9.875844][ T170] RDX: 00007f423b118fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 9.875845][ T170] RBP: 00007ffcda7cbc90 R08: 0000000000000000 R09: 0000000000008010 [ 9.875846][ T170] R10: 00007ffcda7cba50 R11: 0000000000000246 R12: 0000000000000001 [ 9.875846][ T170] R13: 0000000000000000 R14: 00007f423b4fd680 R15: 00007f423b4fefa0 [ 9.875853][ T170]