syzbot


KCSAN: data-race in tcp_setsockopt / tcp_v6_connect (2)

Status: auto-obsoleted due to no activity on 2022/10/17 07:36
Reported-by: syzbot+52d28b6b44fc3c9df45f@syzkaller.appspotmail.com
First crash: 83d, last: 83d
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 1 248d 248d 0/24 auto-closed as invalid on 2022/05/05 08:43

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

write to 0xffff88813c624518 of 8 bytes by task 23936 on cpu 0:
 tcp_v6_connect+0x5b3/0xce0 net/ipv6/tcp_ipv6.c:240
 __inet_stream_connect+0x159/0x6d0 net/ipv4/af_inet.c:660
 inet_stream_connect+0x44/0x70 net/ipv4/af_inet.c:724
 __sys_connect_file net/socket.c:1976 [inline]
 __sys_connect+0x197/0x1b0 net/socket.c:1993
 __do_sys_connect net/socket.c:2003 [inline]
 __se_sys_connect net/socket.c:2000 [inline]
 __x64_sys_connect+0x3d/0x50 net/socket.c:2000
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813c624518 of 8 bytes by task 23937 on cpu 1:
 tcp_setsockopt+0x147/0x1c80 net/ipv4/tcp.c:3789
 sock_common_setsockopt+0x5d/0x70 net/core/sock.c:3585
 __sys_setsockopt+0x212/0x2b0 net/socket.c:2252
 __do_sys_setsockopt net/socket.c:2263 [inline]
 __se_sys_setsockopt net/socket.c:2260 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2260
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0xffffffff8539af68 -> 0xffffffff8539aff8

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 23937 Comm: syz-executor.5 Not tainted 6.0.0-rc4-syzkaller-00331-g4ed9c1e971b1-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/09/12 07:35 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in tcp_setsockopt / tcp_v6_connect
* Struck through repros no longer work on HEAD.