[ 9.561787][ T178] ip (178) used greatest stack depth: 24144 bytes left [ 9.561805][ T178] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.561807][ T178] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 178, name: ip [ 9.561808][ T178] preempt_count: 2, expected: 0 [ 9.561809][ T178] RCU nest depth: 0, expected: 0 [ 9.561810][ T178] locks held by ip/178: 5, last CPU#0: [ 9.561812][ T178] #0: ffffffff886267b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 9.561825][ T178] #1: ffffffff8878dcc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.561830][ T178] #2: ffffffff8878dd38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.561834][ T178] #3: ffffffff886ad660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.561837][ T178] #4: ffffffff886ad560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.561841][ T178] irq event stamp: 29598 [ 9.561842][ T178] hardirqs last enabled at (29597): [] __down_trylock_console_sem+0x86/0xa0 [ 9.561844][ T178] hardirqs last disabled at (29598): [] console_emit_next_record+0x3d4/0x4c0 [ 9.561846][ T178] softirqs last enabled at (29108): [] handle_softirqs+0x67c/0x900 [ 9.561848][ T178] softirqs last disabled at (29103): [] __irq_exit_rcu+0x145/0x1c0 [ 9.561850][ T178] Preemption disabled at: [ 9.561850][ T178] [<0000000000000000>] 0x0 [ 9.561857][ T178] CPU: 0 UID: 0 PID: 178 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.561860][ T178] Tainted: [W]=WARN [ 9.561861][ T178] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.561863][ T178] Call Trace: [ 9.561865][ T178] [ 9.561866][ T178] dump_stack_lvl+0x6f/0xa0 [ 9.561872][ T178] __might_resched.cold+0x1fe/0x2c1 [ 9.561877][ T178] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.561880][ T178] ? __kmalloc_noprof+0xdb/0x760 [ 9.561885][ T178] __kmalloc_noprof+0x443/0x760 [ 9.561887][ T178] ? alloc_buf.isra.0+0x4b/0x260 [ 9.561894][ T178] ? do_raw_spin_unlock+0x59/0x250 [ 9.561896][ T178] alloc_buf.isra.0+0x4b/0x260 [ 9.561900][ T178] put_chars+0x1e1/0x2f0 [ 9.561903][ T178] ? __send_to_port+0x420/0x420 [ 9.561905][ T178] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.561909][ T178] ? validate_chain+0x38b/0xc20 [ 9.561915][ T178] hvc_console_print+0x292/0x780 [ 9.561922][ T178] ? hvc_write+0x3a0/0x3a0 [ 9.561924][ T178] ? rcu_is_watching+0x16/0xd0 [ 9.561927][ T178] ? lock_acquire+0x13c/0x160 [ 9.561930][ T178] console_emit_next_record+0x22f/0x4c0 [ 9.561934][ T178] ? devkmsg_read+0x4b0/0x4b0 [ 9.561935][ T178] ? console_flush_one_record+0x106/0x710 [ 9.561938][ T178] ? rcu_is_watching+0x16/0xd0 [ 9.561940][ T178] ? lock_acquire+0x13c/0x160 [ 9.561944][ T178] console_flush_one_record+0x46f/0x710 [ 9.561948][ T178] ? console_emit_next_record+0x4c0/0x4c0 [ 9.561949][ T178] ? __lock_acquire+0x518/0xc20 [ 9.561954][ T178] console_unlock+0xee/0x1f0 [ 9.561956][ T178] ? console_flush_one_record+0x710/0x710 [ 9.561958][ T178] ? rcu_is_watching+0x16/0xd0 [ 9.561960][ T178] ? lock_acquire+0x60/0x160 [ 9.561963][ T178] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.561965][ T178] ? vprintk_emit+0x320/0x3e0 [ 9.561968][ T178] vprintk_emit+0x37c/0x3e0 [ 9.561971][ T178] ? wake_up_klogd_work_func+0x90/0x90 [ 9.561974][ T178] ? __lock_acquire+0x518/0xc20 [ 9.561978][ T178] _printk+0xc7/0x100 [ 9.561981][ T178] ? snapshot_read.cold+0x21/0x21 [ 9.561984][ T178] ? do_raw_spin_lock+0x131/0x280 [ 9.561986][ T178] ? __rwlock_init+0x150/0x150 [ 9.561990][ T178] ? do_raw_spin_lock+0x131/0x280 [ 9.561992][ T178] do_exit.cold+0x82/0x9c [ 9.561998][ T178] ? exit_notify+0x890/0x890 [ 9.562000][ T178] ? __lock_release.isra.0+0x69/0x1a0 [ 9.562002][ T178] ? rcu_is_watching+0x16/0xd0 [ 9.562006][ T178] do_group_exit+0xb8/0x370 [ 9.562009][ T178] __x64_sys_exit_group+0x3c/0x50 [ 9.562011][ T178] x64_sys_call+0x1567/0x1570 [ 9.562013][ T178] do_syscall_64+0xff/0x530 [ 9.562017][ T178] ? exc_page_fault+0xee/0x100 [ 9.562020][ T178] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.562022][ T178] RIP: 0033:0x7f2b7940c1b8 [ 9.562024][ T178] Code: Unable to access opcode bytes at 0x7f2b7940c18e. [ 9.562025][ T178] RSP: 002b:00007ffcc956a668 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 9.562027][ T178] RAX: ffffffffffffffda RBX: 00007f2b7953cf88 RCX: 00007f2b7940c1b8 [ 9.562029][ T178] RDX: 00007f2b79156fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 9.562030][ T178] RBP: 00007ffcc956a6c0 R08: 0000000000000000 R09: 0000000000000050 [ 9.562030][ T178] R10: 00007ffcc956a480 R11: 0000000000000246 R12: 0000000000000001 [ 9.562031][ T178] R13: 0000000000000000 R14: 00007f2b7953b680 R15: 00007f2b7953cfa0 [ 9.562038][ T178]