[ 12.195040][ T271] ip (271) used greatest stack depth: 23936 bytes left [ 12.195059][ T271] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.195061][ T271] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 271, name: ip [ 12.195063][ T271] preempt_count: 2, expected: 0 [ 12.195064][ T271] RCU nest depth: 0, expected: 0 [ 12.195065][ T271] locks held by ip/271: 5, last CPU#2: [ 12.195067][ T271] #0: ffffffffaae167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 12.195078][ T271] #1: ffffffffaaf7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.195083][ T271] #2: ffffffffaaf7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.195087][ T271] #3: ffffffffaae9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.195091][ T271] #4: ffffffffaae9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.195095][ T271] irq event stamp: 37212 [ 12.195096][ T271] hardirqs last enabled at (37211): [] __down_trylock_console_sem+0x86/0xa0 [ 12.195099][ T271] hardirqs last disabled at (37212): [] console_emit_next_record+0x3d4/0x4c0 [ 12.195101][ T271] softirqs last enabled at (37140): [] handle_softirqs+0x67c/0x900 [ 12.195103][ T271] softirqs last disabled at (37135): [] __irq_exit_rcu+0x145/0x1c0 [ 12.195105][ T271] Preemption disabled at: [ 12.195106][ T271] [<0000000000000000>] 0x0 [ 12.195113][ T271] CPU: 2 UID: 0 PID: 271 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.195117][ T271] Tainted: [W]=WARN [ 12.195118][ T271] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.195119][ T271] Call Trace: [ 12.195121][ T271] [ 12.195122][ T271] dump_stack_lvl+0x6f/0xa0 [ 12.195129][ T271] __might_resched.cold+0x1fe/0x2c1 [ 12.195134][ T271] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.195138][ T271] ? __kmalloc_noprof+0xdb/0x760 [ 12.195142][ T271] __kmalloc_noprof+0x443/0x760 [ 12.195144][ T271] ? alloc_buf.isra.0+0x4b/0x260 [ 12.195151][ T271] ? do_raw_spin_unlock+0x59/0x250 [ 12.195153][ T271] alloc_buf.isra.0+0x4b/0x260 [ 12.195157][ T271] put_chars+0x1e1/0x2f0 [ 12.195160][ T271] ? __send_to_port+0x420/0x420 [ 12.195161][ T271] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.195164][ T271] ? validate_chain+0x38b/0xc20 [ 12.195170][ T271] hvc_console_print+0x292/0x780 [ 12.195181][ T271] ? hvc_write+0x3a0/0x3a0 [ 12.195184][ T271] ? rcu_is_watching+0x16/0xd0 [ 12.195186][ T271] ? lock_acquire+0x13c/0x160 [ 12.195190][ T271] console_emit_next_record+0x22f/0x4c0 [ 12.195194][ T271] ? devkmsg_read+0x4b0/0x4b0 [ 12.195196][ T271] ? console_flush_one_record+0x106/0x710 [ 12.195199][ T271] ? rcu_is_watching+0x16/0xd0 [ 12.195201][ T271] ? lock_acquire+0x13c/0x160 [ 12.195205][ T271] console_flush_one_record+0x46f/0x710 [ 12.195209][ T271] ? console_emit_next_record+0x4c0/0x4c0 [ 12.195210][ T271] ? __lock_acquire+0x518/0xc20 [ 12.195216][ T271] console_unlock+0xee/0x1f0 [ 12.195218][ T271] ? console_flush_one_record+0x710/0x710 [ 12.195221][ T271] ? rcu_is_watching+0x16/0xd0 [ 12.195222][ T271] ? lock_acquire+0xe0/0x160 [ 12.195226][ T271] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.195228][ T271] ? vprintk_emit+0x320/0x3e0 [ 12.195230][ T271] vprintk_emit+0x37c/0x3e0 [ 12.195233][ T271] ? wake_up_klogd_work_func+0x90/0x90 [ 12.195236][ T271] ? __lock_acquire+0x518/0xc20 [ 12.195240][ T271] _printk+0xc7/0x100 [ 12.195243][ T271] ? snapshot_read.cold+0x21/0x21 [ 12.195246][ T271] ? do_raw_spin_lock+0x131/0x280 [ 12.195249][ T271] ? __rwlock_init+0x150/0x150 [ 12.195253][ T271] ? do_raw_spin_lock+0x131/0x280 [ 12.195255][ T271] do_exit.cold+0x82/0x9c [ 12.195259][ T271] ? exit_notify+0x890/0x890 [ 12.195261][ T271] ? __lock_release.isra.0+0x69/0x1a0 [ 12.195263][ T271] ? rcu_is_watching+0x16/0xd0 [ 12.195267][ T271] do_group_exit+0xb8/0x370 [ 12.195270][ T271] __x64_sys_exit_group+0x3c/0x50 [ 12.195272][ T271] x64_sys_call+0x1567/0x1570 [ 12.195274][ T271] do_syscall_64+0xff/0x530 [ 12.195278][ T271] ? exc_page_fault+0xee/0x100 [ 12.195281][ T271] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.195283][ T271] RIP: 0033:0x7f968ba8a1b8 [ 12.195285][ T271] Code: Unable to access opcode bytes at 0x7f968ba8a18e. [ 12.195286][ T271] RSP: 002b:00007ffde1e146c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 12.195289][ T271] RAX: ffffffffffffffda RBX: 00007f968bbbaf88 RCX: 00007f968ba8a1b8 [ 12.195290][ T271] RDX: 00007f968b7d4fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 12.195291][ T271] RBP: 00007ffde1e14720 R08: 0000000000000000 R09: 0000000000000050 [ 12.195292][ T271] R10: 00007ffde1e144e0 R11: 0000000000000246 R12: 0000000000000001 [ 12.195293][ T271] R13: 0000000000000000 R14: 00007f968bbb9680 R15: 00007f968bbbafa0 [ 12.195299][ T271]