[ 12.720241][ T213] ip (213) used greatest stack depth: 24416 bytes left [ 12.720262][ T213] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.720264][ T213] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 213, name: ip [ 12.720266][ T213] preempt_count: 2, expected: 0 [ 12.720267][ T213] RCU nest depth: 0, expected: 0 [ 12.720268][ T213] locks held by ip/213: 5, last CPU#1: [ 12.720270][ T213] #0: ffffffffb12027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 12.720282][ T213] #1: ffffffffb1369cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.720287][ T213] #2: ffffffffb1369d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.720291][ T213] #3: ffffffffb1289660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.720294][ T213] #4: ffffffffb1289560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.720298][ T213] irq event stamp: 27390 [ 12.720298][ T213] hardirqs last enabled at (27389): [] __down_trylock_console_sem+0x86/0xa0 [ 12.720301][ T213] hardirqs last disabled at (27390): [] console_emit_next_record+0x3d4/0x4c0 [ 12.720303][ T213] softirqs last enabled at (26784): [] handle_softirqs+0x67c/0x900 [ 12.720305][ T213] softirqs last disabled at (26775): [] __irq_exit_rcu+0x145/0x1c0 [ 12.720307][ T213] Preemption disabled at: [ 12.720308][ T213] [<0000000000000000>] 0x0 [ 12.720314][ T213] CPU: 1 UID: 0 PID: 213 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.720318][ T213] Tainted: [W]=WARN [ 12.720319][ T213] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.720320][ T213] Call Trace: [ 12.720322][ T213] [ 12.720323][ T213] dump_stack_lvl+0x6f/0xa0 [ 12.720329][ T213] __might_resched.cold+0x1fe/0x2c1 [ 12.720333][ T213] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.720336][ T213] ? __kmalloc_noprof+0xdb/0x760 [ 12.720342][ T213] __kmalloc_noprof+0x443/0x760 [ 12.720344][ T213] ? alloc_buf.isra.0+0x4b/0x260 [ 12.720350][ T213] ? do_raw_spin_unlock+0x59/0x250 [ 12.720353][ T213] alloc_buf.isra.0+0x4b/0x260 [ 12.720356][ T213] put_chars+0x1e1/0x2f0 [ 12.720360][ T213] ? __send_to_port+0x420/0x420 [ 12.720361][ T213] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.720373][ T213] ? validate_chain+0x38b/0xc20 [ 12.720378][ T213] hvc_console_print+0x292/0x780 [ 12.720384][ T213] ? hvc_write+0x3a0/0x3a0 [ 12.720387][ T213] ? rcu_is_watching+0x16/0xd0 [ 12.720389][ T213] ? lock_acquire+0x13c/0x160 [ 12.720393][ T213] console_emit_next_record+0x22f/0x4c0 [ 12.720396][ T213] ? devkmsg_read+0x4b0/0x4b0 [ 12.720398][ T213] ? console_flush_one_record+0x106/0x710 [ 12.720400][ T213] ? rcu_is_watching+0x16/0xd0 [ 12.720402][ T213] ? lock_acquire+0x13c/0x160 [ 12.720406][ T213] console_flush_one_record+0x46f/0x710 [ 12.720409][ T213] ? console_emit_next_record+0x4c0/0x4c0 [ 12.720411][ T213] ? __lock_acquire+0x518/0xc20 [ 12.720416][ T213] console_unlock+0xee/0x1f0 [ 12.720418][ T213] ? console_flush_one_record+0x710/0x710 [ 12.720419][ T213] ? rcu_is_watching+0x16/0xd0 [ 12.720421][ T213] ? lock_acquire+0x60/0x160 [ 12.720425][ T213] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.720427][ T213] ? vprintk_emit+0x320/0x3e0 [ 12.720430][ T213] vprintk_emit+0x37c/0x3e0 [ 12.720433][ T213] ? wake_up_klogd_work_func+0x90/0x90 [ 12.720436][ T213] ? __lock_acquire+0x518/0xc20 [ 12.720439][ T213] _printk+0xc7/0x100 [ 12.720443][ T213] ? snapshot_read.cold+0x21/0x21 [ 12.720446][ T213] ? do_raw_spin_lock+0x131/0x280 [ 12.720449][ T213] ? __rwlock_init+0x150/0x150 [ 12.720452][ T213] ? do_raw_spin_lock+0x131/0x280 [ 12.720455][ T213] do_exit.cold+0x82/0x9c [ 12.720459][ T213] ? exit_notify+0x890/0x890 [ 12.720460][ T213] ? __lock_release.isra.0+0x69/0x1a0 [ 12.720463][ T213] ? rcu_is_watching+0x16/0xd0 [ 12.720467][ T213] do_group_exit+0xb8/0x370 [ 12.720470][ T213] __x64_sys_exit_group+0x3c/0x50 [ 12.720472][ T213] x64_sys_call+0x1567/0x1570 [ 12.720474][ T213] do_syscall_64+0xff/0x530 [ 12.720478][ T213] ? exc_page_fault+0xee/0x100 [ 12.720481][ T213] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.720483][ T213] RIP: 0033:0x7f3c7ca331b8 [ 12.720485][ T213] Code: Unable to access opcode bytes at 0x7f3c7ca3318e. [ 12.720486][ T213] RSP: 002b:00007ffe1960dfc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 12.720489][ T213] RAX: ffffffffffffffda RBX: 00007f3c7cb63f88 RCX: 00007f3c7ca331b8 [ 12.720490][ T213] RDX: 00007f3c7c77dfc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 12.720491][ T213] RBP: 00007ffe1960e020 R08: 0000000000000000 R09: 0000000000008010 [ 12.720492][ T213] R10: 00007ffe1960dde0 R11: 0000000000000246 R12: 0000000000000001 [ 12.720493][ T213] R13: 0000000000000000 R14: 00007f3c7cb62680 R15: 00007f3c7cb63fa0 [ 12.720499][ T213]