syzbot


WARNING in sock_hash_delete_elem (2)

Status: upstream: reported on 2025/09/03 16:20
Subsystems: net bpf
[Documentation on labels]
Reported-by: syzbot+ca62aaf39105978cd946@syzkaller.appspotmail.com
First crash: 3d23h, last: 3d23h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [net?] [bpf?] WARNING in sock_hash_delete_elem (2) 0 (1) 2025/09/03 16:20
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in sock_hash_delete_elem -1 C done 987 512d 539d 3/3 fixed on 2024/05/17 10:33
linux-6.1 WARNING in sock_hash_delete_elem origin:lts-only -1 C done 1206 512d 539d 0/3 upstream: reported C repro on 2024/03/14 21:10
upstream WARNING in sock_hash_delete_elem net bpf -1 C done 16982 496d 535d 25/29 fixed on 2024/05/22 23:36

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(this_cpu_read(softirq_ctrl.cnt))
WARNING: CPU: 1 PID: 9889 at kernel/softirq.c:172 __local_bh_disable_ip+0x342/0x400 kernel/softirq.c:172
Modules linked in:
CPU: 1 UID: 0 PID: 9889 Comm: syz.3.1233 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:__local_bh_disable_ip+0x342/0x400 kernel/softirq.c:172
Code: 0f b6 04 28 84 c0 0f 85 b5 00 00 00 83 3d 59 8e 98 0d 00 75 19 90 48 c7 c7 00 b2 09 8b 48 c7 c6 40 b2 09 8b e8 df 61 fe ff 90 <0f> 0b 90 90 90 e9 fc fd ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f
RSP: 0018:ffffc9000439f980 EFLAGS: 00010246
RAX: 313d6c056ac6e300 RBX: 1ffff92000873f34 RCX: 0000000000080000
RDX: ffffc9000e563000 RSI: 000000000000025d RDI: 000000000000025e
RBP: ffffc9000439fa80 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffed1017124863 R12: 1ffff110049edc89
R13: dffffc0000000000 R14: ffffffff8184ca61 R15: ffff888024f6e44c
FS:  00007f22097a66c0(0000) GS:ffff8881269c2000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000504d4000 CR4: 00000000003526f0
DR0: 0000000000000006 DR1: 0000000000000003 DR2: 0000000000000401
DR3: 0000000000000404 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 local_bh_disable include/linux/bottom_half.h:20 [inline]
 spin_lock_bh include/linux/spinlock_rt.h:87 [inline]
 sock_hash_delete_elem+0xc6/0x320 net/core/sock_map.c:952
 bpf_prog_0fcbc4c83748eeda+0x46/0x4e
 bpf_dispatcher_nop_func include/linux/bpf.h:1332 [inline]
 __bpf_prog_run include/linux/filter.h:718 [inline]
 bpf_prog_run include/linux/filter.h:725 [inline]
 bpf_prog_run_pin_on_cpu include/linux/filter.h:742 [inline]
 bpf_flow_dissect+0x132/0x400 net/core/flow_dissector.c:1024
 bpf_prog_test_run_flow_dissector+0x37c/0x5c0 net/bpf/test_run.c:1416
 bpf_prog_test_run+0x2ca/0x340 kernel/bpf/syscall.c:4590
 __sys_bpf+0x581/0x870 kernel/bpf/syscall.c:6047
 __do_sys_bpf kernel/bpf/syscall.c:6139 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:6137 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6137
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f220b53ebe9
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:00007f22097a6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f220b775fa0 RCX: 00007f220b53ebe9
RDX: 0000000000000050 RSI: 0000200000000180 RDI: 000000000000000a
RBP: 00007f220b5c1e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f220b776038 R14: 00007f220b775fa0 R15: 00007fff2055aba8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/01 01:57 upstream 5c3b3264e585 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in sock_hash_delete_elem
* Struck through repros no longer work on HEAD.