syzbot


KCSAN: data-race in __ip4_datagram_connect / inet_getname

Status: auto-closed as invalid on 2021/09/14 03:27
Subsystems: net
[Documentation on labels]
First crash: 1267d, last: 1267d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __ip4_datagram_connect / inet_getname

write to 0xffff88812e71fef0 of 4 bytes by task 25327 on cpu 1:
 __ip4_datagram_connect+0x56d/0x710 net/ipv4/datagram.c:65
 ip4_datagram_connect+0x2a/0x40 net/ipv4/datagram.c:90
 inet_dgram_connect+0x107/0x190 net/ipv4/af_inet.c:580
 __sys_connect_file net/socket.c:1879 [inline]
 __sys_connect+0x245/0x280 net/socket.c:1896
 __do_sys_connect net/socket.c:1906 [inline]
 __se_sys_connect net/socket.c:1903 [inline]
 __x64_sys_connect+0x3d/0x50 net/socket.c:1903
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812e71fef0 of 4 bytes by task 25329 on cpu 0:
 inet_getname+0x10a/0x170 net/ipv4/af_inet.c:789
 __sys_getsockname+0x10e/0x1a0 net/socket.c:1929
 __do_sys_getsockname net/socket.c:1944 [inline]
 __se_sys_getsockname net/socket.c:1941 [inline]
 __x64_sys_getsockname+0x3e/0x50 net/socket.c:1941
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000 -> 0x0a1414ac

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 25329 Comm: syz-executor.3 Tainted: G        W         5.14.0-rc5-syzkaller #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
2021/08/10 03:26 upstream 9a73fa375d58 6972b106 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ip4_datagram_connect / inet_getname
* Struck through repros no longer work on HEAD.