[ 11.382335][ T167] restore_ipv4 (167) used greatest stack depth: 24544 bytes left [ 11.382354][ T167] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.382356][ T167] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 167, name: restore_ipv4 [ 11.382357][ T167] preempt_count: 2, expected: 0 [ 11.382358][ T167] RCU nest depth: 0, expected: 0 [ 11.382359][ T167] locks held by restore_ipv4/167: 5, last CPU#3: [ 11.382362][ T167] #0: ffffffff90c127b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 11.382373][ T167] #1: ffffffff90d79cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.382379][ T167] #2: ffffffff90d79d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.382383][ T167] #3: ffffffff90c99660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.382386][ T167] #4: ffffffff90c99560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.382390][ T167] irq event stamp: 338124 [ 11.382391][ T167] hardirqs last enabled at (338123): [] __down_trylock_console_sem+0x86/0xa0 [ 11.382393][ T167] hardirqs last disabled at (338124): [] console_emit_next_record+0x3d4/0x4c0 [ 11.382395][ T167] softirqs last enabled at (338022): [] handle_softirqs+0x67c/0x900 [ 11.382397][ T167] softirqs last disabled at (338017): [] __irq_exit_rcu+0x145/0x1c0 [ 11.382399][ T167] Preemption disabled at: [ 11.382400][ T167] [<0000000000000000>] 0x0 [ 11.382407][ T167] CPU: 3 UID: 0 PID: 167 Comm: restore_ipv4 Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.382410][ T167] Tainted: [W]=WARN [ 11.382411][ T167] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.382413][ T167] Call Trace: [ 11.382415][ T167] [ 11.382416][ T167] dump_stack_lvl+0x6f/0xa0 [ 11.382422][ T167] __might_resched.cold+0x1fe/0x2c1 [ 11.382427][ T167] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.382431][ T167] ? __kmalloc_noprof+0xdb/0x760 [ 11.382435][ T167] __kmalloc_noprof+0x443/0x760 [ 11.382438][ T167] ? alloc_buf.isra.0+0x4b/0x260 [ 11.382444][ T167] ? do_raw_spin_unlock+0x59/0x250 [ 11.382446][ T167] alloc_buf.isra.0+0x4b/0x260 [ 11.382450][ T167] put_chars+0x1e1/0x2f0 [ 11.382452][ T167] ? __send_to_port+0x420/0x420 [ 11.382456][ T167] ? validate_chain+0x38b/0xc20 [ 11.382460][ T167] hvc_console_print+0x292/0x780 [ 11.382467][ T167] ? hvc_write+0x3a0/0x3a0 [ 11.382469][ T167] ? rcu_is_watching+0x16/0xd0 [ 11.382474][ T167] ? lock_acquire+0x13c/0x160 [ 11.382478][ T167] console_emit_next_record+0x22f/0x4c0 [ 11.382482][ T167] ? devkmsg_read+0x4b0/0x4b0 [ 11.382483][ T167] ? console_flush_one_record+0x106/0x710 [ 11.382486][ T167] ? rcu_is_watching+0x16/0xd0 [ 11.382489][ T167] ? lock_acquire+0x13c/0x160 [ 11.382493][ T167] console_flush_one_record+0x46f/0x710 [ 11.382497][ T167] ? console_emit_next_record+0x4c0/0x4c0 [ 11.382498][ T167] ? __lock_acquire+0x518/0xc20 [ 11.382503][ T167] console_unlock+0xee/0x1f0 [ 11.382506][ T167] ? console_flush_one_record+0x710/0x710 [ 11.382508][ T167] ? rcu_is_watching+0x16/0xd0 [ 11.382510][ T167] ? lock_acquire+0x60/0x160 [ 11.382514][ T167] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.382516][ T167] ? vprintk_emit+0x320/0x3e0 [ 11.382519][ T167] vprintk_emit+0x37c/0x3e0 [ 11.382523][ T167] ? wake_up_klogd_work_func+0x90/0x90 [ 11.382526][ T167] ? __lock_acquire+0x518/0xc20 [ 11.382530][ T167] _printk+0xc7/0x100 [ 11.382533][ T167] ? snapshot_read.cold+0x21/0x21 [ 11.382536][ T167] ? do_raw_spin_lock+0x131/0x280 [ 11.382538][ T167] ? __rwlock_init+0x150/0x150 [ 11.382542][ T167] ? do_raw_spin_lock+0x131/0x280 [ 11.382545][ T167] do_exit.cold+0x82/0x9c [ 11.382548][ T167] ? exit_notify+0x890/0x890 [ 11.382550][ T167] ? find_held_lock+0x2b/0x80 [ 11.382552][ T167] ? __lock_release.isra.0+0x69/0x1a0 [ 11.382554][ T167] ? __rwlock_init+0x150/0x150 [ 11.382557][ T167] do_group_exit+0xb8/0x370 [ 11.382559][ T167] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 11.382561][ T167] ? lockdep_hardirqs_on+0x91/0x130 [ 11.382564][ T167] ? _raw_spin_unlock_irq+0x28/0x50 [ 11.382566][ T167] ? _raw_spin_unlock_irq+0x33/0x50 [ 11.382568][ T167] get_signal+0x1886/0x1980 [ 11.382576][ T167] ? ptrace_signal+0x600/0x600 [ 11.382581][ T167] arch_do_signal_or_restart+0xc2/0x3a0 [ 11.382585][ T167] ? get_sigframe_size+0x20/0x20 [ 11.382587][ T167] ? lockdep_hardirqs_on+0x91/0x130 [ 11.382591][ T167] ? do_futex+0x270/0x270 [ 11.382594][ T167] ? rcu_is_watching+0x16/0xd0 [ 11.382596][ T167] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 11.382600][ T167] exit_to_user_mode_loop+0xd5/0x5a0 [ 11.382603][ T167] ? rcu_is_watching+0x16/0xd0 [ 11.382606][ T167] do_syscall_64+0x3e3/0x530 [ 11.382609][ T167] ? irq_exit_rcu+0x1a/0x30 [ 11.382611][ T167] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.382613][ T167] RIP: 0033:0x7f2b7ff03312 [ 11.382616][ T167] Code: Unable to access opcode bytes at 0x7f2b7ff032e8. [ 11.382617][ T167] RSP: 002b:00007fff82fd1ea8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 11.382619][ T167] RAX: fffffffffffffe00 RBX: 0000000000418460 RCX: 00007f2b7ff03312 [ 11.382621][ T167] RDX: 0000000000000017 RSI: 0000000000000189 RDI: 0000000000418484 [ 11.382622][ T167] RBP: 00007fff82fd1ed0 R08: 0000000000000000 R09: 00000000ffffffff [ 11.382623][ T167] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 11.382623][ T167] R13: 00000000004184a0 R14: 0000000000000033 R15: 0000000000000000 [ 11.382630][ T167]