[ 10.597272][ T247] ip (247) used greatest stack depth: 24064 bytes left [ 10.597288][ T247] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.597290][ T247] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 247, name: ip [ 10.597291][ T247] preempt_count: 2, expected: 0 [ 10.597292][ T247] RCU nest depth: 0, expected: 0 [ 10.597293][ T247] locks held by ip/247: 5, last CPU#2: [ 10.597295][ T247] #0: ffffffff9ae167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.597306][ T247] #1: ffffffff9af7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.597311][ T247] #2: ffffffff9af7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.597316][ T247] #3: ffffffff9ae9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.597319][ T247] #4: ffffffff9ae9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.597323][ T247] irq event stamp: 41122 [ 10.597324][ T247] hardirqs last enabled at (41121): [] __down_trylock_console_sem+0x86/0xa0 [ 10.597327][ T247] hardirqs last disabled at (41122): [] console_emit_next_record+0x3d4/0x4c0 [ 10.597329][ T247] softirqs last enabled at (40762): [] handle_softirqs+0x67c/0x900 [ 10.597331][ T247] softirqs last disabled at (40757): [] __irq_exit_rcu+0x145/0x1c0 [ 10.597333][ T247] Preemption disabled at: [ 10.597334][ T247] [<0000000000000000>] 0x0 [ 10.597341][ T247] CPU: 2 UID: 0 PID: 247 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.597344][ T247] Tainted: [W]=WARN [ 10.597345][ T247] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.597347][ T247] Call Trace: [ 10.597349][ T247] [ 10.597350][ T247] dump_stack_lvl+0x6f/0xa0 [ 10.597356][ T247] __might_resched.cold+0x1fe/0x2c1 [ 10.597361][ T247] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.597365][ T247] ? __kmalloc_noprof+0xdb/0x760 [ 10.597369][ T247] __kmalloc_noprof+0x443/0x760 [ 10.597371][ T247] ? alloc_buf.isra.0+0x4b/0x260 [ 10.597378][ T247] ? do_raw_spin_unlock+0x59/0x250 [ 10.597380][ T247] alloc_buf.isra.0+0x4b/0x260 [ 10.597384][ T247] put_chars+0x1e1/0x2f0 [ 10.597386][ T247] ? __send_to_port+0x420/0x420 [ 10.597387][ T247] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.597391][ T247] ? validate_chain+0x38b/0xc20 [ 10.597396][ T247] hvc_console_print+0x292/0x780 [ 10.597404][ T247] ? hvc_write+0x3a0/0x3a0 [ 10.597406][ T247] ? rcu_is_watching+0x16/0xd0 [ 10.597408][ T247] ? lock_acquire+0x13c/0x160 [ 10.597412][ T247] console_emit_next_record+0x22f/0x4c0 [ 10.597416][ T247] ? devkmsg_read+0x4b0/0x4b0 [ 10.597418][ T247] ? console_flush_one_record+0x106/0x710 [ 10.597421][ T247] ? rcu_is_watching+0x16/0xd0 [ 10.597423][ T247] ? lock_acquire+0x13c/0x160 [ 10.597427][ T247] console_flush_one_record+0x46f/0x710 [ 10.597431][ T247] ? console_emit_next_record+0x4c0/0x4c0 [ 10.597433][ T247] ? __lock_acquire+0x518/0xc20 [ 10.597438][ T247] console_unlock+0xee/0x1f0 [ 10.597441][ T247] ? console_flush_one_record+0x710/0x710 [ 10.597442][ T247] ? rcu_is_watching+0x16/0xd0 [ 10.597444][ T247] ? lock_acquire+0xe0/0x160 [ 10.597448][ T247] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.597449][ T247] ? vprintk_emit+0x320/0x3e0 [ 10.597452][ T247] vprintk_emit+0x37c/0x3e0 [ 10.597455][ T247] ? wake_up_klogd_work_func+0x90/0x90 [ 10.597458][ T247] ? __lock_acquire+0x518/0xc20 [ 10.597461][ T247] _printk+0xc7/0x100 [ 10.597465][ T247] ? snapshot_read.cold+0x21/0x21 [ 10.597467][ T247] ? do_raw_spin_lock+0x131/0x280 [ 10.597470][ T247] ? __rwlock_init+0x150/0x150 [ 10.597474][ T247] ? do_raw_spin_lock+0x131/0x280 [ 10.597476][ T247] do_exit.cold+0x82/0x9c [ 10.597480][ T247] ? exit_notify+0x890/0x890 [ 10.597482][ T247] ? __lock_release.isra.0+0x69/0x1a0 [ 10.597484][ T247] ? rcu_is_watching+0x16/0xd0 [ 10.597488][ T247] do_group_exit+0xb8/0x370 [ 10.597490][ T247] __x64_sys_exit_group+0x3c/0x50 [ 10.597492][ T247] x64_sys_call+0x1567/0x1570 [ 10.597495][ T247] do_syscall_64+0xff/0x530 [ 10.597499][ T247] ? exc_page_fault+0xee/0x100 [ 10.597502][ T247] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.597504][ T247] RIP: 0033:0x7f5bdbfd61b8 [ 10.597506][ T247] Code: Unable to access opcode bytes at 0x7f5bdbfd618e. [ 10.597507][ T247] RSP: 002b:00007ffed3818988 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.597510][ T247] RAX: ffffffffffffffda RBX: 00007f5bdc106f88 RCX: 00007f5bdbfd61b8 [ 10.597511][ T247] RDX: 00007f5bdbd20fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 10.597512][ T247] RBP: 00007ffed38189e0 R08: 0000000000000000 R09: 0000000000000000 [ 10.597513][ T247] R10: 00007ffed38187a0 R11: 0000000000000246 R12: 0000000000000001 [ 10.597513][ T247] R13: 0000000000000000 R14: 00007f5bdc105680 R15: 00007f5bdc106fa0 [ 10.597520][ T247]