[ 10.418944][ T213] ip (213) used greatest stack depth: 23552 bytes left [ 10.418965][ T213] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.418967][ T213] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 213, name: ip [ 10.418969][ T213] preempt_count: 2, expected: 0 [ 10.418970][ T213] RCU nest depth: 0, expected: 0 [ 10.418971][ T213] locks held by ip/213: 5, last CPU#2: [ 10.418973][ T213] #0: ffffffffa56167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.418985][ T213] #1: ffffffffa577ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.418990][ T213] #2: ffffffffa577de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.418994][ T213] #3: ffffffffa569d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.418998][ T213] #4: ffffffffa569d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.419002][ T213] irq event stamp: 33628 [ 10.419003][ T213] hardirqs last enabled at (33627): [] __down_trylock_console_sem+0x86/0xa0 [ 10.419006][ T213] hardirqs last disabled at (33628): [] console_emit_next_record+0x3d4/0x4c0 [ 10.419008][ T213] softirqs last enabled at (32604): [] handle_softirqs+0x67c/0x900 [ 10.419011][ T213] softirqs last disabled at (32113): [] __irq_exit_rcu+0x145/0x1c0 [ 10.419013][ T213] Preemption disabled at: [ 10.419014][ T213] [<0000000000000000>] 0x0 [ 10.419020][ T213] CPU: 2 UID: 0 PID: 213 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.419024][ T213] Tainted: [W]=WARN [ 10.419025][ T213] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.419027][ T213] Call Trace: [ 10.419028][ T213] [ 10.419030][ T213] dump_stack_lvl+0x6f/0xa0 [ 10.419037][ T213] __might_resched.cold+0x1fe/0x2c1 [ 10.419041][ T213] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.419045][ T213] ? __kmalloc_noprof+0xdb/0x760 [ 10.419050][ T213] __kmalloc_noprof+0x443/0x760 [ 10.419052][ T213] ? alloc_buf.isra.0+0x4b/0x260 [ 10.419059][ T213] ? do_raw_spin_unlock+0x59/0x250 [ 10.419062][ T213] alloc_buf.isra.0+0x4b/0x260 [ 10.419065][ T213] put_chars+0x1e1/0x2f0 [ 10.419068][ T213] ? __send_to_port+0x420/0x420 [ 10.419069][ T213] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.419073][ T213] ? validate_chain+0x38b/0xc20 [ 10.419078][ T213] hvc_console_print+0x292/0x780 [ 10.419086][ T213] ? hvc_write+0x3a0/0x3a0 [ 10.419089][ T213] ? rcu_is_watching+0x16/0xd0 [ 10.419091][ T213] ? lock_acquire+0x13c/0x160 [ 10.419095][ T213] console_emit_next_record+0x22f/0x4c0 [ 10.419099][ T213] ? devkmsg_read+0x4b0/0x4b0 [ 10.419101][ T213] ? console_flush_one_record+0x106/0x710 [ 10.419104][ T213] ? rcu_is_watching+0x16/0xd0 [ 10.419106][ T213] ? lock_acquire+0x13c/0x160 [ 10.419110][ T213] console_flush_one_record+0x46f/0x710 [ 10.419114][ T213] ? console_emit_next_record+0x4c0/0x4c0 [ 10.419116][ T213] ? __lock_acquire+0x518/0xc20 [ 10.419121][ T213] console_unlock+0xee/0x1f0 [ 10.419124][ T213] ? console_flush_one_record+0x710/0x710 [ 10.419126][ T213] ? rcu_is_watching+0x16/0xd0 [ 10.419128][ T213] ? lock_acquire+0xe0/0x160 [ 10.419132][ T213] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.419133][ T213] ? vprintk_emit+0x320/0x3e0 [ 10.419136][ T213] vprintk_emit+0x37c/0x3e0 [ 10.419139][ T213] ? wake_up_klogd_work_func+0x90/0x90 [ 10.419142][ T213] ? __lock_acquire+0x518/0xc20 [ 10.419146][ T213] _printk+0xc7/0x100 [ 10.419150][ T213] ? snapshot_read.cold+0x21/0x21 [ 10.419153][ T213] ? do_raw_spin_lock+0x131/0x280 [ 10.419155][ T213] ? __rwlock_init+0x150/0x150 [ 10.419159][ T213] ? do_raw_spin_lock+0x131/0x280 [ 10.419162][ T213] do_exit.cold+0x82/0x9c [ 10.419166][ T213] ? exit_notify+0x890/0x890 [ 10.419167][ T213] ? __lock_release.isra.0+0x69/0x1a0 [ 10.419170][ T213] ? rcu_is_watching+0x16/0xd0 [ 10.419174][ T213] do_group_exit+0xb8/0x370 [ 10.419177][ T213] __x64_sys_exit_group+0x3c/0x50 [ 10.419179][ T213] x64_sys_call+0x1567/0x1570 [ 10.419181][ T213] do_syscall_64+0xff/0x530 [ 10.419185][ T213] ? exc_page_fault+0xee/0x100 [ 10.419188][ T213] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.419191][ T213] RIP: 0033:0x7f31177f91b8 [ 10.419193][ T213] Code: Unable to access opcode bytes at 0x7f31177f918e. [ 10.419194][ T213] RSP: 002b:00007fffd938e948 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.419197][ T213] RAX: ffffffffffffffda RBX: 00007f3117929f88 RCX: 00007f31177f91b8 [ 10.419198][ T213] RDX: 00007f3117543fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 10.419199][ T213] RBP: 00007fffd938e9a0 R08: 0000000000000000 R09: 0000000000000050 [ 10.419200][ T213] R10: 00007fffd938e760 R11: 0000000000000246 R12: 0000000000000001 [ 10.419201][ T213] R13: 0000000000000000 R14: 00007f3117928680 R15: 00007f3117929fa0 [ 10.419208][ T213] [ 16.109058][ C0] IPv4: Oversized IP packet from 172.17.0.2 [ 16.109102][ C0] [ 16.109103][ C0] ======================================================== [ 16.109104][ C0] WARNING: possible irq lock inversion dependency detected [ 16.109106][ C0] 7.2.0-virtme #1 Tainted: G W [ 16.109108][ C0] -------------------------------------------------------- [ 16.109108][ C0] psock_snd/376 just changed the state of lock: [ 16.109110][ C0] ffffffffa569d760 (console_owner){..-.}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 16.109122][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 16.109123][ C0] (fs_reclaim){+.+.}-{0:0} [ 16.109124][ C0] [ 16.109124][ C0] [ 16.109124][ C0] and interrupts could create inverse lock ordering between them. [ 16.109124][ C0] [ 16.109125][ C0] [ 16.109125][ C0] other info that might help us debug this: [ 16.109125][ C0] Possible interrupt unsafe locking scenario: [ 16.109125][ C0] [ 16.109126][ C0] CPU0 CPU1 [ 16.109127][ C0] ---- ---- [ 16.109127][ C0] lock(fs_reclaim); [ 16.109128][ C0] local_irq_disable(); [ 16.109128][ C0] lock(console_owner); [ 16.109129][ C0] lock(fs_reclaim); [ 16.109130][ C0] [ 16.109130][ C0] lock(console_owner); [ 16.109131][ C0] [ 16.109131][ C0] *** DEADLOCK *** [ 16.109131][ C0] [ 16.109132][ C0] locks held by psock_snd/376: 5, last CPU#0: [ 16.109133][ C0] #0: ffffffffa5794c00 (rcu_read_lock){....}-{1:3}, at: process_backlog+0x3f1/0x14c0 [ 16.109139][ C0] #1: ffffffffa5794c00 (rcu_read_lock){....}-{1:3}, at: ip_defrag+0xcd/0x7a0 [ 16.109143][ C0] #2: ff110000059003e8 (&q->lock){+.-.}-{3:3}, at: ip_defrag+0x2c4/0x7a0 [ 16.109146][ C0] #3: ffffffffa577ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 16.109149][ C0] #4: ffffffffa577de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 16.109152][ C0] [ 16.109152][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 16.109156][ C0] -> (fs_reclaim){+.+.}-{0:0} { [ 16.109159][ C0] HARDIRQ-ON-W at: [ 16.109160][ C0] __lock_acquire+0x388/0xc20 [ 16.109164][ C0] lock_acquire.part.0+0xd4/0x280 [ 16.109165][ C0] fs_reclaim_acquire+0xd5/0x120 [ 16.109169][ C0] __kmalloc_cache_noprof+0x6e/0x620 [ 16.109171][ C0] kthread_create_worker_on_node+0xea/0x210 [ 16.109174][ C0] workqueue_init+0x2a/0x680 [ 16.109177][ C0] kernel_init_freeable+0x2fe/0x630 [ 16.109181][ C0] kernel_init+0x21/0x150 [ 16.109184][ C0] ret_from_fork+0x474/0x6b0 [ 16.109187][ C0] ret_from_fork_asm+0x11/0x20 [ 16.109190][ C0] SOFTIRQ-ON-W at: [ 16.109191][ C0] __lock_acquire+0x388/0xc20 [ 16.109193][ C0] lock_acquire.part.0+0xd4/0x280 [ 16.109194][ C0] fs_reclaim_acquire+0xd5/0x120 [ 16.109195][ C0] __kmalloc_cache_noprof+0x6e/0x620 [ 16.109196][ C0] kthread_create_worker_on_node+0xea/0x210 [ 16.109198][ C0] workqueue_init+0x2a/0x680 [ 16.109199][ C0] kernel_init_freeable+0x2fe/0x630 [ 16.109201][ C0] kernel_init+0x21/0x150 [ 16.109202][ C0] ret_from_fork+0x474/0x6b0 [ 16.109203][ C0] ret_from_fork_asm+0x11/0x20 [ 16.109205][ C0] INITIAL USE at: [ 16.109206][ C0] __lock_acquire+0x388/0xc20 [ 16.109207][ C0] lock_acquire.part.0+0xd4/0x280 [ 16.109209][ C0] fs_reclaim_acquire+0xd5/0x120 [ 16.109210][ C0] __kmalloc_cache_noprof+0x6e/0x620 [ 16.109211][ C0] kthread_create_worker_on_node+0xea/0x210 [ 16.109213][ C0] workqueue_init+0x2a/0x680 [ 16.109214][ C0] kernel_init_freeable+0x2fe/0x630 [ 16.109216][ C0] kernel_init+0x21/0x150 [ 16.109217][ C0] ret_from_fork+0x474/0x6b0 [ 16.109218][ C0] ret_from_fork_asm+0x11/0x20 [ 16.109219][ C0] } [ 16.109220][ C0] ... key at: [] __fs_reclaim_map+0x0/0xbe0 [ 16.109224][ C0] ... acquired at: [ 16.109225][ C0] __lock_acquire+0x518/0xc20 [ 16.109226][ C0] lock_acquire.part.0+0xd4/0x280 [ 16.109227][ C0] fs_reclaim_acquire+0xd5/0x120 [ 16.109229][ C0] __kmalloc_noprof+0xd3/0x760 [ 16.109230][ C0] alloc_buf.isra.0+0x4b/0x260 [ 16.109233][ C0] put_chars+0x1e1/0x2f0 [ 16.109234][ C0] hvc_console_print+0x292/0x780 [ 16.109238][ C0] console_emit_next_record+0x22f/0x4c0 [ 16.109239][ C0] console_flush_one_record+0x46f/0x710 [ 16.109241][ C0] console_unlock+0xee/0x1f0 [ 16.109243][ C0] vprintk_emit+0x37c/0x3e0 [ 16.109243][ C0] _printk+0xc7/0x100 [ 16.109247][ C0] tun_init+0x24/0xb0 [ 16.109249][ C0] do_one_initcall+0x124/0x4f0 [ 16.109250][ C0] kernel_init_freeable+0x596/0x630 [ 16.109252][ C0] kernel_init+0x21/0x150 [ 16.109253][ C0] ret_from_fork+0x474/0x6b0 [ 16.109254][ C0] ret_from_fork_asm+0x11/0x20 [ 16.109256][ C0] [ 16.109256][ C0] -> (console_owner){..-.}-{0:0} { [ 16.109258][ C0] IN-SOFTIRQ-W at: [ 16.109259][ C0] __lock_acquire+0x388/0xc20 [ 16.109260][ C0] lock_acquire.part.0+0xd4/0x280 [ 16.109261][ C0] console_lock_spinning_enable+0x5c/0x60 [ 16.109263][ C0] console_emit_next_record+0x1d1/0x4c0 [ 16.109265][ C0] console_flush_one_record+0x46f/0x710 [ 16.109267][ C0] console_unlock+0xee/0x1f0 [ 16.109268][ C0] vprintk_emit+0x37c/0x3e0 [ 16.109269][ C0] _printk+0xc7/0x100 [ 16.109270][ C0] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 16.109273][ C0] ip_frag_queue+0xeb5/0x1830 [ 16.109274][ C0] ip_defrag+0x2d4/0x7a0 [ 16.109275][ C0] ip_local_deliver+0x171/0x4c0 [ 16.109276][ C0] ip_rcv+0xdc/0x3d0 [ 16.109277][ C0] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 16.109278][ C0] __netif_receive_skb_one_core+0xa2/0x180 [ 16.109280][ C0] process_backlog+0x431/0x14c0 [ 16.109281][ C0] __napi_poll+0xa7/0x3b0 [ 16.109283][ C0] net_rx_action+0x513/0xf50 [ 16.109285][ C0] handle_softirqs+0x1d3/0x900 [ 16.109287][ C0] do_softirq+0xac/0xe0 [ 16.109289][ C0] __local_bh_enable_ip+0x118/0x150 [ 16.109290][ C0] __dev_queue_xmit+0x989/0x1b90 [ 16.109291][ C0] packet_snd+0xee8/0x1840 [ 16.109294][ C0] __sock_sendmsg+0xce/0x190 [ 16.109297][ C0] __sys_sendto+0x260/0x320 [ 16.109298][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 16.109300][ C0] do_syscall_64+0xff/0x530 [ 16.109302][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 16.109304][ C0] INITIAL USE at: [ 16.109305][ C0] } [ 16.109305][ C0] ... key at: [] console_owner_dep_map+0x0/0x60 [ 16.109308][ C0] ... acquired at: [ 16.109308][ C0] mark_lock+0x1d7/0xa00 [ 16.109310][ C0] mark_usage+0x42/0x170 [ 16.109311][ C0] __lock_acquire+0x388/0xc20 [ 16.109312][ C0] lock_acquire.part.0+0xd4/0x280 [ 16.109314][ C0] console_lock_spinning_enable+0x5c/0x60 [ 16.109315][ C0] console_emit_next_record+0x1d1/0x4c0 [ 16.109317][ C0] console_flush_one_record+0x46f/0x710 [ 16.109318][ C0] console_unlock+0xee/0x1f0 [ 16.109324][ C0] vprintk_emit+0x37c/0x3e0 [ 16.109324][ C0] _printk+0xc7/0x100 [ 16.109326][ C0] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 16.109327][ C0] ip_frag_queue+0xeb5/0x1830 [ 16.109328][ C0] ip_defrag+0x2d4/0x7a0 [ 16.109329][ C0] ip_local_deliver+0x171/0x4c0 [ 16.109330][ C0] ip_rcv+0xdc/0x3d0 [ 16.109330][ C0] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 16.109332][ C0] __netif_receive_skb_one_core+0xa2/0x180 [ 16.109333][ C0] process_backlog+0x431/0x14c0 [ 16.109335][ C0] __napi_poll+0xa7/0x3b0 [ 16.109336][ C0] net_rx_action+0x513/0xf50 [ 16.109338][ C0] handle_softirqs+0x1d3/0x900 [ 16.109339][ C0] do_softirq+0xac/0xe0 [ 16.109340][ C0] __local_bh_enable_ip+0x118/0x150 [ 16.109341][ C0] __dev_queue_xmit+0x989/0x1b90 [ 16.109343][ C0] packet_snd+0xee8/0x1840 [ 16.109344][ C0] __sock_sendmsg+0xce/0x190 [ 16.109345][ C0] __sys_sendto+0x260/0x320 [ 16.109347][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 16.109348][ C0] do_syscall_64+0xff/0x530 [ 16.109350][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 16.109351][ C0] [ 16.109351][ C0] [ 16.109351][ C0] stack backtrace: [ 16.109354][ C0] CPU: 0 UID: 0 PID: 376 Comm: psock_snd Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 16.109357][ C0] Tainted: [W]=WARN [ 16.109358][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.109360][ C0] Call Trace: [ 16.109361][ C0] [ 16.109362][ C0] dump_stack_lvl+0x6f/0xa0 [ 16.109366][ C0] print_irq_inversion_bug.part.0.cold+0xe6/0x143 [ 16.109368][ C0] mark_lock_irq+0x989/0x9c0 [ 16.109371][ C0] mark_lock+0x1d7/0xa00 [ 16.109373][ C0] mark_usage+0x42/0x170 [ 16.109375][ C0] __lock_acquire+0x388/0xc20 [ 16.109377][ C0] lock_acquire.part.0+0xd4/0x280 [ 16.109379][ C0] ? console_lock_spinning_enable+0x40/0x60 [ 16.109381][ C0] ? rcu_is_watching+0x16/0xd0 [ 16.109383][ C0] ? lock_acquire+0x13c/0x160 [ 16.109385][ C0] console_lock_spinning_enable+0x5c/0x60 [ 16.109386][ C0] ? console_lock_spinning_enable+0x40/0x60 [ 16.109388][ C0] console_emit_next_record+0x1d1/0x4c0 [ 16.109390][ C0] ? devkmsg_read+0x4b0/0x4b0 [ 16.109392][ C0] ? console_flush_one_record+0x106/0x710 [ 16.109394][ C0] ? rcu_is_watching+0x16/0xd0 [ 16.109395][ C0] ? lock_acquire+0x13c/0x160 [ 16.109397][ C0] console_flush_one_record+0x46f/0x710 [ 16.109399][ C0] ? console_emit_next_record+0x4c0/0x4c0 [ 16.109401][ C0] ? __lock_acquire+0x518/0xc20 [ 16.109403][ C0] console_unlock+0xee/0x1f0 [ 16.109405][ C0] ? console_flush_one_record+0x710/0x710 [ 16.109407][ C0] ? rcu_is_watching+0x16/0xd0 [ 16.109408][ C0] ? lock_acquire+0xe0/0x160 [ 16.109410][ C0] ? __down_trylock_console_sem+0x5e/0xa0 [ 16.109412][ C0] ? vprintk_emit+0x320/0x3e0 [ 16.109413][ C0] vprintk_emit+0x37c/0x3e0 [ 16.109414][ C0] ? wake_up_klogd_work_func+0x90/0x90 [ 16.109416][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 16.109418][ C0] _printk+0xc7/0x100 [ 16.109420][ C0] ? snapshot_read.cold+0x21/0x21 [ 16.109421][ C0] ? ___ratelimit+0x4e7/0xa00 [ 16.109424][ C0] ? idr_get_free+0x830/0x830 [ 16.109427][ C0] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 16.109428][ C0] ip_frag_queue+0xeb5/0x1830 [ 16.109431][ C0] ip_defrag+0x2d4/0x7a0 [ 16.109432][ C0] ? ip4_obj_hashfn+0x280/0x280 [ 16.109433][ C0] ? ip_route_input_noref+0x137/0x250 [ 16.109436][ C0] ? ip_route_input_slow+0x2420/0x2420 [ 16.109438][ C0] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 16.109440][ C0] ? rcu_is_watching+0x16/0xd0 [ 16.109442][ C0] ip_local_deliver+0x171/0x4c0 [ 16.109443][ C0] ? ip_local_deliver_finish+0x610/0x610 [ 16.109444][ C0] ? ip_rcv_finish_core+0x6ed/0x14c0 [ 16.109445][ C0] ? __asan_memset+0x27/0x50 [ 16.109449][ C0] ip_rcv+0xdc/0x3d0 [ 16.109450][ C0] ? ip_local_deliver+0x4c0/0x4c0 [ 16.109451][ C0] ? rcu_do_batch+0x2b6/0x1000 [ 16.109453][ C0] ? is_bpf_text_address+0x72/0x110 [ 16.109456][ C0] ? x86_64_start_kernel+0x12b/0x130 [ 16.109459][ C0] ? sched_balance_find_src_group+0xda/0x760 [ 16.109461][ C0] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 16.109463][ C0] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 16.109465][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 16.109467][ C0] ? validate_chain+0x38b/0xc20 [ 16.109469][ C0] ? mark_usage+0x61/0x170 [ 16.109471][ C0] ? __lock_acquire+0x518/0xc20 [ 16.109473][ C0] ? do_xdp_generic+0x4a0/0x4a0 [ 16.109474][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 16.109476][ C0] ? find_held_lock+0x2b/0x80 [ 16.109478][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 16.109479][ C0] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 16.109481][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 16.109482][ C0] ? validate_chain+0x38b/0xc20 [ 16.109484][ C0] ? sock_def_readable+0x156/0x480 [ 16.109486][ C0] ? mark_usage+0x61/0x170 [ 16.109487][ C0] ? __lock_acquire+0x518/0xc20 [ 16.109489][ C0] ? process_backlog+0x3f1/0x14c0 [ 16.109491][ C0] __netif_receive_skb_one_core+0xa2/0x180 [ 16.109493][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 16.109494][ C0] ? process_backlog+0x3f1/0x14c0 [ 16.109496][ C0] ? __netif_receive_skb_list_core+0x9e0/0x9e0 [ 16.109497][ C0] ? rcu_is_watching+0x16/0xd0 [ 16.109499][ C0] process_backlog+0x431/0x14c0 [ 16.109502][ C0] __napi_poll+0xa7/0x3b0 [ 16.109504][ C0] net_rx_action+0x513/0xf50 [ 16.109506][ C0] ? __lock_acquire+0x518/0xc20 [ 16.109508][ C0] ? __napi_poll+0x3b0/0x3b0 [ 16.109511][ C0] ? ktime_get_update_offsets_now+0x2a8/0x490 [ 16.109514][ C0] ? rcu_is_watching+0x16/0xd0 [ 16.109516][ C0] handle_softirqs+0x1d3/0x900 [ 16.109518][ C0] ? _local_bh_enable+0xc0/0xc0 [ 16.109519][ C0] ? do_raw_spin_unlock+0x59/0x250 [ 16.109521][ C0] ? rcu_is_watching+0x16/0xd0 [ 16.109522][ C0] ? __dev_queue_xmit+0x974/0x1b90 [ 16.109524][ C0] do_softirq+0xac/0xe0 [ 16.109526][ C0] [ 16.109526][ C0] [ 16.109527][ C0] __local_bh_enable_ip+0x118/0x150 [ 16.109528][ C0] __dev_queue_xmit+0x989/0x1b90 [ 16.109530][ C0] ? _copy_from_iter+0x1bb/0x1810 [ 16.109534][ C0] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 16.109536][ C0] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 16.109537][ C0] ? __might_fault+0x97/0x140 [ 16.109539][ C0] ? netdev_core_pick_tx+0x2c0/0x2c0 [ 16.109541][ C0] ? __virtio_net_hdr_to_skb.constprop.0+0x327/0x1440 [ 16.109543][ C0] ? alloc_pg_vec.isra.0+0x540/0x540 [ 16.109544][ C0] ? packet_rcv_spkt+0x5a0/0x5a0 [ 16.109546][ C0] packet_snd+0xee8/0x1840 [ 16.109549][ C0] ? kasan_addr_to_slab+0x41/0x50 [ 16.109551][ C0] ? tpacket_snd+0x1990/0x1990 [ 16.109553][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 16.109554][ C0] ? __might_fault+0x97/0x140 [ 16.109555][ C0] ? find_held_lock+0x2b/0x80 [ 16.109557][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 16.109559][ C0] __sock_sendmsg+0xce/0x190 [ 16.109560][ C0] ? fdget+0x4f/0x1e0 [ 16.109563][ C0] __sys_sendto+0x260/0x320 [ 16.109565][ C0] ? __ia32_sys_getpeername+0xd0/0xd0 [ 16.109569][ C0] ? fput_close_sync+0xde/0x1b0 [ 16.109571][ C0] ? alloc_file_clone+0xe0/0xe0 [ 16.109573][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 16.109575][ C0] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 16.109578][ C0] ? lockdep_hardirqs_on+0x91/0x130 [ 16.109579][ C0] ? do_syscall_64+0xa6/0x530 [ 16.109581][ C0] do_syscall_64+0xff/0x530 [ 16.109582][ C0] ? exc_page_fault+0xee/0x100 [ 16.109584][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 16.109586][ C0] RIP: 0033:0x7f9d7566d54e [ 16.109589][ C0] Code: 4d 89 d8 e8 b4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 16.109590][ C0] RSP: 002b:00007ffc8b971aa0 EFLAGS: 00000202 ORIG_RAX: 000000000000002c [ 16.109593][ C0] RAX: ffffffffffffffda RBX: 0000000000010018 RCX: 00007f9d7566d54e [ 16.109594][ C0] RDX: 0000000000010018 RSI: 0000000000415120 RDI: 0000000000000007 [ 16.109595][ C0] RBP: 00007ffc8b971ab0 R08: 00007ffc8b971b10 R09: 0000000000000014 [ 16.109596][ C0] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000007 [ 16.109597][ C0] R13: 0000000000000006 R14: 00007f9d7583e000 R15: 0000000000404e00 [ 16.109599][ C0] [ 16.109602][ C0] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 16.109604][ C0] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 376, name: psock_snd [ 16.109605][ C0] preempt_count: 103, expected: 0 [ 16.109606][ C0] RCU nest depth: 2, expected: 0 [ 16.109606][ C0] INFO: lockdep is turned off. [ 16.109607][ C0] irq event stamp: 26225 [ 16.109608][ C0] hardirqs last enabled at (26224): [] __down_trylock_console_sem+0x86/0xa0 [ 16.109610][ C0] hardirqs last disabled at (26225): [] console_emit_next_record+0x3d4/0x4c0 [ 16.109612][ C0] softirqs last enabled at (25862): [] __dev_queue_xmit+0x974/0x1b90 [ 16.109614][ C0] softirqs last disabled at (25863): [] do_softirq+0xac/0xe0 [ 16.109615][ C0] Preemption disabled at: [ 16.109616][ C0] [] __dev_queue_xmit+0x20c/0x1b90 [ 16.109619][ C0] CPU: 0 UID: 0 PID: 376 Comm: psock_snd Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 16.109620][ C0] Tainted: [W]=WARN [ 16.109621][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.109621][ C0] Call Trace: [ 16.109622][ C0] [ 16.109623][ C0] dump_stack_lvl+0x6f/0xa0 [ 16.109625][ C0] ? __dev_queue_xmit+0x20c/0x1b90 [ 16.109627][ C0] __might_resched.cold+0x1fe/0x2c1 [ 16.109629][ C0] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 16.109632][ C0] ? rcu_is_watching+0x16/0xd0 [ 16.109633][ C0] __kmalloc_noprof+0x443/0x760 [ 16.109634][ C0] ? __rwlock_init+0x150/0x150 [ 16.109636][ C0] ? alloc_buf.isra.0+0x4b/0x260 [ 16.109638][ C0] ? do_raw_spin_unlock+0x59/0x250 [ 16.109640][ C0] alloc_buf.isra.0+0x4b/0x260 [ 16.109642][ C0] put_chars+0x1e1/0x2f0 [ 16.109644][ C0] ? __send_to_port+0x420/0x420 [ 16.109646][ C0] hvc_console_print+0x292/0x780 [ 16.109648][ C0] ? __lock_acquire+0x388/0xc20 [ 16.109651][ C0] ? hvc_write+0x3a0/0x3a0 [ 16.109653][ C0] ? rcu_is_watching+0x16/0xd0 [ 16.109654][ C0] ? lock_acquire+0x13c/0x160 [ 16.109656][ C0] console_emit_next_record+0x22f/0x4c0 [ 16.109658][ C0] ? devkmsg_read+0x4b0/0x4b0 [ 16.109660][ C0] ? console_flush_one_record+0x106/0x710 [ 16.109662][ C0] ? rcu_is_watching+0x16/0xd0 [ 16.109663][ C0] ? lock_acquire+0x13c/0x160 [ 16.109665][ C0] console_flush_one_record+0x46f/0x710 [ 16.109667][ C0] ? console_emit_next_record+0x4c0/0x4c0 [ 16.109669][ C0] ? __lock_acquire+0x518/0xc20 [ 16.109671][ C0] console_unlock+0xee/0x1f0 [ 16.109673][ C0] ? console_flush_one_record+0x710/0x710 [ 16.109675][ C0] ? rcu_is_watching+0x16/0xd0 [ 16.109676][ C0] ? lock_acquire+0xe0/0x160 [ 16.109677][ C0] ? __down_trylock_console_sem+0x5e/0xa0 [ 16.109679][ C0] ? vprintk_emit+0x320/0x3e0 [ 16.109680][ C0] vprintk_emit+0x37c/0x3e0 [ 16.109682][ C0] ? wake_up_klogd_work_func+0x90/0x90 [ 16.109683][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 16.109685][ C0] _printk+0xc7/0x100 [ 16.109687][ C0] ? snapshot_read.cold+0x21/0x21 [ 16.109688][ C0] ? ___ratelimit+0x4e7/0xa00 [ 16.109690][ C0] ? idr_get_free+0x830/0x830 [ 16.109692][ C0] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 16.109694][ C0] ip_frag_queue+0xeb5/0x1830 [ 16.109696][ C0] ip_defrag+0x2d4/0x7a0 [ 16.109698][ C0] ? ip4_obj_hashfn+0x280/0x280 [ 16.109699][ C0] ? ip_route_input_noref+0x137/0x250 [ 16.109701][ C0] ? ip_route_input_slow+0x2420/0x2420 [ 16.109702][ C0] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 16.109704][ C0] ? rcu_is_watching+0x16/0xd0 [ 16.109705][ C0] ip_local_deliver+0x171/0x4c0 [ 16.109707][ C0] ? ip_local_deliver_finish+0x610/0x610 [ 16.109708][ C0] ? ip_rcv_finish_core+0x6ed/0x14c0 [ 16.109709][ C0] ? __asan_memset+0x27/0x50 [ 16.109711][ C0] ip_rcv+0xdc/0x3d0 [ 16.109713][ C0] ? ip_local_deliver+0x4c0/0x4c0 [ 16.109714][ C0] ? rcu_do_batch+0x2b6/0x1000 [ 16.109715][ C0] ? is_bpf_text_address+0x72/0x110 [ 16.109716][ C0] ? x86_64_start_kernel+0x12b/0x130 [ 16.109718][ C0] ? sched_balance_find_src_group+0xda/0x760 [ 16.109719][ C0] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 16.109721][ C0] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 16.109723][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 16.109724][ C0] ? validate_chain+0x38b/0xc20 [ 16.109726][ C0] ? mark_usage+0x61/0x170 [ 16.109728][ C0] ? __lock_acquire+0x518/0xc20 [ 16.109729][ C0] ? do_xdp_generic+0x4a0/0x4a0 [ 16.109731][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 16.109733][ C0] ? find_held_lock+0x2b/0x80 [ 16.109739][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 16.109741][ C0] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 16.109742][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 16.109743][ C0] ? validate_chain+0x38b/0xc20 [ 16.109745][ C0] ? sock_def_readable+0x156/0x480 [ 16.109746][ C0] ? mark_usage+0x61/0x170 [ 16.109748][ C0] ? __lock_acquire+0x518/0xc20 [ 16.109750][ C0] ? process_backlog+0x3f1/0x14c0 [ 16.109752][ C0] __netif_receive_skb_one_core+0xa2/0x180 [ 16.109753][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 16.109755][ C0] ? process_backlog+0x3f1/0x14c0 [ 16.109757][ C0] ? __netif_receive_skb_list_core+0x9e0/0x9e0 [ 16.109758][ C0] ? rcu_is_watching+0x16/0xd0 [ 16.109760][ C0] process_backlog+0x431/0x14c0 [ 16.109763][ C0] __napi_poll+0xa7/0x3b0 [ 16.109765][ C0] net_rx_action+0x513/0xf50 [ 16.109767][ C0] ? __lock_acquire+0x518/0xc20 [ 16.109769][ C0] ? __napi_poll+0x3b0/0x3b0 [ 16.109772][ C0] ? ktime_get_update_offsets_now+0x2a8/0x490 [ 16.109774][ C0] ? rcu_is_watching+0x16/0xd0 [ 16.109775][ C0] handle_softirqs+0x1d3/0x900 [ 16.109777][ C0] ? _local_bh_enable+0xc0/0xc0 [ 16.109779][ C0] ? do_raw_spin_unlock+0x59/0x250 [ 16.109780][ C0] ? rcu_is_watching+0x16/0xd0 [ 16.109782][ C0] ? __dev_queue_xmit+0x974/0x1b90 [ 16.109783][ C0] do_softirq+0xac/0xe0 [ 16.109785][ C0] [ 16.109785][ C0] [ 16.109786][ C0] __local_bh_enable_ip+0x118/0x150 [ 16.109787][ C0] __dev_queue_xmit+0x989/0x1b90 [ 16.109789][ C0] ? _copy_from_iter+0x1bb/0x1810 [ 16.109791][ C0] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 16.109793][ C0] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 16.109794][ C0] ? __might_fault+0x97/0x140 [ 16.109795][ C0] ? netdev_core_pick_tx+0x2c0/0x2c0 [ 16.109797][ C0] ? __virtio_net_hdr_to_skb.constprop.0+0x327/0x1440 [ 16.109799][ C0] ? alloc_pg_vec.isra.0+0x540/0x540 [ 16.109800][ C0] ? packet_rcv_spkt+0x5a0/0x5a0 [ 16.109802][ C0] packet_snd+0xee8/0x1840 [ 16.109804][ C0] ? kasan_addr_to_slab+0x41/0x50 [ 16.109806][ C0] ? tpacket_snd+0x1990/0x1990 [ 16.109807][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 16.109809][ C0] ? __might_fault+0x97/0x140 [ 16.109810][ C0] ? find_held_lock+0x2b/0x80 [ 16.109812][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 16.109814][ C0] __sock_sendmsg+0xce/0x190 [ 16.109815][ C0] ? fdget+0x4f/0x1e0 [ 16.109817][ C0] __sys_sendto+0x260/0x320 [ 16.109819][ C0] ? __ia32_sys_getpeername+0xd0/0xd0 [ 16.109822][ C0] ? fput_close_sync+0xde/0x1b0 [ 16.109824][ C0] ? alloc_file_clone+0xe0/0xe0 [ 16.109826][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 16.109828][ C0] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 16.109829][ C0] ? lockdep_hardirqs_on+0x91/0x130 [ 16.109831][ C0] ? do_syscall_64+0xa6/0x530 [ 16.109832][ C0] do_syscall_64+0xff/0x530 [ 16.109834][ C0] ? exc_page_fault+0xee/0x100 [ 16.109835][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 16.109837][ C0] RIP: 0033:0x7f9d7566d54e [ 16.109838][ C0] Code: 4d 89 d8 e8 b4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 16.109839][ C0] RSP: 002b:00007ffc8b971aa0 EFLAGS: 00000202 ORIG_RAX: 000000000000002c [ 16.109840][ C0] RAX: ffffffffffffffda RBX: 0000000000010018 RCX: 00007f9d7566d54e [ 16.109841][ C0] RDX: 0000000000010018 RSI: 0000000000415120 RDI: 0000000000000007 [ 16.109842][ C0] RBP: 00007ffc8b971ab0 R08: 00007ffc8b971b10 R09: 0000000000000014 [ 16.109843][ C0] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000007 [ 16.109843][ C0] R13: 0000000000000006 R14: 00007f9d7583e000 R15: 0000000000404e00 [ 16.109845][ C0]