syzbot


KCSAN: data-race in inet_send_prepare / udp_lib_get_port

Status: closed as invalid on 2019/11/19 14:44
Subsystems: net
[Documentation on labels]
First crash: 1631d, last: 1631d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in inet_send_prepare / udp_lib_get_port (2) net 1 1106d 1106d 0/26 auto-closed as invalid on 2021/05/21 15:38
upstream KCSAN: data-race in inet_send_prepare / udp_lib_get_port (3) net 4 1051d 1054d 20/26 fixed on 2021/11/10 00:50

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

write to 0xffff8881222d854e of 2 bytes by task 17222 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_dgram_connect+0x176/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

read to 0xffff8881222d854e of 2 bytes by task 17248 on cpu 0:
 inet_send_prepare+0x4a/0x200 net/ipv4/af_inet.c:792
 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

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 17248 Comm: syz-executor.0 Not tainted 5.4.0-rc6+ #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
2019/11/08 20:20 https://github.com/google/ktsan.git kcsan 94c006602e13 1e35461e .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.