[ 9.907220][ T187] ip (187) used greatest stack depth: 23760 bytes left [ 9.907237][ T187] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.907239][ T187] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 187, name: ip [ 9.907241][ T187] preempt_count: 2, expected: 0 [ 9.907241][ T187] RCU nest depth: 0, expected: 0 [ 9.907242][ T187] locks held by ip/187: 5, last CPU#0: [ 9.907245][ T187] #0: ffffffff8e4027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 9.907258][ T187] #1: ffffffff8e569cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.907263][ T187] #2: ffffffff8e569d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.907267][ T187] #3: ffffffff8e489660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.907270][ T187] #4: ffffffff8e489560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.907274][ T187] irq event stamp: 40790 [ 9.907275][ T187] hardirqs last enabled at (40789): [] __down_trylock_console_sem+0x86/0xa0 [ 9.907278][ T187] hardirqs last disabled at (40790): [] console_emit_next_record+0x3d4/0x4c0 [ 9.907280][ T187] softirqs last enabled at (39504): [] netlink_release+0x17b/0xcf0 [ 9.907284][ T187] softirqs last disabled at (39502): [] netlink_release+0xd2/0xcf0 [ 9.907286][ T187] Preemption disabled at: [ 9.907287][ T187] [<0000000000000000>] 0x0 [ 9.907294][ T187] CPU: 0 UID: 0 PID: 187 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.907297][ T187] Tainted: [W]=WARN [ 9.907298][ T187] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.907300][ T187] Call Trace: [ 9.907301][ T187] [ 9.907303][ T187] dump_stack_lvl+0x6f/0xa0 [ 9.907309][ T187] __might_resched.cold+0x1fe/0x2c1 [ 9.907314][ T187] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.907321][ T187] ? __kmalloc_noprof+0xdb/0x760 [ 9.907326][ T187] __kmalloc_noprof+0x443/0x760 [ 9.907328][ T187] ? alloc_buf.isra.0+0x4b/0x260 [ 9.907334][ T187] ? do_raw_spin_unlock+0x59/0x250 [ 9.907337][ T187] alloc_buf.isra.0+0x4b/0x260 [ 9.907340][ T187] put_chars+0x1e1/0x2f0 [ 9.907343][ T187] ? __send_to_port+0x420/0x420 [ 9.907344][ T187] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.907349][ T187] ? validate_chain+0x38b/0xc20 [ 9.907354][ T187] hvc_console_print+0x292/0x780 [ 9.907360][ T187] ? hvc_write+0x3a0/0x3a0 [ 9.907362][ T187] ? rcu_is_watching+0x16/0xd0 [ 9.907365][ T187] ? lock_acquire+0x13c/0x160 [ 9.907369][ T187] console_emit_next_record+0x22f/0x4c0 [ 9.907372][ T187] ? devkmsg_read+0x4b0/0x4b0 [ 9.907374][ T187] ? console_flush_one_record+0x106/0x710 [ 9.907378][ T187] ? rcu_is_watching+0x16/0xd0 [ 9.907380][ T187] ? lock_acquire+0x13c/0x160 [ 9.907384][ T187] console_flush_one_record+0x46f/0x710 [ 9.907388][ T187] ? console_emit_next_record+0x4c0/0x4c0 [ 9.907390][ T187] ? __lock_acquire+0x518/0xc20 [ 9.907395][ T187] console_unlock+0xee/0x1f0 [ 9.907398][ T187] ? console_flush_one_record+0x710/0x710 [ 9.907400][ T187] ? rcu_is_watching+0x16/0xd0 [ 9.907402][ T187] ? lock_acquire+0x60/0x160 [ 9.907406][ T187] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.907407][ T187] ? vprintk_emit+0x320/0x3e0 [ 9.907411][ T187] vprintk_emit+0x37c/0x3e0 [ 9.907414][ T187] ? wake_up_klogd_work_func+0x90/0x90 [ 9.907418][ T187] ? __lock_acquire+0x518/0xc20 [ 9.907421][ T187] _printk+0xc7/0x100 [ 9.907425][ T187] ? snapshot_read.cold+0x21/0x21 [ 9.907428][ T187] ? do_raw_spin_lock+0x131/0x280 [ 9.907431][ T187] ? __rwlock_init+0x150/0x150 [ 9.907434][ T187] ? do_raw_spin_lock+0x131/0x280 [ 9.907437][ T187] do_exit.cold+0x82/0x9c [ 9.907441][ T187] ? exit_notify+0x890/0x890 [ 9.907443][ T187] ? __lock_release.isra.0+0x69/0x1a0 [ 9.907446][ T187] ? rcu_is_watching+0x16/0xd0 [ 9.907450][ T187] do_group_exit+0xb8/0x370 [ 9.907453][ T187] __x64_sys_exit_group+0x3c/0x50 [ 9.907454][ T187] x64_sys_call+0x1567/0x1570 [ 9.907456][ T187] do_syscall_64+0xff/0x530 [ 9.907459][ T187] ? exc_page_fault+0xee/0x100 [ 9.907463][ T187] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.907465][ T187] RIP: 0033:0x7f66901861b8 [ 9.907467][ T187] Code: Unable to access opcode bytes at 0x7f669018618e. [ 9.907469][ T187] RSP: 002b:00007ffd234c64c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 9.907471][ T187] RAX: ffffffffffffffda RBX: 00007f66902b6f88 RCX: 00007f66901861b8 [ 9.907472][ T187] RDX: 00007f668fed0fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 9.907473][ T187] RBP: 00007ffd234c6520 R08: 0000000000000000 R09: 0000000000008010 [ 9.907474][ T187] R10: 00007ffd234c62e0 R11: 0000000000000246 R12: 0000000000000001 [ 9.907475][ T187] R13: 0000000000000000 R14: 00007f66902b5680 R15: 00007f66902b6fa0 [ 9.907482][ T187]