[ 9.186681][ T197] ip (197) used greatest stack depth: 24328 bytes left [ 9.186695][ T197] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.186697][ T197] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 197, name: ip [ 9.186699][ T197] preempt_count: 2, expected: 0 [ 9.186700][ T197] RCU nest depth: 0, expected: 0 [ 9.186701][ T197] locks held by ip/197: 5, last CPU#0: [ 9.186703][ T197] #0: ffffffffb26167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 9.186714][ T197] #1: ffffffffb277ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.186718][ T197] #2: ffffffffb277de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.186723][ T197] #3: ffffffffb269d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.186726][ T197] #4: ffffffffb269d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.186730][ T197] irq event stamp: 33220 [ 9.186731][ T197] hardirqs last enabled at (33219): [] __down_trylock_console_sem+0x86/0xa0 [ 9.186734][ T197] hardirqs last disabled at (33220): [] console_emit_next_record+0x3d4/0x4c0 [ 9.186737][ T197] softirqs last enabled at (33008): [] handle_softirqs+0x67c/0x900 [ 9.186739][ T197] softirqs last disabled at (32999): [] __irq_exit_rcu+0x145/0x1c0 [ 9.186741][ T197] Preemption disabled at: [ 9.186742][ T197] [<0000000000000000>] 0x0 [ 9.186748][ T197] CPU: 0 UID: 0 PID: 197 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.186752][ T197] Tainted: [W]=WARN [ 9.186752][ T197] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.186754][ T197] Call Trace: [ 9.186755][ T197] [ 9.186757][ T197] dump_stack_lvl+0x6f/0xa0 [ 9.186763][ T197] __might_resched.cold+0x1fe/0x2c1 [ 9.186768][ T197] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.186772][ T197] ? __kmalloc_noprof+0xdb/0x760 [ 9.186776][ T197] __kmalloc_noprof+0x443/0x760 [ 9.186778][ T197] ? alloc_buf.isra.0+0x4b/0x260 [ 9.186785][ T197] ? do_raw_spin_unlock+0x59/0x250 [ 9.186788][ T197] alloc_buf.isra.0+0x4b/0x260 [ 9.186791][ T197] put_chars+0x1e1/0x2f0 [ 9.186794][ T197] ? __send_to_port+0x420/0x420 [ 9.186795][ T197] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.186798][ T197] ? validate_chain+0x38b/0xc20 [ 9.186803][ T197] hvc_console_print+0x292/0x780 [ 9.186815][ T197] ? hvc_write+0x3a0/0x3a0 [ 9.186818][ T197] ? rcu_is_watching+0x16/0xd0 [ 9.186820][ T197] ? lock_acquire+0x13c/0x160 [ 9.186824][ T197] console_emit_next_record+0x22f/0x4c0 [ 9.186828][ T197] ? devkmsg_read+0x4b0/0x4b0 [ 9.186830][ T197] ? console_flush_one_record+0x106/0x710 [ 9.186833][ T197] ? rcu_is_watching+0x16/0xd0 [ 9.186834][ T197] ? lock_acquire+0x13c/0x160 [ 9.186838][ T197] console_flush_one_record+0x46f/0x710 [ 9.186842][ T197] ? console_emit_next_record+0x4c0/0x4c0 [ 9.186844][ T197] ? __lock_acquire+0x518/0xc20 [ 9.186849][ T197] console_unlock+0xee/0x1f0 [ 9.186852][ T197] ? console_flush_one_record+0x710/0x710 [ 9.186854][ T197] ? rcu_is_watching+0x16/0xd0 [ 9.186856][ T197] ? lock_acquire+0xe0/0x160 [ 9.186859][ T197] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.186861][ T197] ? vprintk_emit+0x320/0x3e0 [ 9.186864][ T197] vprintk_emit+0x37c/0x3e0 [ 9.186867][ T197] ? wake_up_klogd_work_func+0x90/0x90 [ 9.186869][ T197] ? __lock_acquire+0x518/0xc20 [ 9.186873][ T197] _printk+0xc7/0x100 [ 9.186877][ T197] ? snapshot_read.cold+0x21/0x21 [ 9.186880][ T197] ? do_raw_spin_lock+0x131/0x280 [ 9.186882][ T197] ? __rwlock_init+0x150/0x150 [ 9.186886][ T197] ? do_raw_spin_lock+0x131/0x280 [ 9.186889][ T197] do_exit.cold+0x82/0x9c [ 9.186893][ T197] ? exit_notify+0x890/0x890 [ 9.186894][ T197] ? __lock_release.isra.0+0x69/0x1a0 [ 9.186897][ T197] ? rcu_is_watching+0x16/0xd0 [ 9.186900][ T197] do_group_exit+0xb8/0x370 [ 9.186903][ T197] __x64_sys_exit_group+0x3c/0x50 [ 9.186905][ T197] x64_sys_call+0x1567/0x1570 [ 9.186907][ T197] do_syscall_64+0xff/0x530 [ 9.186911][ T197] ? exc_page_fault+0xee/0x100 [ 9.186914][ T197] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.186916][ T197] RIP: 0033:0x7f43ff5661b8 [ 9.186919][ T197] Code: Unable to access opcode bytes at 0x7f43ff56618e. [ 9.186920][ T197] RSP: 002b:00007ffc10619d08 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 9.186922][ T197] RAX: ffffffffffffffda RBX: 00007f43ff696f88 RCX: 00007f43ff5661b8 [ 9.186923][ T197] RDX: 00007f43ff2b0fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 9.186924][ T197] RBP: 00007ffc10619d60 R08: 0000000000000000 R09: 0000000000000050 [ 9.186925][ T197] R10: 00007ffc10619b20 R11: 0000000000000246 R12: 0000000000000001 [ 9.186926][ T197] R13: 0000000000000000 R14: 00007f43ff695680 R15: 00007f43ff696fa0 [ 9.186932][ T197]