[ 10.110570][ T166] restore_ipv6 (166) used greatest stack depth: 24544 bytes left [ 10.110590][ T166] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.110592][ T166] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 166, name: restore_ipv6 [ 10.110594][ T166] preempt_count: 2, expected: 0 [ 10.110595][ T166] RCU nest depth: 0, expected: 0 [ 10.110596][ T166] locks held by restore_ipv6/166: 5, last CPU#2: [ 10.110598][ T166] #0: ffffffff9aa127b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.110609][ T166] #1: ffffffff9ab79cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.110615][ T166] #2: ffffffff9ab79d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.110618][ T166] #3: ffffffff9aa99660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.110622][ T166] #4: ffffffff9aa99560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.110626][ T166] irq event stamp: 392364 [ 10.110628][ T166] hardirqs last enabled at (392363): [] __down_trylock_console_sem+0x86/0xa0 [ 10.110631][ T166] hardirqs last disabled at (392364): [] console_emit_next_record+0x3d4/0x4c0 [ 10.110633][ T166] softirqs last enabled at (390778): [] handle_softirqs+0x67c/0x900 [ 10.110635][ T166] softirqs last disabled at (390771): [] __irq_exit_rcu+0x145/0x1c0 [ 10.110637][ T166] Preemption disabled at: [ 10.110637][ T166] [<0000000000000000>] 0x0 [ 10.110645][ T166] CPU: 2 UID: 0 PID: 166 Comm: restore_ipv6 Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.110649][ T166] Tainted: [W]=WARN [ 10.110650][ T166] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.110651][ T166] Call Trace: [ 10.110653][ T166] [ 10.110654][ T166] dump_stack_lvl+0x6f/0xa0 [ 10.110661][ T166] __might_resched.cold+0x1fe/0x2c1 [ 10.110665][ T166] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.110669][ T166] ? __kmalloc_noprof+0xdb/0x760 [ 10.110674][ T166] __kmalloc_noprof+0x443/0x760 [ 10.110677][ T166] ? alloc_buf.isra.0+0x4b/0x260 [ 10.110686][ T166] ? do_raw_spin_unlock+0x59/0x250 [ 10.110688][ T166] alloc_buf.isra.0+0x4b/0x260 [ 10.110692][ T166] put_chars+0x1e1/0x2f0 [ 10.110695][ T166] ? __send_to_port+0x420/0x420 [ 10.110698][ T166] ? validate_chain+0x38b/0xc20 [ 10.110703][ T166] hvc_console_print+0x292/0x780 [ 10.110710][ T166] ? hvc_write+0x3a0/0x3a0 [ 10.110712][ T166] ? rcu_is_watching+0x16/0xd0 [ 10.110717][ T166] ? lock_acquire+0x13c/0x160 [ 10.110721][ T166] console_emit_next_record+0x22f/0x4c0 [ 10.110725][ T166] ? devkmsg_read+0x4b0/0x4b0 [ 10.110727][ T166] ? console_flush_one_record+0x106/0x710 [ 10.110730][ T166] ? rcu_is_watching+0x16/0xd0 [ 10.110732][ T166] ? lock_acquire+0x13c/0x160 [ 10.110736][ T166] console_flush_one_record+0x46f/0x710 [ 10.110740][ T166] ? console_emit_next_record+0x4c0/0x4c0 [ 10.110742][ T166] ? __lock_acquire+0x518/0xc20 [ 10.110747][ T166] console_unlock+0xee/0x1f0 [ 10.110750][ T166] ? console_flush_one_record+0x710/0x710 [ 10.110752][ T166] ? rcu_is_watching+0x16/0xd0 [ 10.110754][ T166] ? lock_acquire+0x60/0x160 [ 10.110758][ T166] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.110760][ T166] ? vprintk_emit+0x320/0x3e0 [ 10.110763][ T166] vprintk_emit+0x37c/0x3e0 [ 10.110767][ T166] ? wake_up_klogd_work_func+0x90/0x90 [ 10.110770][ T166] ? __lock_acquire+0x518/0xc20 [ 10.110774][ T166] _printk+0xc7/0x100 [ 10.110778][ T166] ? snapshot_read.cold+0x21/0x21 [ 10.110780][ T166] ? do_raw_spin_lock+0x131/0x280 [ 10.110783][ T166] ? __rwlock_init+0x150/0x150 [ 10.110787][ T166] ? do_raw_spin_lock+0x131/0x280 [ 10.110789][ T166] do_exit.cold+0x82/0x9c [ 10.110793][ T166] ? exit_notify+0x890/0x890 [ 10.110795][ T166] ? find_held_lock+0x2b/0x80 [ 10.110798][ T166] ? __lock_release.isra.0+0x69/0x1a0 [ 10.110799][ T166] ? __rwlock_init+0x150/0x150 [ 10.110803][ T166] do_group_exit+0xb8/0x370 [ 10.110804][ T166] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 10.110806][ T166] ? lockdep_hardirqs_on+0x91/0x130 [ 10.110809][ T166] ? _raw_spin_unlock_irq+0x28/0x50 [ 10.110812][ T166] ? _raw_spin_unlock_irq+0x33/0x50 [ 10.110813][ T166] get_signal+0x1886/0x1980 [ 10.110821][ T166] ? ptrace_signal+0x600/0x600 [ 10.110826][ T166] arch_do_signal_or_restart+0xc2/0x3a0 [ 10.110831][ T166] ? get_sigframe_size+0x20/0x20 [ 10.110833][ T166] ? lockdep_hardirqs_on+0x91/0x130 [ 10.110837][ T166] ? do_futex+0x270/0x270 [ 10.110840][ T166] ? rcu_is_watching+0x16/0xd0 [ 10.110842][ T166] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.110846][ T166] exit_to_user_mode_loop+0xd5/0x5a0 [ 10.110849][ T166] ? rcu_is_watching+0x16/0xd0 [ 10.110852][ T166] do_syscall_64+0x3e3/0x530 [ 10.110855][ T166] ? irq_exit_rcu+0x1a/0x30 [ 10.110857][ T166] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.110860][ T166] RIP: 0033:0x7f9ef7ab4312 [ 10.110862][ T166] Code: Unable to access opcode bytes at 0x7f9ef7ab42e8. [ 10.110864][ T166] RSP: 002b:00007ffc46486718 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 10.110866][ T166] RAX: fffffffffffffe00 RBX: 0000000000418460 RCX: 00007f9ef7ab4312 [ 10.110867][ T166] RDX: 0000000000000017 RSI: 0000000000000189 RDI: 0000000000418484 [ 10.110868][ T166] RBP: 00007ffc46486740 R08: 0000000000000000 R09: 00000000ffffffff [ 10.110869][ T166] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 10.110870][ T166] R13: 00000000004184a0 R14: 0000000000000033 R15: 0000000000000000 [ 10.110876][ T166]