syzbot


KMSAN: uninit-value in sock_hash_delete_elem

Status: auto-obsoleted due to no activity on 2024/09/21 21:37
Subsystems: net bpf
[Documentation on labels]
Reported-by: syzbot+c33bff5d5da1391df027@syzkaller.appspotmail.com
First crash: 281d, last: 225d
Discussions (4)
Title Replies (including bot) Last reply
Re: [syzbot] [PATCH] kernel/bpf: enable BPF bytecode call parsing for uninit value 0 (1) 2024/07/01 10:02
[syzbot] [bpf?] [net?] KMSAN: uninit-value in sock_hash_delete_elem 0 (3) 2024/06/20 07:28
Re: [syzbot] [PATCH] [syzbot] [bpf?] [net?] KMSAN: uninit-value in sock_hash_delete_elem 0 (1) 2024/06/14 12:04
Re: [syzbot] [PATCH] [syzbot] [bpf?] [net?] KMSAN: uninit-value in sock_hash_delete_elem 0 (1) 2024/06/14 12:01
Last patch testing requests (9)
Created Duration User Patch Repo Result
2024/09/21 19:56 1h40m retest repro upstream OK log
2024/07/13 19:15 22m retest repro upstream error
2024/07/01 10:02 26m wojciech.gladysz@infogain.com patch https://linux.googlesource.com/linux/kernel/git/torvalds/linux e478cf26c556e4ab572ab0ab2306c986901dcd61 OK log
2024/06/20 07:28 19m wojciech.gladysz@infogain.com https://linux.googlesource.com/linux/kernel/git/torvalds/linux e478cf26c556e4ab572ab0ab2306c986901dcd61 report log
2024/06/20 05:58 0m wojciech.gladysz@infogain.com https://linux.googlesource.com/linux/kernel/git/torvalds/linux 0daa6e5ed1ccdeb65e07d4884961a8bb288a0f54 error
2024/06/20 05:56 4m wojciech.gladysz@infogain.com https://linux.googlesource.com/linux/kernel/git/torvalds/linux 0daa6e5ed1ccdeb65e07d4884961a8bb288a0f54 error
2024/06/14 12:04 7h09m wojciech.gladysz@infogain.com https://linux.googlesource.com/linux/kernel/git/torvalds/linux 90302a82de094e0a51a2f51935ce27c4f1fe8dc4 error
2024/06/14 12:01 4h25m wojciech.gladysz@infogain.com patch https://linux.googlesource.com/linux/kernel/git/torvalds/linux e478cf26c556e4ab572ab0ab2306c986901dcd61 OK log
2024/05/04 15:28 26m retest repro upstream report log

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in spin_lock_bh include/linux/spinlock.h:356 [inline]
BUG: KMSAN: uninit-value in sock_hash_delete_elem+0x239/0x710 net/core/sock_map.c:945
 spin_lock_bh include/linux/spinlock.h:356 [inline]
 sock_hash_delete_elem+0x239/0x710 net/core/sock_map.c:945
 ____bpf_map_delete_elem kernel/bpf/helpers.c:77 [inline]
 bpf_map_delete_elem+0x5c/0x80 kernel/bpf/helpers.c:73
 ___bpf_prog_run+0x13fe/0xe0f0 kernel/bpf/core.c:1997
 __bpf_prog_run32+0xb2/0xe0 kernel/bpf/core.c:2236
 bpf_dispatcher_nop_func include/linux/bpf.h:1234 [inline]
 __bpf_prog_run include/linux/filter.h:657 [inline]
 bpf_prog_run include/linux/filter.h:664 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2381 [inline]
 bpf_trace_run2+0x116/0x300 kernel/trace/bpf_trace.c:2420
 __bpf_trace_kfree+0x29/0x40 include/trace/events/kmem.h:94
 trace_kfree include/trace/events/kmem.h:94 [inline]
 kfree+0x69e/0xa60 mm/slub.c:4450
 kvfree+0x69/0x80 mm/util.c:680
 vfree+0x821/0x8c0 mm/vmalloc.c:3344
 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:882 [inline]
 get_entries net/ipv6/netfilter/ip6_tables.c:1039 [inline]
 do_ip6t_get_ctl+0x161c/0x20b0 net/ipv6/netfilter/ip6_tables.c:1677
 nf_getsockopt+0x429/0x480 net/netfilter/nf_sockopt.c:116
 ipv6_getsockopt+0x331/0x4e0 net/ipv6/ipv6_sockglue.c:1494
 tcp_getsockopt+0x15c/0x1a0 net/ipv4/tcp.c:4375
 sock_common_getsockopt+0xa1/0xe0 net/core/sock.c:3700
 do_sock_getsockopt+0x544/0xa00 net/socket.c:2373
 __sys_getsockopt+0x3ca/0x540 net/socket.c:2402
 __do_sys_getsockopt net/socket.c:2412 [inline]
 __se_sys_getsockopt net/socket.c:2409 [inline]
 __x64_sys_getsockopt+0xe9/0x170 net/socket.c:2409
 x64_sys_call+0x3ae2/0x3b50 arch/x86/include/generated/asm/syscalls_64.h:56
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Local variable stack created at:
 __bpf_prog_run32+0x43/0xe0 kernel/bpf/core.c:2236
 bpf_dispatcher_nop_func include/linux/bpf.h:1234 [inline]
 __bpf_prog_run include/linux/filter.h:657 [inline]
 bpf_prog_run include/linux/filter.h:664 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2381 [inline]
 bpf_trace_run2+0x116/0x300 kernel/trace/bpf_trace.c:2420

CPU: 0 PID: 5535 Comm: syz-executor.2 Not tainted 6.9.0-syzkaller-02707-g614da38e2f7a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
=====================================================

Crashes (32):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/03 17:13 upstream 614da38e2f7a 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/06/03 17:13 upstream 614da38e2f7a 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/06/01 16:21 upstream 614da38e2f7a 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/06/01 16:20 upstream 614da38e2f7a 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/06/01 03:00 upstream 614da38e2f7a 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/06/01 03:00 upstream 614da38e2f7a 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/25 07:52 upstream 614da38e2f7a a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/25 07:52 upstream 614da38e2f7a a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/25 07:52 upstream 614da38e2f7a a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/25 07:51 upstream 614da38e2f7a a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/24 02:12 upstream 614da38e2f7a 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/24 02:11 upstream 614da38e2f7a 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/24 02:06 upstream 614da38e2f7a 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/24 02:06 upstream 614da38e2f7a 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/17 19:48 upstream 614da38e2f7a a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/17 19:47 upstream 614da38e2f7a a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/15 22:38 upstream 614da38e2f7a 0b3dad46 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/04/20 15:17 upstream 13a2e429f644 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/04/14 20:48 upstream 7efd0a74039f c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/04/09 02:32 upstream fec50db7033e 53df08b6 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/04/09 00:41 upstream fec50db7033e 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sock_hash_delete_elem
2024/06/03 20:23 upstream 101b7a97143a 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sock_hash_delete_elem
2024/06/03 20:23 upstream 101b7a97143a 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sock_hash_delete_elem
2024/06/01 17:04 upstream 101b7a97143a 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sock_hash_delete_elem
2024/06/01 17:04 upstream 101b7a97143a 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/25 13:15 upstream 101b7a97143a a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/25 13:15 upstream 101b7a97143a a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/24 05:33 upstream 101b7a97143a 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/24 05:33 upstream 101b7a97143a 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/24 05:24 upstream 101b7a97143a 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sock_hash_delete_elem
2024/05/24 05:24 upstream 101b7a97143a 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sock_hash_delete_elem
2024/04/20 09:19 upstream 3cdb45594619 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sock_hash_delete_elem
* Struck through repros no longer work on HEAD.