syzbot


KCSAN: data-race in ip_vs_add_service / ip_vs_in_hook

Status: auto-obsoleted due to no activity on 2025/03/06 04:12
Subsystems: lvs
[Documentation on labels]
First crash: 235d, last: 235d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ip_vs_add_service / ip_vs_in_hook

write to 0xffff888116a7f004 of 4 bytes by task 3932 on cpu 1:
 ip_vs_add_service+0x9e8/0xa50 net/netfilter/ipvs/ip_vs_ctl.c:1487
 do_ip_vs_set_ctl+0x6c2/0x810 net/netfilter/ipvs/ip_vs_ctl.c:2807
 nf_setsockopt+0x195/0x1b0 net/netfilter/nf_sockopt.c:101
 ip_setsockopt+0xea/0x100 net/ipv4/ip_sockglue.c:1424
 udp_setsockopt+0x95/0xb0 net/ipv4/udp.c:2989
 sock_common_setsockopt+0x64/0x80 net/core/sock.c:3817
 do_sock_setsockopt net/socket.c:2313 [inline]
 __sys_setsockopt+0x187/0x200 net/socket.c:2338
 __do_sys_setsockopt net/socket.c:2344 [inline]
 __se_sys_setsockopt net/socket.c:2341 [inline]
 __x64_sys_setsockopt+0x66/0x80 net/socket.c:2341
 x64_sys_call+0x282e/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:55
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888116a7f004 of 4 bytes by task 3921 on cpu 0:
 ip_vs_in_hook+0x17f/0x1210 net/netfilter/ipvs/ip_vs_core.c:1943
 nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline]
 nf_hook_slow+0x86/0x1b0 net/netfilter/core.c:626
 nf_hook include/linux/netfilter.h:269 [inline]
 __ip_local_out+0x2d6/0x300 net/ipv4/ip_output.c:119
 ip_local_out net/ipv4/ip_output.c:128 [inline]
 ip_send_skb+0x30/0x140 net/ipv4/ip_output.c:1505
 udp_send_skb+0x6a6/0x9f0 net/ipv4/udp.c:1142
 udp_sendmsg+0x1257/0x12f0 net/ipv4/udp.c:1430
 inet_sendmsg+0xaf/0xd0 net/ipv4/af_inet.c:851
 sock_sendmsg_nosec net/socket.c:711 [inline]
 __sock_sendmsg+0x102/0x180 net/socket.c:726
 ____sys_sendmsg+0x312/0x410 net/socket.c:2583
 ___sys_sendmsg net/socket.c:2637 [inline]
 __sys_sendmmsg+0x227/0x4b0 net/socket.c:2726
 __do_sys_sendmmsg net/socket.c:2753 [inline]
 __se_sys_sendmmsg net/socket.c:2750 [inline]
 __x64_sys_sendmmsg+0x57/0x70 net/socket.c:2750
 x64_sys_call+0x29aa/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:308
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3921 Comm: syz.0.175 Not tainted 6.13.0-rc6-syzkaller-00046-g0b7958fa05d5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/09 04:04 upstream 0b7958fa05d5 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in ip_vs_add_service / ip_vs_in_hook
* Struck through repros no longer work on HEAD.