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: 53d, last: 13d
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly bpf report (Oct 2025) 0 (1) 2025/10/06 17:29
[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 561d 588d 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 561d 588d 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 546d 584d 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: 9540 at kernel/softirq.c:176 __local_bh_disable_ip+0x3d9/0x540 kernel/softirq.c:176
Modules linked in:
CPU: 1 UID: 0 PID: 9540 Comm: syz.2.1396 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:__local_bh_disable_ip+0x3d9/0x540 kernel/softirq.c:176
Code: 0f b6 04 28 84 c0 0f 85 56 01 00 00 83 3d b2 44 73 0d 00 75 19 90 48 c7 c7 c0 b7 e9 8a 48 c7 c6 00 b8 e9 8a e8 f8 5f fe ff 90 <0f> 0b 90 90 90 e9 7b ff ff ff 90 0f 0b 90 e9 71 fe ff ff e8 3f e2
RSP: 0018:ffffc9000435f940 EFLAGS: 00010246
RAX: d3090aeb9c9b4b00 RBX: 1ffff9200086bf30 RCX: 0000000000080000
RDX: ffffc9000d671000 RSI: 0000000000000262 RDI: 0000000000000263
RBP: ffffc9000435fa48 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffed101712487b R12: ffff888024170000
R13: dffffc0000000000 R14: ffff888024170b4c R15: 1ffff1100482e169
FS:  00007f984406e6c0(0000) GS:ffff888126ccb000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe122579b0 CR3: 000000003347e000 CR4: 00000000003526f0
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_ed514e0abfbc338c+0x47/0x4f
 bpf_dispatcher_nop_func include/linux/bpf.h:1350 [inline]
 __bpf_prog_run include/linux/filter.h:721 [inline]
 bpf_prog_run include/linux/filter.h:728 [inline]
 bpf_prog_run_pin_on_cpu include/linux/filter.h:745 [inline]
 bpf_flow_dissect+0x222/0x720 net/core/flow_dissector.c:1024
 bpf_prog_test_run_flow_dissector+0x37c/0x5c0 net/bpf/test_run.c:1425
 bpf_prog_test_run+0x2cd/0x340 kernel/bpf/syscall.c:4673
 __sys_bpf+0x562/0x860 kernel/bpf/syscall.c:6152
 __do_sys_bpf kernel/bpf/syscall.c:6244 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:6242 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6242
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9845e0eec9
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:00007f984406e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f9846065fa0 RCX: 00007f9845e0eec9
RDX: 0000000000000050 RSI: 0000200000000180 RDI: 000000000000000a
RBP: 00007f9845e91f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9846066038 R14: 00007f9846065fa0 R15: 00007ffcff701338
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/11 06:19 upstream 917167ed1211 ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in sock_hash_delete_elem
2025/10/06 08:36 upstream 7a405dbb0f03 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in sock_hash_delete_elem
2025/10/03 10:00 upstream e406d57be7bd 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in sock_hash_delete_elem
2025/09/28 06:03 upstream 51a24b7deaae 001c9061 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in sock_hash_delete_elem
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.