[ 12.031374][ T243] ip (243) used greatest stack depth: 23552 bytes left [ 12.031392][ T243] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.031394][ T243] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 243, name: ip [ 12.031396][ T243] preempt_count: 2, expected: 0 [ 12.031397][ T243] RCU nest depth: 0, expected: 0 [ 12.031398][ T243] locks held by ip/243: 5, last CPU#3: [ 12.031400][ T243] #0: ffffffffa52167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 12.031411][ T243] #1: ffffffffa537ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.031417][ T243] #2: ffffffffa537de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.031421][ T243] #3: ffffffffa529d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.031425][ T243] #4: ffffffffa529d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.031429][ T243] irq event stamp: 21510 [ 12.031430][ T243] hardirqs last enabled at (21509): [] __down_trylock_console_sem+0x86/0xa0 [ 12.031434][ T243] hardirqs last disabled at (21510): [] console_emit_next_record+0x3d4/0x4c0 [ 12.031436][ T243] softirqs last enabled at (21420): [] handle_softirqs+0x67c/0x900 [ 12.031438][ T243] softirqs last disabled at (21415): [] __irq_exit_rcu+0x145/0x1c0 [ 12.031441][ T243] Preemption disabled at: [ 12.031441][ T243] [<0000000000000000>] 0x0 [ 12.031448][ T243] CPU: 3 UID: 0 PID: 243 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.031452][ T243] Tainted: [W]=WARN [ 12.031453][ T243] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.031455][ T243] Call Trace: [ 12.031456][ T243] [ 12.031458][ T243] dump_stack_lvl+0x6f/0xa0 [ 12.031464][ T243] __might_resched.cold+0x1fe/0x2c1 [ 12.031469][ T243] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.031473][ T243] ? __kmalloc_noprof+0xdb/0x760 [ 12.031477][ T243] __kmalloc_noprof+0x443/0x760 [ 12.031479][ T243] ? alloc_buf.isra.0+0x4b/0x260 [ 12.031486][ T243] ? do_raw_spin_unlock+0x59/0x250 [ 12.031489][ T243] alloc_buf.isra.0+0x4b/0x260 [ 12.031493][ T243] put_chars+0x1e1/0x2f0 [ 12.031495][ T243] ? __send_to_port+0x420/0x420 [ 12.031496][ T243] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.031500][ T243] ? validate_chain+0x38b/0xc20 [ 12.031505][ T243] hvc_console_print+0x292/0x780 [ 12.031513][ T243] ? hvc_write+0x3a0/0x3a0 [ 12.031516][ T243] ? rcu_is_watching+0x16/0xd0 [ 12.031518][ T243] ? lock_acquire+0x13c/0x160 [ 12.031521][ T243] console_emit_next_record+0x22f/0x4c0 [ 12.031526][ T243] ? devkmsg_read+0x4b0/0x4b0 [ 12.031527][ T243] ? console_flush_one_record+0x106/0x710 [ 12.031531][ T243] ? rcu_is_watching+0x16/0xd0 [ 12.031532][ T243] ? lock_acquire+0x13c/0x160 [ 12.031536][ T243] console_flush_one_record+0x46f/0x710 [ 12.031540][ T243] ? console_emit_next_record+0x4c0/0x4c0 [ 12.031542][ T243] ? __lock_acquire+0x518/0xc20 [ 12.031547][ T243] console_unlock+0xee/0x1f0 [ 12.031550][ T243] ? console_flush_one_record+0x710/0x710 [ 12.031552][ T243] ? rcu_is_watching+0x16/0xd0 [ 12.031554][ T243] ? lock_acquire+0xe0/0x160 [ 12.031557][ T243] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.031559][ T243] ? vprintk_emit+0x320/0x3e0 [ 12.031562][ T243] vprintk_emit+0x37c/0x3e0 [ 12.031565][ T243] ? wake_up_klogd_work_func+0x90/0x90 [ 12.031568][ T243] ? __lock_acquire+0x518/0xc20 [ 12.031571][ T243] _printk+0xc7/0x100 [ 12.031576][ T243] ? snapshot_read.cold+0x21/0x21 [ 12.031578][ T243] ? do_raw_spin_lock+0x131/0x280 [ 12.031581][ T243] ? __rwlock_init+0x150/0x150 [ 12.031585][ T243] ? do_raw_spin_lock+0x131/0x280 [ 12.031588][ T243] do_exit.cold+0x82/0x9c [ 12.031591][ T243] ? exit_notify+0x890/0x890 [ 12.031593][ T243] ? __lock_release.isra.0+0x69/0x1a0 [ 12.031595][ T243] ? rcu_is_watching+0x16/0xd0 [ 12.031599][ T243] do_group_exit+0xb8/0x370 [ 12.031602][ T243] __x64_sys_exit_group+0x3c/0x50 [ 12.031603][ T243] x64_sys_call+0x1567/0x1570 [ 12.031606][ T243] do_syscall_64+0xff/0x530 [ 12.031610][ T243] ? exc_page_fault+0xee/0x100 [ 12.031613][ T243] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.031615][ T243] RIP: 0033:0x7f52cdd1f1b8 [ 12.031617][ T243] Code: Unable to access opcode bytes at 0x7f52cdd1f18e. [ 12.031618][ T243] RSP: 002b:00007ffc8a46a1e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 12.031621][ T243] RAX: ffffffffffffffda RBX: 00007f52cde4ff88 RCX: 00007f52cdd1f1b8 [ 12.031622][ T243] RDX: 00007f52cda69fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 12.031623][ T243] RBP: 00007ffc8a46a240 R08: 0000000000000000 R09: 0000000000000050 [ 12.031624][ T243] R10: 00007ffc8a46a000 R11: 0000000000000246 R12: 0000000000000001 [ 12.031625][ T243] R13: 0000000000000000 R14: 00007f52cde4e680 R15: 00007f52cde4ffa0 [ 12.031631][ T243]