[ 10.798802][ T203] ip (203) used greatest stack depth: 23768 bytes left [ 10.798823][ T203] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.798825][ T203] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 203, name: ip [ 10.798827][ T203] preempt_count: 2, expected: 0 [ 10.798828][ T203] RCU nest depth: 0, expected: 0 [ 10.798829][ T203] locks held by ip/203: 5, last CPU#1: [ 10.798831][ T203] #0: ffffffffa32167b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.798844][ T203] #1: ffffffffa337ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.798849][ T203] #2: ffffffffa337de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.798854][ T203] #3: ffffffffa329d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.798857][ T203] #4: ffffffffa329d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.798861][ T203] irq event stamp: 20604 [ 10.798862][ T203] hardirqs last enabled at (20603): [] __down_trylock_console_sem+0x86/0xa0 [ 10.798866][ T203] hardirqs last disabled at (20604): [] console_emit_next_record+0x3d4/0x4c0 [ 10.798868][ T203] softirqs last enabled at (20548): [] handle_softirqs+0x67c/0x900 [ 10.798870][ T203] softirqs last disabled at (20543): [] __irq_exit_rcu+0x145/0x1c0 [ 10.798873][ T203] Preemption disabled at: [ 10.798873][ T203] [<0000000000000000>] 0x0 [ 10.798881][ T203] CPU: 1 UID: 0 PID: 203 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.798884][ T203] Tainted: [W]=WARN [ 10.798885][ T203] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.798887][ T203] Call Trace: [ 10.798889][ T203] [ 10.798890][ T203] dump_stack_lvl+0x6f/0xa0 [ 10.798897][ T203] __might_resched.cold+0x1fe/0x2c1 [ 10.798902][ T203] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.798906][ T203] ? __kmalloc_noprof+0xdb/0x760 [ 10.798911][ T203] __kmalloc_noprof+0x443/0x760 [ 10.798913][ T203] ? alloc_buf.isra.0+0x4b/0x260 [ 10.798919][ T203] ? do_raw_spin_unlock+0x59/0x250 [ 10.798922][ T203] alloc_buf.isra.0+0x4b/0x260 [ 10.798927][ T203] put_chars+0x1e1/0x2f0 [ 10.798929][ T203] ? __send_to_port+0x420/0x420 [ 10.798930][ T203] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.798934][ T203] ? validate_chain+0x38b/0xc20 [ 10.798940][ T203] hvc_console_print+0x292/0x780 [ 10.798948][ T203] ? hvc_write+0x3a0/0x3a0 [ 10.798950][ T203] ? rcu_is_watching+0x16/0xd0 [ 10.798952][ T203] ? lock_acquire+0x13c/0x160 [ 10.798957][ T203] console_emit_next_record+0x22f/0x4c0 [ 10.798961][ T203] ? devkmsg_read+0x4b0/0x4b0 [ 10.798963][ T203] ? console_flush_one_record+0x106/0x710 [ 10.798966][ T203] ? rcu_is_watching+0x16/0xd0 [ 10.798968][ T203] ? lock_acquire+0x13c/0x160 [ 10.798972][ T203] console_flush_one_record+0x46f/0x710 [ 10.798976][ T203] ? console_emit_next_record+0x4c0/0x4c0 [ 10.798978][ T203] ? __lock_acquire+0x518/0xc20 [ 10.798984][ T203] console_unlock+0xee/0x1f0 [ 10.798987][ T203] ? console_flush_one_record+0x710/0x710 [ 10.798989][ T203] ? rcu_is_watching+0x16/0xd0 [ 10.798990][ T203] ? lock_acquire+0xe0/0x160 [ 10.798994][ T203] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.798996][ T203] ? vprintk_emit+0x320/0x3e0 [ 10.798999][ T203] vprintk_emit+0x37c/0x3e0 [ 10.799002][ T203] ? wake_up_klogd_work_func+0x90/0x90 [ 10.799005][ T203] ? __lock_acquire+0x518/0xc20 [ 10.799009][ T203] _printk+0xc7/0x100 [ 10.799013][ T203] ? snapshot_read.cold+0x21/0x21 [ 10.799016][ T203] ? do_raw_spin_lock+0x131/0x280 [ 10.799019][ T203] ? __rwlock_init+0x150/0x150 [ 10.799023][ T203] ? do_raw_spin_lock+0x131/0x280 [ 10.799026][ T203] do_exit.cold+0x82/0x9c [ 10.799030][ T203] ? exit_notify+0x890/0x890 [ 10.799031][ T203] ? __lock_release.isra.0+0x69/0x1a0 [ 10.799034][ T203] ? rcu_is_watching+0x16/0xd0 [ 10.799038][ T203] do_group_exit+0xb8/0x370 [ 10.799041][ T203] __x64_sys_exit_group+0x3c/0x50 [ 10.799043][ T203] x64_sys_call+0x1567/0x1570 [ 10.799045][ T203] do_syscall_64+0xff/0x530 [ 10.799049][ T203] ? exc_page_fault+0xee/0x100 [ 10.799052][ T203] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.799055][ T203] RIP: 0033:0x7f7d305381b8 [ 10.799057][ T203] Code: Unable to access opcode bytes at 0x7f7d3053818e. [ 10.799058][ T203] RSP: 002b:00007ffff48065b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.799061][ T203] RAX: ffffffffffffffda RBX: 00007f7d30668f88 RCX: 00007f7d305381b8 [ 10.799062][ T203] RDX: 00007f7d30282fc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 10.799063][ T203] RBP: 00007ffff4806610 R08: 0000000000000000 R09: 0000000000000050 [ 10.799064][ T203] R10: 00007ffff48063d0 R11: 0000000000000246 R12: 0000000000000001 [ 10.799064][ T203] R13: 0000000000000000 R14: 00007f7d30667680 R15: 00007f7d30668fa0 [ 10.799072][ T203] [ 17.265000][ C0] IPv4: Oversized IP packet from 172.17.0.2 [ 17.265038][ C0] [ 17.265040][ C0] ======================================================== [ 17.265041][ C0] WARNING: possible irq lock inversion dependency detected [ 17.265043][ C0] 7.2.0-virtme #1 Tainted: G W [ 17.265044][ C0] -------------------------------------------------------- [ 17.265045][ C0] psock_snd/377 just changed the state of lock: [ 17.265046][ C0] ffffffffa329d760 (console_owner){..-.}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 17.265058][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 17.265059][ C0] (fs_reclaim){+.+.}-{0:0} [ 17.265061][ C0] [ 17.265061][ C0] [ 17.265061][ C0] and interrupts could create inverse lock ordering between them. [ 17.265061][ C0] [ 17.265062][ C0] [ 17.265062][ C0] other info that might help us debug this: [ 17.265062][ C0] Possible interrupt unsafe locking scenario: [ 17.265062][ C0] [ 17.265063][ C0] CPU0 CPU1 [ 17.265063][ C0] ---- ---- [ 17.265064][ C0] lock(fs_reclaim); [ 17.265065][ C0] local_irq_disable(); [ 17.265065][ C0] lock(console_owner); [ 17.265066][ C0] lock(fs_reclaim); [ 17.265067][ C0] [ 17.265067][ C0] lock(console_owner); [ 17.265068][ C0] [ 17.265068][ C0] *** DEADLOCK *** [ 17.265068][ C0] [ 17.265068][ C0] locks held by psock_snd/377: 5, last CPU#0: [ 17.265070][ C0] #0: ffffffffa3394c00 (rcu_read_lock){....}-{1:3}, at: process_backlog+0x3f1/0x14c0 [ 17.265076][ C0] #1: ffffffffa3394c00 (rcu_read_lock){....}-{1:3}, at: ip_defrag+0xcd/0x7a0 [ 17.265080][ C0] #2: ff110000103ca3e8 (&q->lock){+.-.}-{3:3}, at: ip_defrag+0x2c4/0x7a0 [ 17.265083][ C0] #3: ffffffffa337ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 17.265086][ C0] #4: ffffffffa337de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 17.265089][ C0] [ 17.265089][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 17.265093][ C0] -> (fs_reclaim){+.+.}-{0:0} { [ 17.265095][ C0] HARDIRQ-ON-W at: [ 17.265097][ C0] __lock_acquire+0x388/0xc20 [ 17.265100][ C0] lock_acquire.part.0+0xd4/0x280 [ 17.265102][ C0] fs_reclaim_acquire+0xd5/0x120 [ 17.265105][ C0] __kmalloc_cache_noprof+0x6e/0x620 [ 17.265107][ C0] kthread_create_worker_on_node+0xea/0x210 [ 17.265110][ C0] workqueue_init+0x2a/0x680 [ 17.265115][ C0] kernel_init_freeable+0x2fe/0x630 [ 17.265118][ C0] kernel_init+0x21/0x150 [ 17.265121][ C0] ret_from_fork+0x474/0x6b0 [ 17.265125][ C0] ret_from_fork_asm+0x11/0x20 [ 17.265127][ C0] SOFTIRQ-ON-W at: [ 17.265128][ C0] __lock_acquire+0x388/0xc20 [ 17.265130][ C0] lock_acquire.part.0+0xd4/0x280 [ 17.265131][ C0] fs_reclaim_acquire+0xd5/0x120 [ 17.265132][ C0] __kmalloc_cache_noprof+0x6e/0x620 [ 17.265133][ C0] kthread_create_worker_on_node+0xea/0x210 [ 17.265135][ C0] workqueue_init+0x2a/0x680 [ 17.265136][ C0] kernel_init_freeable+0x2fe/0x630 [ 17.265138][ C0] kernel_init+0x21/0x150 [ 17.265139][ C0] ret_from_fork+0x474/0x6b0 [ 17.265140][ C0] ret_from_fork_asm+0x11/0x20 [ 17.265142][ C0] INITIAL USE at: [ 17.265143][ C0] __lock_acquire+0x388/0xc20 [ 17.265144][ C0] lock_acquire.part.0+0xd4/0x280 [ 17.265145][ C0] fs_reclaim_acquire+0xd5/0x120 [ 17.265147][ C0] __kmalloc_cache_noprof+0x6e/0x620 [ 17.265148][ C0] kthread_create_worker_on_node+0xea/0x210 [ 17.265149][ C0] workqueue_init+0x2a/0x680 [ 17.265151][ C0] kernel_init_freeable+0x2fe/0x630 [ 17.265152][ C0] kernel_init+0x21/0x150 [ 17.265154][ C0] ret_from_fork+0x474/0x6b0 [ 17.265155][ C0] ret_from_fork_asm+0x11/0x20 [ 17.265156][ C0] } [ 17.265157][ C0] ... key at: [] __fs_reclaim_map+0x0/0xbe0 [ 17.265161][ C0] ... acquired at: [ 17.265162][ C0] __lock_acquire+0x518/0xc20 [ 17.265163][ C0] lock_acquire.part.0+0xd4/0x280 [ 17.265164][ C0] fs_reclaim_acquire+0xd5/0x120 [ 17.265166][ C0] __kmalloc_noprof+0xd3/0x760 [ 17.265167][ C0] alloc_buf.isra.0+0x4b/0x260 [ 17.265171][ C0] put_chars+0x1e1/0x2f0 [ 17.265172][ C0] hvc_console_print+0x292/0x780 [ 17.265175][ C0] console_emit_next_record+0x22f/0x4c0 [ 17.265177][ C0] console_flush_one_record+0x46f/0x710 [ 17.265178][ C0] console_unlock+0xee/0x1f0 [ 17.265180][ C0] vprintk_emit+0x37c/0x3e0 [ 17.265181][ C0] _printk+0xc7/0x100 [ 17.265184][ C0] tun_init+0x24/0xb0 [ 17.265187][ C0] do_one_initcall+0x124/0x4f0 [ 17.265188][ C0] kernel_init_freeable+0x596/0x630 [ 17.265190][ C0] kernel_init+0x21/0x150 [ 17.265191][ C0] ret_from_fork+0x474/0x6b0 [ 17.265192][ C0] ret_from_fork_asm+0x11/0x20 [ 17.265194][ C0] [ 17.265194][ C0] -> (console_owner){..-.}-{0:0} { [ 17.265196][ C0] IN-SOFTIRQ-W at: [ 17.265196][ C0] __lock_acquire+0x388/0xc20 [ 17.265198][ C0] lock_acquire.part.0+0xd4/0x280 [ 17.265199][ C0] console_lock_spinning_enable+0x5c/0x60 [ 17.265201][ C0] console_emit_next_record+0x1d1/0x4c0 [ 17.265203][ C0] console_flush_one_record+0x46f/0x710 [ 17.265204][ C0] console_unlock+0xee/0x1f0 [ 17.265206][ C0] vprintk_emit+0x37c/0x3e0 [ 17.265207][ C0] _printk+0xc7/0x100 [ 17.265208][ C0] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 17.265211][ C0] ip_frag_queue+0xeb5/0x1830 [ 17.265212][ C0] ip_defrag+0x2d4/0x7a0 [ 17.265213][ C0] ip_local_deliver+0x171/0x4c0 [ 17.265214][ C0] ip_rcv+0xdc/0x3d0 [ 17.265215][ C0] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 17.265216][ C0] __netif_receive_skb_one_core+0xa2/0x180 [ 17.265218][ C0] process_backlog+0x431/0x14c0 [ 17.265220][ C0] __napi_poll+0xa7/0x3b0 [ 17.265221][ C0] net_rx_action+0x513/0xf50 [ 17.265223][ C0] handle_softirqs+0x1d3/0x900 [ 17.265225][ C0] do_softirq+0xac/0xe0 [ 17.265226][ C0] __local_bh_enable_ip+0x118/0x150 [ 17.265228][ C0] __dev_queue_xmit+0x989/0x1b90 [ 17.265229][ C0] packet_snd+0xee8/0x1840 [ 17.265232][ C0] __sock_sendmsg+0xce/0x190 [ 17.265234][ C0] __sys_sendto+0x260/0x320 [ 17.265236][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 17.265238][ C0] do_syscall_64+0xff/0x530 [ 17.265240][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.265242][ C0] INITIAL USE at: [ 17.265243][ C0] } [ 17.265243][ C0] ... key at: [] console_owner_dep_map+0x0/0x60 [ 17.265246][ C0] ... acquired at: [ 17.265246][ C0] mark_lock+0x1d7/0xa00 [ 17.265248][ C0] mark_usage+0x42/0x170 [ 17.265249][ C0] __lock_acquire+0x388/0xc20 [ 17.265251][ C0] lock_acquire.part.0+0xd4/0x280 [ 17.265252][ C0] console_lock_spinning_enable+0x5c/0x60 [ 17.265254][ C0] console_emit_next_record+0x1d1/0x4c0 [ 17.265255][ C0] console_flush_one_record+0x46f/0x710 [ 17.265257][ C0] console_unlock+0xee/0x1f0 [ 17.265258][ C0] vprintk_emit+0x37c/0x3e0 [ 17.265259][ C0] _printk+0xc7/0x100 [ 17.265260][ C0] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 17.265261][ C0] ip_frag_queue+0xeb5/0x1830 [ 17.265262][ C0] ip_defrag+0x2d4/0x7a0 [ 17.265263][ C0] ip_local_deliver+0x171/0x4c0 [ 17.265264][ C0] ip_rcv+0xdc/0x3d0 [ 17.265265][ C0] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 17.265267][ C0] __netif_receive_skb_one_core+0xa2/0x180 [ 17.265268][ C0] process_backlog+0x431/0x14c0 [ 17.265270][ C0] __napi_poll+0xa7/0x3b0 [ 17.265271][ C0] net_rx_action+0x513/0xf50 [ 17.265273][ C0] handle_softirqs+0x1d3/0x900 [ 17.265274][ C0] do_softirq+0xac/0xe0 [ 17.265275][ C0] __local_bh_enable_ip+0x118/0x150 [ 17.265277][ C0] __dev_queue_xmit+0x989/0x1b90 [ 17.265278][ C0] packet_snd+0xee8/0x1840 [ 17.265279][ C0] __sock_sendmsg+0xce/0x190 [ 17.265280][ C0] __sys_sendto+0x260/0x320 [ 17.265282][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 17.265283][ C0] do_syscall_64+0xff/0x530 [ 17.265285][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.265286][ C0] [ 17.265286][ C0] [ 17.265286][ C0] stack backtrace: [ 17.265289][ C0] CPU: 0 UID: 0 PID: 377 Comm: psock_snd Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.265292][ C0] Tainted: [W]=WARN [ 17.265293][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.265295][ C0] Call Trace: [ 17.265296][ C0] [ 17.265297][ C0] dump_stack_lvl+0x6f/0xa0 [ 17.265302][ C0] print_irq_inversion_bug.part.0.cold+0xe6/0x143 [ 17.265305][ C0] mark_lock_irq+0x989/0x9c0 [ 17.265307][ C0] mark_lock+0x1d7/0xa00 [ 17.265309][ C0] mark_usage+0x42/0x170 [ 17.265311][ C0] __lock_acquire+0x388/0xc20 [ 17.265319][ C0] lock_acquire.part.0+0xd4/0x280 [ 17.265321][ C0] ? console_lock_spinning_enable+0x40/0x60 [ 17.265323][ C0] ? rcu_is_watching+0x16/0xd0 [ 17.265326][ C0] ? lock_acquire+0x13c/0x160 [ 17.265328][ C0] console_lock_spinning_enable+0x5c/0x60 [ 17.265329][ C0] ? console_lock_spinning_enable+0x40/0x60 [ 17.265331][ C0] console_emit_next_record+0x1d1/0x4c0 [ 17.265333][ C0] ? devkmsg_read+0x4b0/0x4b0 [ 17.265335][ C0] ? console_flush_one_record+0x106/0x710 [ 17.265337][ C0] ? rcu_is_watching+0x16/0xd0 [ 17.265338][ C0] ? lock_acquire+0x13c/0x160 [ 17.265340][ C0] console_flush_one_record+0x46f/0x710 [ 17.265342][ C0] ? console_emit_next_record+0x4c0/0x4c0 [ 17.265344][ C0] ? __lock_acquire+0x518/0xc20 [ 17.265346][ C0] console_unlock+0xee/0x1f0 [ 17.265348][ C0] ? console_flush_one_record+0x710/0x710 [ 17.265350][ C0] ? rcu_is_watching+0x16/0xd0 [ 17.265351][ C0] ? lock_acquire+0xe0/0x160 [ 17.265353][ C0] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.265355][ C0] ? vprintk_emit+0x320/0x3e0 [ 17.265356][ C0] vprintk_emit+0x37c/0x3e0 [ 17.265358][ C0] ? wake_up_klogd_work_func+0x90/0x90 [ 17.265359][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 17.265361][ C0] _printk+0xc7/0x100 [ 17.265363][ C0] ? snapshot_read.cold+0x21/0x21 [ 17.265365][ C0] ? ___ratelimit+0x4e7/0xa00 [ 17.265368][ C0] ? idr_get_free+0x830/0x830 [ 17.265370][ C0] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 17.265372][ C0] ip_frag_queue+0xeb5/0x1830 [ 17.265374][ C0] ip_defrag+0x2d4/0x7a0 [ 17.265376][ C0] ? ip4_obj_hashfn+0x280/0x280 [ 17.265377][ C0] ? ip_route_input_noref+0x137/0x250 [ 17.265380][ C0] ? ip_route_input_slow+0x2420/0x2420 [ 17.265381][ C0] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 17.265384][ C0] ? rcu_is_watching+0x16/0xd0 [ 17.265385][ C0] ip_local_deliver+0x171/0x4c0 [ 17.265387][ C0] ? ip_local_deliver_finish+0x610/0x610 [ 17.265388][ C0] ? ip_rcv_finish_core+0x6ed/0x14c0 [ 17.265389][ C0] ? __asan_memset+0x27/0x50 [ 17.265393][ C0] ip_rcv+0xdc/0x3d0 [ 17.265394][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.265397][ C0] ? ip_local_deliver+0x4c0/0x4c0 [ 17.265398][ C0] ? _raw_write_unlock_irqrestore+0x80/0x80 [ 17.265400][ C0] ? __lock_acquire+0x518/0xc20 [ 17.265402][ C0] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 17.265404][ C0] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 17.265406][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.265407][ C0] ? validate_chain+0x38b/0xc20 [ 17.265409][ C0] ? mark_usage+0x61/0x170 [ 17.265410][ C0] ? __lock_acquire+0x518/0xc20 [ 17.265412][ C0] ? do_xdp_generic+0x4a0/0x4a0 [ 17.265414][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 17.265416][ C0] ? find_held_lock+0x2b/0x80 [ 17.265418][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 17.265419][ C0] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 17.265421][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.265422][ C0] ? validate_chain+0x38b/0xc20 [ 17.265423][ C0] ? sock_def_readable+0x156/0x480 [ 17.265425][ C0] ? mark_usage+0x61/0x170 [ 17.265427][ C0] ? __lock_acquire+0x518/0xc20 [ 17.265429][ C0] ? process_backlog+0x3f1/0x14c0 [ 17.265430][ C0] __netif_receive_skb_one_core+0xa2/0x180 [ 17.265432][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 17.265434][ C0] ? process_backlog+0x3f1/0x14c0 [ 17.265435][ C0] ? __netif_receive_skb_list_core+0x9e0/0x9e0 [ 17.265437][ C0] ? rcu_is_watching+0x16/0xd0 [ 17.265439][ C0] process_backlog+0x431/0x14c0 [ 17.265441][ C0] ? timer_recalc_next_expiry+0x71/0x210 [ 17.265444][ C0] __napi_poll+0xa7/0x3b0 [ 17.265446][ C0] net_rx_action+0x513/0xf50 [ 17.265449][ C0] ? __lock_acquire+0x518/0xc20 [ 17.265450][ C0] ? __napi_poll+0x3b0/0x3b0 [ 17.265452][ C0] ? find_held_lock+0x2b/0x80 [ 17.265455][ C0] ? _raw_spin_unlock_irq+0x33/0x50 [ 17.265456][ C0] ? run_timer_softirq+0xf8/0x160 [ 17.265458][ C0] ? __run_timers+0xaa0/0xaa0 [ 17.265460][ C0] handle_softirqs+0x1d3/0x900 [ 17.265462][ C0] ? _local_bh_enable+0xc0/0xc0 [ 17.265464][ C0] ? do_raw_spin_unlock+0x59/0x250 [ 17.265466][ C0] ? rcu_is_watching+0x16/0xd0 [ 17.265467][ C0] ? __dev_queue_xmit+0x974/0x1b90 [ 17.265469][ C0] do_softirq+0xac/0xe0 [ 17.265470][ C0] [ 17.265471][ C0] [ 17.265471][ C0] __local_bh_enable_ip+0x118/0x150 [ 17.265473][ C0] __dev_queue_xmit+0x989/0x1b90 [ 17.265475][ C0] ? _copy_from_iter+0x1bb/0x1810 [ 17.265478][ C0] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 17.265480][ C0] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 17.265481][ C0] ? __might_fault+0x97/0x140 [ 17.265484][ C0] ? rcu_is_watching+0x16/0xd0 [ 17.265485][ C0] ? netdev_core_pick_tx+0x2c0/0x2c0 [ 17.265487][ C0] ? __virtio_net_hdr_to_skb.constprop.0+0x327/0x1440 [ 17.265489][ C0] ? alloc_pg_vec.isra.0+0x540/0x540 [ 17.265490][ C0] ? packet_rcv_spkt+0x5a0/0x5a0 [ 17.265492][ C0] packet_snd+0xee8/0x1840 [ 17.265494][ C0] ? kasan_addr_to_slab+0x41/0x50 [ 17.265497][ C0] ? tpacket_snd+0x1990/0x1990 [ 17.265498][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 17.265500][ C0] ? __might_fault+0x97/0x140 [ 17.265501][ C0] ? find_held_lock+0x2b/0x80 [ 17.265502][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 17.265504][ C0] __sock_sendmsg+0xce/0x190 [ 17.265506][ C0] ? fdget+0x4f/0x1e0 [ 17.265509][ C0] __sys_sendto+0x260/0x320 [ 17.265510][ C0] ? __ia32_sys_getpeername+0xd0/0xd0 [ 17.265514][ C0] ? fput_close_sync+0xde/0x1b0 [ 17.265517][ C0] ? alloc_file_clone+0xe0/0xe0 [ 17.265519][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 17.265520][ C0] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 17.265524][ C0] ? lockdep_hardirqs_on+0x91/0x130 [ 17.265525][ C0] ? do_syscall_64+0xa6/0x530 [ 17.265527][ C0] do_syscall_64+0xff/0x530 [ 17.265528][ C0] ? exc_page_fault+0xee/0x100 [ 17.265530][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.265531][ C0] RIP: 0033:0x7fcb1cb3e54e [ 17.265534][ 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 [ 17.265536][ C0] RSP: 002b:00007ffe7b614aa0 EFLAGS: 00000202 ORIG_RAX: 000000000000002c [ 17.265539][ C0] RAX: ffffffffffffffda RBX: 0000000000010018 RCX: 00007fcb1cb3e54e [ 17.265540][ C0] RDX: 0000000000010018 RSI: 0000000000415120 RDI: 0000000000000007 [ 17.265541][ C0] RBP: 00007ffe7b614ab0 R08: 00007ffe7b614b10 R09: 0000000000000014 [ 17.265542][ C0] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000007 [ 17.265543][ C0] R13: 0000000000000006 R14: 00007fcb1cd0f000 R15: 0000000000404e00 [ 17.265545][ C0] [ 17.265548][ C0] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 17.265550][ C0] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 377, name: psock_snd [ 17.265551][ C0] preempt_count: 103, expected: 0 [ 17.265552][ C0] RCU nest depth: 2, expected: 0 [ 17.265553][ C0] INFO: lockdep is turned off. [ 17.265553][ C0] irq event stamp: 27397 [ 17.265554][ C0] hardirqs last enabled at (27396): [] __down_trylock_console_sem+0x86/0xa0 [ 17.265556][ C0] hardirqs last disabled at (27397): [] console_emit_next_record+0x3d4/0x4c0 [ 17.265558][ C0] softirqs last enabled at (27030): [] __dev_queue_xmit+0x974/0x1b90 [ 17.265560][ C0] softirqs last disabled at (27031): [] do_softirq+0xac/0xe0 [ 17.265562][ C0] Preemption disabled at: [ 17.265562][ C0] [] __dev_queue_xmit+0x20c/0x1b90 [ 17.265565][ C0] CPU: 0 UID: 0 PID: 377 Comm: psock_snd Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.265567][ C0] Tainted: [W]=WARN [ 17.265567][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.265568][ C0] Call Trace: [ 17.265568][ C0] [ 17.265569][ C0] dump_stack_lvl+0x6f/0xa0 [ 17.265571][ C0] ? __dev_queue_xmit+0x20c/0x1b90 [ 17.265573][ C0] __might_resched.cold+0x1fe/0x2c1 [ 17.265576][ C0] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.265579][ C0] ? rcu_is_watching+0x16/0xd0 [ 17.265580][ C0] __kmalloc_noprof+0x443/0x760 [ 17.265582][ C0] ? __rwlock_init+0x150/0x150 [ 17.265583][ C0] ? alloc_buf.isra.0+0x4b/0x260 [ 17.265586][ C0] ? do_raw_spin_unlock+0x59/0x250 [ 17.265587][ C0] alloc_buf.isra.0+0x4b/0x260 [ 17.265590][ C0] put_chars+0x1e1/0x2f0 [ 17.265591][ C0] ? __send_to_port+0x420/0x420 [ 17.265593][ C0] hvc_console_print+0x292/0x780 [ 17.265596][ C0] ? __lock_acquire+0x388/0xc20 [ 17.265598][ C0] ? hvc_write+0x3a0/0x3a0 [ 17.265600][ C0] ? rcu_is_watching+0x16/0xd0 [ 17.265601][ C0] ? lock_acquire+0x13c/0x160 [ 17.265603][ C0] console_emit_next_record+0x22f/0x4c0 [ 17.265605][ C0] ? devkmsg_read+0x4b0/0x4b0 [ 17.265607][ C0] ? console_flush_one_record+0x106/0x710 [ 17.265609][ C0] ? rcu_is_watching+0x16/0xd0 [ 17.265610][ C0] ? lock_acquire+0x13c/0x160 [ 17.265612][ C0] console_flush_one_record+0x46f/0x710 [ 17.265614][ C0] ? console_emit_next_record+0x4c0/0x4c0 [ 17.265616][ C0] ? __lock_acquire+0x518/0xc20 [ 17.265618][ C0] console_unlock+0xee/0x1f0 [ 17.265620][ C0] ? console_flush_one_record+0x710/0x710 [ 17.265622][ C0] ? rcu_is_watching+0x16/0xd0 [ 17.265623][ C0] ? lock_acquire+0xe0/0x160 [ 17.265625][ C0] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.265626][ C0] ? vprintk_emit+0x320/0x3e0 [ 17.265628][ C0] vprintk_emit+0x37c/0x3e0 [ 17.265629][ C0] ? wake_up_klogd_work_func+0x90/0x90 [ 17.265630][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 17.265632][ C0] _printk+0xc7/0x100 [ 17.265634][ C0] ? snapshot_read.cold+0x21/0x21 [ 17.265636][ C0] ? ___ratelimit+0x4e7/0xa00 [ 17.265638][ C0] ? idr_get_free+0x830/0x830 [ 17.265640][ C0] ip_frag_reasm.constprop.0.cold+0x10/0x15 [ 17.265642][ C0] ip_frag_queue+0xeb5/0x1830 [ 17.265644][ C0] ip_defrag+0x2d4/0x7a0 [ 17.265645][ C0] ? ip4_obj_hashfn+0x280/0x280 [ 17.265646][ C0] ? ip_route_input_noref+0x137/0x250 [ 17.265648][ C0] ? ip_route_input_slow+0x2420/0x2420 [ 17.265650][ C0] ? _raw_spin_unlock_irqrestore+0x40/0x80 [ 17.265651][ C0] ? rcu_is_watching+0x16/0xd0 [ 17.265653][ C0] ip_local_deliver+0x171/0x4c0 [ 17.265654][ C0] ? ip_local_deliver_finish+0x610/0x610 [ 17.265656][ C0] ? ip_rcv_finish_core+0x6ed/0x14c0 [ 17.265657][ C0] ? __asan_memset+0x27/0x50 [ 17.265659][ C0] ip_rcv+0xdc/0x3d0 [ 17.265660][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.265662][ C0] ? ip_local_deliver+0x4c0/0x4c0 [ 17.265663][ C0] ? _raw_write_unlock_irqrestore+0x80/0x80 [ 17.265665][ C0] ? __lock_acquire+0x518/0xc20 [ 17.265667][ C0] __netif_receive_skb_core.constprop.0+0x13b5/0x2bb0 [ 17.265669][ C0] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 17.265670][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.265672][ C0] ? validate_chain+0x38b/0xc20 [ 17.265674][ C0] ? mark_usage+0x61/0x170 [ 17.265675][ C0] ? __lock_acquire+0x518/0xc20 [ 17.265677][ C0] ? do_xdp_generic+0x4a0/0x4a0 [ 17.265679][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 17.265680][ C0] ? find_held_lock+0x2b/0x80 [ 17.265682][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 17.265684][ C0] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 17.265685][ C0] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.265687][ C0] ? validate_chain+0x38b/0xc20 [ 17.265688][ C0] ? sock_def_readable+0x156/0x480 [ 17.265690][ C0] ? mark_usage+0x61/0x170 [ 17.265691][ C0] ? __lock_acquire+0x518/0xc20 [ 17.265693][ C0] ? process_backlog+0x3f1/0x14c0 [ 17.265695][ C0] __netif_receive_skb_one_core+0xa2/0x180 [ 17.265696][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 17.265698][ C0] ? process_backlog+0x3f1/0x14c0 [ 17.265700][ C0] ? __netif_receive_skb_list_core+0x9e0/0x9e0 [ 17.265701][ C0] ? rcu_is_watching+0x16/0xd0 [ 17.265703][ C0] process_backlog+0x431/0x14c0 [ 17.265705][ C0] ? timer_recalc_next_expiry+0x71/0x210 [ 17.265707][ C0] __napi_poll+0xa7/0x3b0 [ 17.265710][ C0] net_rx_action+0x513/0xf50 [ 17.265712][ C0] ? __lock_acquire+0x518/0xc20 [ 17.265714][ C0] ? __napi_poll+0x3b0/0x3b0 [ 17.265716][ C0] ? find_held_lock+0x2b/0x80 [ 17.265718][ C0] ? _raw_spin_unlock_irq+0x33/0x50 [ 17.265719][ C0] ? run_timer_softirq+0xf8/0x160 [ 17.265721][ C0] ? __run_timers+0xaa0/0xaa0 [ 17.265723][ C0] handle_softirqs+0x1d3/0x900 [ 17.265725][ C0] ? _local_bh_enable+0xc0/0xc0 [ 17.265727][ C0] ? do_raw_spin_unlock+0x59/0x250 [ 17.265729][ C0] ? rcu_is_watching+0x16/0xd0 [ 17.265730][ C0] ? __dev_queue_xmit+0x974/0x1b90 [ 17.265735][ C0] do_softirq+0xac/0xe0 [ 17.265736][ C0] [ 17.265737][ C0] [ 17.265737][ C0] __local_bh_enable_ip+0x118/0x150 [ 17.265739][ C0] __dev_queue_xmit+0x989/0x1b90 [ 17.265741][ C0] ? _copy_from_iter+0x1bb/0x1810 [ 17.265742][ C0] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 17.265744][ C0] ? _copy_from_iter_flushcache+0x1970/0x1970 [ 17.265745][ C0] ? __might_fault+0x97/0x140 [ 17.265746][ C0] ? rcu_is_watching+0x16/0xd0 [ 17.265747][ C0] ? netdev_core_pick_tx+0x2c0/0x2c0 [ 17.265750][ C0] ? __virtio_net_hdr_to_skb.constprop.0+0x327/0x1440 [ 17.265752][ C0] ? alloc_pg_vec.isra.0+0x540/0x540 [ 17.265753][ C0] ? packet_rcv_spkt+0x5a0/0x5a0 [ 17.265755][ C0] packet_snd+0xee8/0x1840 [ 17.265757][ C0] ? kasan_addr_to_slab+0x41/0x50 [ 17.265758][ C0] ? tpacket_snd+0x1990/0x1990 [ 17.265760][ C0] ? lock_acquire.part.0+0xd4/0x280 [ 17.265761][ C0] ? __might_fault+0x97/0x140 [ 17.265762][ C0] ? find_held_lock+0x2b/0x80 [ 17.265764][ C0] ? __lock_release.isra.0+0x69/0x1a0 [ 17.265766][ C0] __sock_sendmsg+0xce/0x190 [ 17.265768][ C0] ? fdget+0x4f/0x1e0 [ 17.265769][ C0] __sys_sendto+0x260/0x320 [ 17.265771][ C0] ? __ia32_sys_getpeername+0xd0/0xd0 [ 17.265775][ C0] ? fput_close_sync+0xde/0x1b0 [ 17.265776][ C0] ? alloc_file_clone+0xe0/0xe0 [ 17.265778][ C0] __x64_sys_sendto+0xe4/0x1f0 [ 17.265780][ C0] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 17.265781][ C0] ? lockdep_hardirqs_on+0x91/0x130 [ 17.265783][ C0] ? do_syscall_64+0xa6/0x530 [ 17.265784][ C0] do_syscall_64+0xff/0x530 [ 17.265786][ C0] ? exc_page_fault+0xee/0x100 [ 17.265787][ C0] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.265789][ C0] RIP: 0033:0x7fcb1cb3e54e [ 17.265790][ 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 [ 17.265791][ C0] RSP: 002b:00007ffe7b614aa0 EFLAGS: 00000202 ORIG_RAX: 000000000000002c [ 17.265792][ C0] RAX: ffffffffffffffda RBX: 0000000000010018 RCX: 00007fcb1cb3e54e [ 17.265793][ C0] RDX: 0000000000010018 RSI: 0000000000415120 RDI: 0000000000000007 [ 17.265793][ C0] RBP: 00007ffe7b614ab0 R08: 00007ffe7b614b10 R09: 0000000000000014 [ 17.265794][ C0] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000007 [ 17.265795][ C0] R13: 0000000000000006 R14: 00007fcb1cd0f000 R15: 0000000000404e00 [ 17.265797][ C0]