syzbot


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

Status: auto-closed as invalid on 2020/02/05 16:37
Subsystems: net
[Documentation on labels]
First crash: 1617d, last: 1611d
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 1643d 1643d 0/26 closed as invalid on 2019/11/19 13:44
upstream KCSAN: data-race in inet_dgram_connect / udp_lib_get_port (3) net 1 1267d 1232d 0/26 auto-closed as invalid on 2020/12/25 11:24
upstream KCSAN: data-race in inet_dgram_connect / udp_lib_get_port (4) net 1 1180d 1180d 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 1064d 1051d 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 0xffff888102716a8e of 2 bytes by task 7989 on cpu 1:
 udp_lib_get_port+0x4c6/0xd10 net/ipv4/udp.c:304
 udp_v6_get_port+0x262/0x3a0 net/ipv6/udp.c:89
 inet_autobind+0x70/0xf0 net/ipv4/af_inet.c:182
 inet_send_prepare net/ipv4/af_inet.c:793 [inline]
 inet_send_prepare+0x1d1/0x200 net/ipv4/af_inet.c:787
 inet6_sendmsg+0x37/0x90 net/ipv6/af_inet6.c:573
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg+0x9f/0xc0 net/socket.c:657
 ___sys_sendmsg+0x2b7/0x5d0 net/socket.c:2311
 __sys_sendmmsg+0x123/0x350 net/socket.c:2413
 __do_sys_sendmmsg net/socket.c:2442 [inline]
 __se_sys_sendmmsg net/socket.c:2439 [inline]
 __x64_sys_sendmmsg+0x64/0x80 net/socket.c:2439
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888102716a8e of 2 bytes by task 7980 on cpu 0:
 inet_dgram_connect+0x8e/0x1a0 net/ipv4/af_inet.c:569
 __sys_connect+0x1e9/0x250 net/socket.c:1828
 __do_sys_connect net/socket.c:1839 [inline]
 __se_sys_connect net/socket.c:1836 [inline]
 __x64_sys_connect+0x4c/0x60 net/socket.c:1836
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7980 Comm: syz-executor.3 Not tainted 5.4.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/27 16:33 https://github.com/google/ktsan.git kcsan ef798c30ba4e 0d63f89c .config console log report ci2-upstream-kcsan-gce
2019/11/26 13:53 https://github.com/google/ktsan.git kcsan 5863cc791e4c 598ca6c8 .config console log report ci2-upstream-kcsan-gce
2019/11/22 04:14 https://github.com/google/ktsan.git kcsan 5863cc791e4c 8098ea0f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.