syzbot


KCSAN: data-race in tcp_setsockopt / tcp_v6_connect

Status: auto-closed as invalid on 2022/05/05 08:43
Subsystems: net
[Documentation on labels]
First crash: 749d, last: 749d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in tcp_setsockopt / tcp_v6_connect (2) net 1 584d 578d 0/26 auto-obsoleted due to no activity on 2022/10/17 07:36

Sample crash report:
==================================================================
BUG: KCSAN: data-race in tcp_setsockopt / tcp_v6_connect

write to 0xffff8881384e2f60 of 8 bytes by task 7676 on cpu 1:
 tcp_v6_connect+0x5ec/0xd80 net/ipv6/tcp_ipv6.c:240
 __inet_stream_connect+0x156/0x6e0 net/ipv4/af_inet.c:660
 inet_stream_connect+0x44/0x70 net/ipv4/af_inet.c:724
 __sys_connect_file net/socket.c:1900 [inline]
 __sys_connect+0x197/0x1b0 net/socket.c:1917
 __do_sys_connect net/socket.c:1927 [inline]
 __se_sys_connect net/socket.c:1924 [inline]
 __x64_sys_connect+0x3d/0x50 net/socket.c:1924
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x50 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881384e2f60 of 8 bytes by task 7674 on cpu 0:
 tcp_setsockopt+0x5f/0xa0 net/ipv4/tcp.c:3696
 sock_common_setsockopt+0x5d/0x70 net/core/sock.c:3505
 __sys_setsockopt+0x209/0x2a0 net/socket.c:2180
 __do_sys_setsockopt net/socket.c:2191 [inline]
 __se_sys_setsockopt net/socket.c:2188 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2188
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x50 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0xffffffff85388738 -> 0xffffffff853887b0

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7674 Comm: syz-executor.5 Not tainted 5.17.0-syzkaller-13410-g74164d284b29-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/31 08:40 upstream 74164d284b29 9d49f3a7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in tcp_setsockopt / tcp_v6_connect
* Struck through repros no longer work on HEAD.