[ 23.762142][ T308] ip (308) used greatest stack depth: 23568 bytes left [ 23.762157][ T308] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 23.762159][ T308] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 308, name: ip [ 23.762161][ T308] preempt_count: 2, expected: 0 [ 23.762162][ T308] RCU nest depth: 0, expected: 0 [ 23.762163][ T308] locks held by ip/308: 5, last CPU#2: [ 23.762165][ T308] #0: ffffffff9ac167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 23.762176][ T308] #1: ffffffff9ad7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 23.762180][ T308] #2: ffffffff9ad7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 23.762184][ T308] #3: ffffffff9ac9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 23.762188][ T308] #4: ffffffff9ac9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 23.762192][ T308] irq event stamp: 27976 [ 23.762193][ T308] hardirqs last enabled at (27975): [] __down_trylock_console_sem+0x86/0xa0 [ 23.762196][ T308] hardirqs last disabled at (27976): [] console_emit_next_record+0x3d4/0x4c0 [ 23.762198][ T308] softirqs last enabled at (27306): [] handle_softirqs+0x67c/0x900 [ 23.762200][ T308] softirqs last disabled at (27301): [] __irq_exit_rcu+0x145/0x1c0 [ 23.762202][ T308] Preemption disabled at: [ 23.762203][ T308] [<0000000000000000>] 0x0 [ 23.762209][ T308] CPU: 2 UID: 0 PID: 308 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 23.762212][ T308] Tainted: [W]=WARN [ 23.762213][ T308] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 23.762215][ T308] Call Trace: [ 23.762216][ T308] [ 23.762218][ T308] dump_stack_lvl+0x6f/0xa0 [ 23.762224][ T308] __might_resched.cold+0x1fe/0x2c1 [ 23.762229][ T308] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 23.762233][ T308] ? __kmalloc_noprof+0xdb/0x760 [ 23.762237][ T308] __kmalloc_noprof+0x443/0x760 [ 23.762239][ T308] ? alloc_buf.isra.0+0x4b/0x260 [ 23.762245][ T308] ? do_raw_spin_unlock+0x59/0x250 [ 23.762248][ T308] alloc_buf.isra.0+0x4b/0x260 [ 23.762251][ T308] put_chars+0x1e1/0x2f0 [ 23.762254][ T308] ? __send_to_port+0x420/0x420 [ 23.762255][ T308] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 23.762259][ T308] ? validate_chain+0x38b/0xc20 [ 23.762265][ T308] hvc_console_print+0x292/0x780 [ 23.762272][ T308] ? hvc_write+0x3a0/0x3a0 [ 23.762275][ T308] ? rcu_is_watching+0x16/0xd0 [ 23.762277][ T308] ? lock_acquire+0x13c/0x160 [ 23.762281][ T308] console_emit_next_record+0x22f/0x4c0 [ 23.762284][ T308] ? devkmsg_read+0x4b0/0x4b0 [ 23.762286][ T308] ? console_flush_one_record+0x106/0x710 [ 23.762289][ T308] ? rcu_is_watching+0x16/0xd0 [ 23.762291][ T308] ? lock_acquire+0x13c/0x160 [ 23.762300][ T308] console_flush_one_record+0x46f/0x710 [ 23.762304][ T308] ? console_emit_next_record+0x4c0/0x4c0 [ 23.762306][ T308] ? __lock_acquire+0x518/0xc20 [ 23.762311][ T308] console_unlock+0xee/0x1f0 [ 23.762314][ T308] ? console_flush_one_record+0x710/0x710 [ 23.762316][ T308] ? rcu_is_watching+0x16/0xd0 [ 23.762318][ T308] ? lock_acquire+0xe0/0x160 [ 23.762321][ T308] ? __down_trylock_console_sem+0x5e/0xa0 [ 23.762323][ T308] ? vprintk_emit+0x320/0x3e0 [ 23.762326][ T308] vprintk_emit+0x37c/0x3e0 [ 23.762329][ T308] ? wake_up_klogd_work_func+0x90/0x90 [ 23.762332][ T308] ? __lock_acquire+0x518/0xc20 [ 23.762335][ T308] _printk+0xc7/0x100 [ 23.762339][ T308] ? snapshot_read.cold+0x21/0x21 [ 23.762342][ T308] ? do_raw_spin_lock+0x131/0x280 [ 23.762344][ T308] ? __rwlock_init+0x150/0x150 [ 23.762348][ T308] ? do_raw_spin_lock+0x131/0x280 [ 23.762351][ T308] do_exit.cold+0x82/0x9c [ 23.762355][ T308] ? exit_notify+0x890/0x890 [ 23.762356][ T308] ? __lock_release.isra.0+0x69/0x1a0 [ 23.762359][ T308] ? rcu_is_watching+0x16/0xd0 [ 23.762362][ T308] do_group_exit+0xb8/0x370 [ 23.762365][ T308] __x64_sys_exit_group+0x3c/0x50 [ 23.762367][ T308] x64_sys_call+0x1567/0x1570 [ 23.762371][ T308] do_syscall_64+0xff/0x530 [ 23.762375][ T308] ? exc_page_fault+0xee/0x100 [ 23.762378][ T308] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 23.762380][ T308] RIP: 0033:0x7f3e0a96a1b8 [ 23.762382][ T308] Code: Unable to access opcode bytes at 0x7f3e0a96a18e. [ 23.762383][ T308] RSP: 002b:00007ffc73da2198 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.762386][ T308] RAX: ffffffffffffffda RBX: 00007f3e0aa9af88 RCX: 00007f3e0a96a1b8 [ 23.762387][ T308] RDX: 00007f3e0a6b4fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 23.762388][ T308] RBP: 00007ffc73da21f0 R08: 0000000000000000 R09: 0000000000000050 [ 23.762389][ T308] R10: 00007ffc73da1fb0 R11: 0000000000000246 R12: 0000000000000001 [ 23.762389][ T308] R13: 0000000000000000 R14: 00007f3e0aa99680 R15: 00007f3e0aa9afa0 [ 23.762396][ T308]