syzbot


KCSAN: data-race in inet_dgram_connect / udp_lib_get_port (3)

Status: auto-closed as invalid on 2020/12/25 11:24
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+1ef3934652a5b805dfce@syzkaller.appspotmail.com
First crash: 1278d, last: 1278d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in inet_dgram_connect / udp_lib_get_port net 1 1654d 1654d 0/26 closed as invalid on 2019/11/19 13:44
upstream KCSAN: data-race in inet_dgram_connect / udp_lib_get_port (2) net 3 1622d 1628d 0/26 auto-closed as invalid on 2020/02/05 16:37
upstream KCSAN: data-race in inet_dgram_connect / udp_lib_get_port (4) net 1 1191d 1191d 0/26 auto-closed as invalid on 2021/03/07 18:58
upstream KCSAN: data-race in inet_dgram_connect / udp_lib_get_port (5) net 6 1074d 1061d 20/26 fixed on 2021/11/10 00:50

Sample crash report:
==================================================================
BUG: KCSAN: data-race in inet_dgram_connect / udp_lib_get_port

write to 0xffff88803bc7aa8e of 2 bytes by task 11969 on cpu 1:
 udp_lib_get_port+0x4ad/0xdb0 net/ipv4/udp.c:308
 udp_v6_get_port+0x5e/0x70 net/ipv6/udp.c:89
 inet_autobind net/ipv4/af_inet.c:183 [inline]
 inet_send_prepare+0xd0/0x210 net/ipv4/af_inet.c:803
 inet6_sendmsg+0x29/0x80 net/ipv6/af_inet6.c:635
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg net/socket.c:671 [inline]
 __sys_sendto+0x2ae/0x380 net/socket.c:1992
 __do_sys_sendto net/socket.c:2004 [inline]
 __se_sys_sendto net/socket.c:2000 [inline]
 __x64_sys_sendto+0x74/0x90 net/socket.c:2000
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88803bc7aa8e of 2 bytes by task 11963 on cpu 0:
 inet_dgram_connect+0xa5/0x200 net/ipv4/af_inet.c:575
 __sys_connect_file net/socket.c:1852 [inline]
 __sys_connect+0x245/0x280 net/socket.c:1869
 __do_sys_connect net/socket.c:1879 [inline]
 __se_sys_connect net/socket.c:1876 [inline]
 __x64_sys_connect+0x3d/0x50 net/socket.c:1876
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 11963 Comm: syz-executor.2 Not tainted 5.10.0-rc2-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
2020/11/05 18:30 upstream 4ef8451b3326 cba33199 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.