syzbot


WARNING in sock_map_delete_elem

Status: fixed on 2024/05/15 09:17
Reported-by: syzbot+3731df9e87e5cf890e25@syzkaller.appspotmail.com
Fix commit: d1e73fb19a4c bpf, sockmap: Prevent lock inversion deadlock in map delete elem
First crash: 251d, last: 225d
Fix bisection: fixed by (bisect log) :
commit d1e73fb19a4c872d7a399ad3c66e8ca30e0875ec
Author: Jakub Sitnicki <jakub@cloudflare.com>
Date: Tue Apr 2 10:46:21 2024 +0000

  bpf, sockmap: Prevent lock inversion deadlock in map delete elem

  
Bug presence (1)
Date Name Commit Repro Result
2024/05/03 upstream (ToT) 3d25a941ea50 C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in sock_map_delete_elem bpf net C 17183 209d 247d 25/28 fixed on 2024/05/22 23:36
linux-6.1 WARNING in sock_map_delete_elem origin:lts-only C unreliable 1256 109d 251d 0/3 upstream: reported C repro on 2024/03/14 20:08

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3507 at kernel/softirq.c:363 __local_bh_enable_ip+0x1b3/0x1f0
Modules linked in:
CPU: 0 PID: 3507 Comm: syz-executor188 Not tainted 5.15.153-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:__local_bh_enable_ip+0x1b3/0x1f0 kernel/softirq.c:363
Code: 04 25 28 00 00 00 48 3b 44 24 60 75 4a 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 0f 0b e9 d0 fe ff ff e8 3f 00 00 00 eb a2 <0f> 0b e9 02 ff ff ff 48 c7 c1 c4 c8 e3 8d 80 e1 07 80 c1 03 38 c1
RSP: 0018:ffffc90002cd78e0 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 1ffff9200059af20 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000201 RDI: ffffffff884eb75b
RBP: ffffc90002cd7998 R08: dffffc0000000000 R09: ffffed100f1401b6
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88801e3773c0 R14: ffffc90002cd7920 R15: 0000000000000201
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa5e5c71130 CR3: 000000000c68e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __sock_map_delete net/core/sock_map.c:426 [inline]
 sock_map_delete_elem+0xcb/0x130 net/core/sock_map.c:448
 bpf_prog_8a405b5ced52e191+0x42/0xa18
 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
 __bpf_prog_run include/linux/filter.h:628 [inline]
 bpf_prog_run include/linux/filter.h:635 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline]
 bpf_trace_run5+0x222/0x3e0 kernel/trace/bpf_trace.c:1920
 __traceiter_signal_generate+0x8d/0xe0 include/trace/events/signal.h:50
 trace_signal_generate+0x182/0x1f0 include/trace/events/signal.h:50
 __send_signal+0xadc/0xd40 kernel/signal.c:1184
 do_notify_parent+0xc1e/0xf00 kernel/signal.c:2113
 exit_notify kernel/exit.c:729 [inline]
 do_exit+0x1464/0x2480 kernel/exit.c:892
 do_group_exit+0x144/0x310 kernel/exit.c:994
 __do_sys_exit_group kernel/exit.c:1005 [inline]
 __se_sys_exit_group kernel/exit.c:1003 [inline]
 __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1003
 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:0x7fa5e5bf4f39
Code: Unable to access opcode bytes at RIP 0x7fa5e5bf4f0f.
RSP: 002b:00007ffc072bd068 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa5e5bf4f39
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 00007fa5e5c702b0 R08: ffffffffffffffb8 R09: 00000000000000a0
R10: 00000000000000a0 R11: 0000000000000246 R12: 00007fa5e5c702b0
R13: 0000000000000000 R14: 00007fa5e5c70d20 R15: 00007fa5e5bc60f0
 </TASK>

Crashes (1015):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/10 10:13 linux-5.15.y 9465fef4ae35 171ec371 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/10 09:39 linux-5.15.y 9465fef4ae35 171ec371 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/10 09:10 linux-5.15.y 9465fef4ae35 171ec371 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/10 08:40 linux-5.15.y 9465fef4ae35 171ec371 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/10 02:54 linux-5.15.y 9465fef4ae35 171ec371 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/10 02:03 linux-5.15.y 9465fef4ae35 171ec371 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/10 00:47 linux-5.15.y 9465fef4ae35 171ec371 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/09 17:29 linux-5.15.y 9465fef4ae35 f3234354 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/09 12:58 linux-5.15.y 9465fef4ae35 f3234354 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/09 09:25 linux-5.15.y 9465fef4ae35 f3234354 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/08 14:58 linux-5.15.y 9465fef4ae35 53df08b6 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/08 01:19 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/08 00:39 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/07 23:34 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/07 20:15 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/07 02:07 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/07 01:24 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/07 00:26 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/06 23:27 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/05 23:57 linux-5.15.y 9465fef4ae35 77230c29 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/05 22:34 linux-5.15.y 9465fef4ae35 77230c29 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/05 22:21 linux-5.15.y 9465fef4ae35 77230c29 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/05 22:04 linux-5.15.y 9465fef4ae35 77230c29 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/05 21:33 linux-5.15.y 9465fef4ae35 77230c29 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/05 20:55 linux-5.15.y 9465fef4ae35 77230c29 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/05 14:32 linux-5.15.y 9465fef4ae35 77230c29 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/04 18:23 linux-5.15.y 9465fef4ae35 0ee3535e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/04 12:32 linux-5.15.y 9465fef4ae35 0ee3535e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/04 11:44 linux-5.15.y 9465fef4ae35 0ee3535e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/04 04:04 linux-5.15.y 9465fef4ae35 51c4dcff .config console log report syz C ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/04 03:37 linux-5.15.y 9465fef4ae35 51c4dcff .config console log report syz C ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/04 03:12 linux-5.15.y 9465fef4ae35 51c4dcff .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/04 01:52 linux-5.15.y 9465fef4ae35 51c4dcff .config console log report syz C ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/03 23:58 linux-5.15.y 9465fef4ae35 51c4dcff .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/03 23:40 linux-5.15.y 9465fef4ae35 51c4dcff .config console log report syz C ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/03 22:50 linux-5.15.y 9465fef4ae35 51c4dcff .config console log report syz C ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/03 11:13 linux-5.15.y 9465fef4ae35 7925100d .config console log report syz C ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/03 10:47 linux-5.15.y 9465fef4ae35 7925100d .config console log report syz C ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/03 08:53 linux-5.15.y 9465fef4ae35 7925100d .config console log report syz C ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/03 08:26 linux-5.15.y 9465fef4ae35 7925100d .config console log report syz C ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/03/15 00:19 linux-5.15.y 574362648507 d615901c .config console log report syz C ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/03/14 19:46 linux-5.15.y 574362648507 8d8ee116 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/10 07:30 linux-5.15.y 9465fef4ae35 171ec371 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/06 19:04 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/10 13:11 linux-5.15.y 9465fef4ae35 4320ec32 .config console log report info ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/10 11:53 linux-5.15.y 9465fef4ae35 4320ec32 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/10 06:44 linux-5.15.y 9465fef4ae35 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/10 05:35 linux-5.15.y 9465fef4ae35 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/10 04:29 linux-5.15.y 9465fef4ae35 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/10 03:22 linux-5.15.y 9465fef4ae35 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/10 01:50 linux-5.15.y 9465fef4ae35 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/09 23:21 linux-5.15.y 9465fef4ae35 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/09 20:44 linux-5.15.y 9465fef4ae35 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/09 18:42 linux-5.15.y 9465fef4ae35 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/09 16:46 linux-5.15.y 9465fef4ae35 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/09 14:51 linux-5.15.y 9465fef4ae35 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/09 13:40 linux-5.15.y 9465fef4ae35 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/09 12:10 linux-5.15.y 9465fef4ae35 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/09 11:04 linux-5.15.y 9465fef4ae35 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/09 07:12 linux-5.15.y 9465fef4ae35 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/09 05:49 linux-5.15.y 9465fef4ae35 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/09 05:48 linux-5.15.y 9465fef4ae35 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/09 04:31 linux-5.15.y 9465fef4ae35 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/09 00:23 linux-5.15.y 9465fef4ae35 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/08 22:29 linux-5.15.y 9465fef4ae35 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/08 21:22 linux-5.15.y 9465fef4ae35 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/08 20:02 linux-5.15.y 9465fef4ae35 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/08 18:53 linux-5.15.y 9465fef4ae35 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/08 17:51 linux-5.15.y 9465fef4ae35 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/08 16:10 linux-5.15.y 9465fef4ae35 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/08 14:16 linux-5.15.y 9465fef4ae35 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/08 14:06 linux-5.15.y 9465fef4ae35 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/08 10:37 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/08 07:46 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/08 06:16 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/08 05:01 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/07 19:43 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/07 17:51 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/07 15:54 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/07 12:48 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/07 08:22 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/07 07:00 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/07 05:46 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/07 04:18 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
2024/04/07 03:14 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in sock_map_delete_elem
2024/04/06 22:58 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_delete_elem
* Struck through repros no longer work on HEAD.