worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472 kthread+0x421/0x510 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 watchdog: BUG: soft lockup - CPU#0 stuck for 245s! [kworker/u4:0:8] Modules linked in: CPU: 0 PID: 8 Comm: kworker/u4:0 Not tainted 5.15.151-syzkaller-00059-g5356d2f17edf #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Workqueue: netns cleanup_net RIP: 0010:native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline] RIP: 0010:arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline] RIP: 0010:kvm_wait+0x147/0x180 arch/x86/kernel/kvm.c:918 Code: 4c 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b 74 24 1c 75 34 41 0f b6 45 00 44 38 f0 75 10 66 90 0f 00 2d 2b 02 f3 03 fb f4 24 ff ff ff fb e9 1e ff ff ff 44 89 e9 80 e1 07 38 c1 7c a3 4c RSP: 0018:ffffc90000087460 EFLAGS: 00000246 RAX: 0000000000000001 RBX: 1ffff92000010e90 RCX: 1ffffffff0d1aa9c RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffff8881f7038ad4 RBP: ffffc90000087510 R08: dffffc0000000000 R09: ffffed103ee0715b R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8881f7038ad4 R14: 0000000000000001 R15: 1ffff92000010e94 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbadb8b4a6c CR3: 000000012c13d000 CR4: 00000000003506b0 DR0: 0000000020000300 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: pv_wait arch/x86/include/asm/paravirt.h:597 [inline] pv_wait_node kernel/locking/qspinlock_paravirt.h:325 [inline] __pv_queued_spin_lock_slowpath+0x41b/0xc40 kernel/locking/qspinlock.c:473 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline] queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock include/linux/spinlock.h:187 [inline] __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline] _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178 __sock_map_delete net/core/sock_map.c:416 [inline] sock_map_delete_elem+0x99/0x130 net/core/sock_map.c:448 bpf_prog_8a405b5ced52e191+0x42/0x69c bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline] __bpf_prog_run include/linux/filter.h:625 [inline] bpf_prog_run include/linux/filter.h:632 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline] bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1917 __bpf_trace_kfree+0x6f/0x90 include/trace/events/kmem.h:118 __traceiter_kfree+0x2a/0x40 include/trace/events/kmem.h:118 trace_kfree include/trace/events/kmem.h:118 [inline] kfree+0x1f3/0x220 mm/slub.c:4569 __devinet_sysctl_unregister net/ipv4/devinet.c:2615 [inline] devinet_sysctl_unregister net/ipv4/devinet.c:2642 [inline] inetdev_destroy net/ipv4/devinet.c:325 [inline] inetdev_event+0x77c/0x10a0 net/ipv4/devinet.c:1599 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x8c/0xf0 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2025 [inline] call_netdevice_notifiers_extack net/core/dev.c:2037 [inline] call_netdevice_notifiers net/core/dev.c:2051 [inline] unregister_netdevice_many+0xe0a/0x17c0 net/core/dev.c:11105 ip_tunnel_delete_nets+0x33b/0x380 net/ipv4/ip_tunnel.c:1137 erspan_exit_batch_net+0x22/0x30 net/ipv4/ip_gre.c:1724 ops_exit_list net/core/net_namespace.c:174 [inline] cleanup_net+0x6ce/0xc00 net/core/net_namespace.c:596 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2325 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472 kthread+0x421/0x510 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 12797 Comm: syz.3.3897 Not tainted 5.15.151-syzkaller-00059-g5356d2f17edf #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:27 [inline] RIP: 0010:static_key_false include/linux/jump_label.h:235 [inline] RIP: 0010:native_write_msr arch/x86/include/asm/msr.h:156 [inline] RIP: 0010:wrmsr arch/x86/include/asm/msr.h:263 [inline] RIP: 0010:native_apic_msr_write+0x39/0x50 arch/x86/include/asm/apic.h:207 Code: 74 05 83 ff 30 75 12 5d c3 81 ff d0 00 00 00 74 f6 81 ff e0 00 00 00 74 ee c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 eb d9 89 f6 31 d2 e8 9a de 51 01 5d c3 0f 1f 84 00 00 00 00 RSP: 0018:ffffc900001d0df8 EFLAGS: 00000046 RAX: 0000000000000213 RBX: ffffffff8602f9c8 RCX: 0000000000000838 RDX: 0000000000000000 RSI: 0000000000000213 RDI: 0000000000000838 RBP: ffffc900001d0df8 R08: ffffffff8163ac8b R09: ffffffff8163ab7d R10: 0000000000000002 R11: ffff88810f22a780 R12: 0000000000000020 R13: dffffc0000000000 R14: 0000000000000213 R15: dffffc0000000000 FS: 00007f00cfdb36c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200012c0 CR3: 00000001193cd000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: apic_write arch/x86/include/asm/apic.h:394 [inline] lapic_next_event+0x5f/0x70 arch/x86/kernel/apic/apic.c:468 clockevents_program_event+0x1c1/0x300 kernel/time/clockevents.c:334 tick_program_event+0x9f/0x120 kernel/time/tick-oneshot.c:44 hrtimer_interrupt+0x625/0xaa0 kernel/time/hrtimer.c:1824 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline] __sysvec_apic_timer_interrupt+0xfd/0x3c0 arch/x86/kernel/apic/apic.c:1102 sysvec_apic_timer_interrupt+0x95/0xc0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:434 [inline] RIP: 0010:__pv_queued_spin_lock_slowpath+0x5ba/0xc40 kernel/locking/qspinlock.c:508 Code: 00 00 49 89 dc c6 03 00 48 8b 44 24 10 0f b6 04 10 84 c0 0f 85 48 01 00 00 48 8b 44 24 08 c6 00 01 bb 00 80 ff ff eb 06 f3 90 c3 74 5e 41 0f b6 44 15 00 84 c0 75 36 41 80 3f 00 75 ea 4c 89 RSP: 0018:ffffc90000c36e80 EFLAGS: 00000206 RAX: 0000000000000000 RBX: 00000000ffff9651 RCX: ffffffff815504ef RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff888127fa1d28 RBP: ffffc90000c36f70 R08: dffffc0000000000 R09: ffffed1024ff43a6 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881f7138ad4 R13: 1ffff11024ff43a5 R14: 1ffff1103ee20001 R15: ffff888127fa1d28 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline] queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock include/linux/spinlock.h:187 [inline] __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline] _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178 __sock_map_delete net/core/sock_map.c:416 [inline] sock_map_delete_elem+0x99/0x130 net/core/sock_map.c:448 bpf_prog_8a405b5ced52e191+0x42/0x69c bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline] __bpf_prog_run include/linux/filter.h:625 [inline] bpf_prog_run include/linux/filter.h:632 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline] bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1917 __bpf_trace_kfree+0x6f/0x90 include/trace/events/kmem.h:118 __traceiter_kfree+0x2a/0x40 include/trace/events/kmem.h:118 trace_kfree include/trace/events/kmem.h:118 [inline] kfree+0x1f3/0x220 mm/slub.c:4569 sk_psock_free_link include/linux/skmsg.h:420 [inline] sock_map_del_link net/core/sock_map.c:160 [inline] sock_map_unref+0x352/0x4d0 net/core/sock_map.c:182 __sock_map_delete net/core/sock_map.c:422 [inline] sock_map_delete_elem+0xc1/0x130 net/core/sock_map.c:448 bpf_prog_8a405b5ced52e191+0x42/0x69c bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline] __bpf_prog_run include/linux/filter.h:625 [inline] bpf_prog_run include/linux/filter.h:632 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline] bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1917 __bpf_trace_kfree+0x6f/0x90 include/trace/events/kmem.h:118 __traceiter_kfree+0x2a/0x40 include/trace/events/kmem.h:118 trace_kfree include/trace/events/kmem.h:118 [inline] kfree+0x1f3/0x220 mm/slub.c:4569 ida_alloc_range+0x987/0xa80 lib/idr.c:460 proc_alloc_inum fs/proc/generic.c:206 [inline] proc_register+0x3e/0x520 fs/proc/generic.c:370 proc_create_net_data+0x176/0x1e0 fs/proc/proc_net.c:117 xt_proto_init+0x18f/0x410 net/netfilter/x_tables.c:1832 ip_tables_net_init+0x1a/0x20 net/ipv4/netfilter/ip_tables.c:1891 ops_init+0x1cf/0x4a0 net/core/net_namespace.c:135 setup_net+0x34b/0xb50 net/core/net_namespace.c:329 copy_net_ns+0x35c/0x5b0 net/core/net_namespace.c:473 create_new_namespaces+0x416/0x670 kernel/nsproxy.c:110 copy_namespaces+0x1d1/0x220 kernel/nsproxy.c:178 copy_process+0x1174/0x3290 kernel/fork.c:2267 kernel_clone+0x21e/0x9e0 kernel/fork.c:2662 __do_sys_clone kernel/fork.c:2788 [inline] __se_sys_clone kernel/fork.c:2772 [inline] __x64_sys_clone+0x23f/0x290 kernel/fork.c:2772 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f00d1131f19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f00cfdb2ff8 EFLAGS: 00000206 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007f00d12c1f60 RCX: 00007f00d1131f19 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000e50c1600 RBP: 00007f00d11a0e68 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 000000000000000b R14: 00007f00d12c1f60 R15: 00007ffe77c62798