[ 8.700527][ T167] connect_ipv4 (167) used greatest stack depth: 24624 bytes left [ 8.700541][ T167] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.700543][ T167] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 167, name: connect_ipv4 [ 8.700545][ T167] preempt_count: 2, expected: 0 [ 8.700545][ T167] RCU nest depth: 0, expected: 0 [ 8.700546][ T167] locks held by connect_ipv4/167: 5, last CPU#3: [ 8.700548][ T167] #0: ffffffff852127b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 8.700560][ T167] #1: ffffffff85379cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.700566][ T167] #2: ffffffff85379d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.700569][ T167] #3: ffffffff85299660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.700573][ T167] #4: ffffffff85299560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 8.700576][ T167] irq event stamp: 176768 [ 8.700577][ T167] hardirqs last enabled at (176767): [] __down_trylock_console_sem+0x86/0xa0 [ 8.700580][ T167] hardirqs last disabled at (176768): [] console_emit_next_record+0x3d4/0x4c0 [ 8.700582][ T167] softirqs last enabled at (176020): [] tcp_close+0x2b/0xb0 [ 8.700586][ T167] softirqs last disabled at (176018): [] release_sock+0x21/0x240 [ 8.700589][ T167] Preemption disabled at: [ 8.700590][ T167] [<0000000000000000>] 0x0 [ 8.700597][ T167] CPU: 3 UID: 0 PID: 167 Comm: connect_ipv4 Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.700600][ T167] Tainted: [W]=WARN [ 8.700601][ T167] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.700603][ T167] Call Trace: [ 8.700604][ T167] [ 8.700606][ T167] dump_stack_lvl+0x6f/0xa0 [ 8.700612][ T167] __might_resched.cold+0x1fe/0x2c1 [ 8.700616][ T167] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.700620][ T167] ? __kmalloc_noprof+0xdb/0x760 [ 8.700625][ T167] __kmalloc_noprof+0x443/0x760 [ 8.700627][ T167] ? alloc_buf.isra.0+0x4b/0x260 [ 8.700633][ T167] ? do_raw_spin_unlock+0x59/0x250 [ 8.700636][ T167] alloc_buf.isra.0+0x4b/0x260 [ 8.700639][ T167] put_chars+0x1e1/0x2f0 [ 8.700642][ T167] ? __send_to_port+0x420/0x420 [ 8.700645][ T167] ? validate_chain+0x38b/0xc20 [ 8.700650][ T167] hvc_console_print+0x292/0x780 [ 8.700657][ T167] ? hvc_write+0x3a0/0x3a0 [ 8.700659][ T167] ? rcu_is_watching+0x16/0xd0 [ 8.700663][ T167] ? lock_acquire+0x13c/0x160 [ 8.700667][ T167] console_emit_next_record+0x22f/0x4c0 [ 8.700671][ T167] ? devkmsg_read+0x4b0/0x4b0 [ 8.700673][ T167] ? console_flush_one_record+0x106/0x710 [ 8.700676][ T167] ? rcu_is_watching+0x16/0xd0 [ 8.700678][ T167] ? lock_acquire+0x13c/0x160 [ 8.700682][ T167] console_flush_one_record+0x46f/0x710 [ 8.700690][ T167] ? console_emit_next_record+0x4c0/0x4c0 [ 8.700692][ T167] ? __lock_acquire+0x518/0xc20 [ 8.700697][ T167] console_unlock+0xee/0x1f0 [ 8.700700][ T167] ? console_flush_one_record+0x710/0x710 [ 8.700701][ T167] ? rcu_is_watching+0x16/0xd0 [ 8.700704][ T167] ? lock_acquire+0x60/0x160 [ 8.700707][ T167] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.700709][ T167] ? vprintk_emit+0x320/0x3e0 [ 8.700712][ T167] vprintk_emit+0x37c/0x3e0 [ 8.700715][ T167] ? wake_up_klogd_work_func+0x90/0x90 [ 8.700717][ T167] ? do_raw_spin_unlock+0x59/0x250 [ 8.700720][ T167] ? __lock_acquire+0x518/0xc20 [ 8.700724][ T167] _printk+0xc7/0x100 [ 8.700727][ T167] ? snapshot_read.cold+0x21/0x21 [ 8.700730][ T167] ? do_raw_spin_lock+0x131/0x280 [ 8.700732][ T167] ? __rwlock_init+0x150/0x150 [ 8.700736][ T167] ? do_raw_spin_lock+0x131/0x280 [ 8.700739][ T167] do_exit.cold+0x82/0x9c [ 8.700742][ T167] ? exit_notify+0x890/0x890 [ 8.700744][ T167] ? find_held_lock+0x2b/0x80 [ 8.700746][ T167] ? __lock_release.isra.0+0x69/0x1a0 [ 8.700748][ T167] ? __rwlock_init+0x150/0x150 [ 8.700751][ T167] do_group_exit+0xb8/0x370 [ 8.700753][ T167] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 8.700754][ T167] ? lockdep_hardirqs_on+0x91/0x130 [ 8.700757][ T167] ? _raw_spin_unlock_irq+0x28/0x50 [ 8.700760][ T167] ? _raw_spin_unlock_irq+0x33/0x50 [ 8.700761][ T167] get_signal+0x1886/0x1980 [ 8.700767][ T167] ? poll_freewait+0x230/0x230 [ 8.700772][ T167] ? ptrace_signal+0x600/0x600 [ 8.700775][ T167] ? ktime_get_ts64+0x228/0x390 [ 8.700780][ T167] arch_do_signal_or_restart+0xc2/0x3a0 [ 8.700783][ T167] ? do_pselect.constprop.0+0x14e/0x1f0 [ 8.700786][ T167] ? get_sigframe_size+0x20/0x20 [ 8.700791][ T167] ? rcu_is_watching+0x16/0xd0 [ 8.700794][ T167] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 8.700797][ T167] exit_to_user_mode_loop+0xd5/0x5a0 [ 8.700800][ T167] ? rcu_is_watching+0x16/0xd0 [ 8.700803][ T167] do_syscall_64+0x3e3/0x530 [ 8.700806][ T167] ? exc_page_fault+0xee/0x100 [ 8.700808][ T167] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.700810][ T167] RIP: 0033:0x7f2e88632312 [ 8.700812][ T167] Code: Unable to access opcode bytes at 0x7f2e886322e8. [ 8.700814][ T167] RSP: 002b:00007fff8717a798 EFLAGS: 00000246 ORIG_RAX: 000000000000010e [ 8.700816][ T167] RAX: fffffffffffffdfe RBX: 00007fff8717a9b0 RCX: 00007f2e88632312 [ 8.700817][ T167] RDX: 0000000000000000 RSI: 00007fff8717a860 RDI: 000000000000000c [ 8.700818][ T167] RBP: 00007fff8717a7c0 R08: 00007fff8717a800 R09: 0000000000000000 [ 8.700819][ T167] R10: 00007fff8717a8e0 R11: 0000000000000246 R12: 7fffffffffffffff [ 8.700819][ T167] R13: 7fffffffffffffff R14: 0000000000000000 R15: 00000000004c4b40 [ 8.700826][ T167]