[ 10.755753][ T187] ip (187) used greatest stack depth: 24632 bytes left [ 10.755771][ T187] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.755773][ T187] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 187, name: ip [ 10.755774][ T187] preempt_count: 2, expected: 0 [ 10.755775][ T187] RCU nest depth: 0, expected: 0 [ 10.755776][ T187] locks held by ip/187: 5, last CPU#3: [ 10.755779][ T187] #0: ffffffffa8602f58 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x8e7/0xef0 [ 10.755791][ T187] #1: ffffffffa876a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.755796][ T187] #2: ffffffffa876a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.755799][ T187] #3: ffffffffa8689de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.755803][ T187] #4: ffffffffa8689ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.755806][ T187] irq event stamp: 32906 [ 10.755807][ T187] hardirqs last enabled at (32905): [] __down_trylock_console_sem+0x86/0xa0 [ 10.755810][ T187] hardirqs last disabled at (32906): [] console_emit_next_record+0x3d4/0x4c0 [ 10.755812][ T187] softirqs last enabled at (31980): [] handle_softirqs+0x67c/0x900 [ 10.755815][ T187] softirqs last disabled at (31975): [] __irq_exit_rcu+0x145/0x1c0 [ 10.755817][ T187] Preemption disabled at: [ 10.755818][ T187] [<0000000000000000>] 0x0 [ 10.755825][ T187] CPU: 3 UID: 0 PID: 187 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.755834][ T187] Tainted: [W]=WARN [ 10.755835][ T187] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.755836][ T187] Call Trace: [ 10.755838][ T187] [ 10.755840][ T187] dump_stack_lvl+0x6f/0xa0 [ 10.755845][ T187] __might_resched.cold+0x1fe/0x2c1 [ 10.755850][ T187] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.755853][ T187] ? __kmalloc_noprof+0xdb/0x760 [ 10.755858][ T187] __kmalloc_noprof+0x443/0x760 [ 10.755860][ T187] ? alloc_buf.isra.0+0x4b/0x260 [ 10.755867][ T187] ? do_raw_spin_unlock+0x59/0x250 [ 10.755870][ T187] alloc_buf.isra.0+0x4b/0x260 [ 10.755873][ T187] put_chars+0x1e1/0x2f0 [ 10.755876][ T187] ? __send_to_port+0x420/0x420 [ 10.755883][ T187] hvc_console_print+0x292/0x780 [ 10.755889][ T187] ? hvc_write+0x3a0/0x3a0 [ 10.755892][ T187] ? lock_acquire+0x13c/0x160 [ 10.755897][ T187] console_emit_next_record+0x22f/0x4c0 [ 10.755901][ T187] ? devkmsg_read+0x4b0/0x4b0 [ 10.755902][ T187] ? console_flush_one_record+0x106/0x710 [ 10.755904][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.755908][ T187] ? lock_acquire+0x13c/0x160 [ 10.755912][ T187] console_flush_one_record+0x46f/0x710 [ 10.755916][ T187] ? console_emit_next_record+0x4c0/0x4c0 [ 10.755917][ T187] ? __lock_acquire+0x518/0xc20 [ 10.755923][ T187] console_unlock+0xee/0x1f0 [ 10.755925][ T187] ? console_flush_one_record+0x710/0x710 [ 10.755926][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.755928][ T187] ? lock_acquire+0x60/0x160 [ 10.755932][ T187] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.755934][ T187] ? vprintk_emit+0x320/0x3e0 [ 10.755937][ T187] vprintk_emit+0x37c/0x3e0 [ 10.755940][ T187] ? wake_up_klogd_work_func+0x90/0x90 [ 10.755943][ T187] ? __lock_acquire+0x518/0xc20 [ 10.755947][ T187] _printk+0xc7/0x100 [ 10.755951][ T187] ? snapshot_read.cold+0x21/0x21 [ 10.755953][ T187] ? do_raw_spin_lock+0x131/0x280 [ 10.755956][ T187] ? __rwlock_init+0x150/0x150 [ 10.755960][ T187] ? do_raw_spin_lock+0x131/0x280 [ 10.755963][ T187] do_exit.cold+0x82/0x9c [ 10.755967][ T187] ? exit_notify+0x890/0x890 [ 10.755969][ T187] ? __lock_release.isra.0+0x69/0x1a0 [ 10.755972][ T187] ? rcu_is_watching+0x16/0xd0 [ 10.755975][ T187] do_group_exit+0xb8/0x370 [ 10.755978][ T187] __x64_sys_exit_group+0x3c/0x50 [ 10.755980][ T187] x64_sys_call+0x1567/0x1570 [ 10.755983][ T187] do_syscall_64+0x10e/0x570 [ 10.755987][ T187] ? exc_page_fault+0xee/0x100 [ 10.755990][ T187] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.755992][ T187] RIP: 0033:0x7f15d1a931b8 [ 10.755994][ T187] Code: Unable to access opcode bytes at 0x7f15d1a9318e. [ 10.755995][ T187] RSP: 002b:00007ffcdedffff8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.755998][ T187] RAX: ffffffffffffffda RBX: 00007f15d1bc3f88 RCX: 00007f15d1a931b8 [ 10.755999][ T187] RDX: 00007f15d17ddfc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 10.756000][ T187] RBP: 00007ffcdee00050 R08: 0000000000000000 R09: 0000000000000050 [ 10.756001][ T187] R10: 00007ffcdedffe10 R11: 0000000000000246 R12: 0000000000000001 [ 10.756002][ T187] R13: 0000000000000000 R14: 00007f15d1bc2680 R15: 00007f15d1bc3fa0 [ 10.756009][ T187] [ 11.129219][ T196] ip (196) used greatest stack depth: 24384 bytes left