syzbot


KCSAN: data-race in __ip4_datagram_connect / udpv6_sendmsg

Status: closed as invalid on 2020/06/18 14:24
Subsystems: net
[Documentation on labels]
First crash: 1474d, last: 1416d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __ip4_datagram_connect / udpv6_sendmsg (2) net 1 958d 942d 0/26 auto-closed as invalid on 2021/10/15 20:11

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

write to 0xffff8880a1b8d54c of 2 bytes by task 10388 on cpu 1:
 __ip4_datagram_connect+0x4a1/0x810 net/ipv4/datagram.c:72
 __ip6_datagram_connect+0x8f3/0x9f0 net/ipv6/datagram.c:188
 ip6_datagram_connect+0x35/0x50 net/ipv6/datagram.c:271
 inet_dgram_connect+0xc5/0x190 net/ipv4/af_inet.c:571
 __sys_connect_file+0xdc/0xf0 net/socket.c:1859
 __sys_connect+0x11b/0x150 net/socket.c:1876
 __do_sys_connect net/socket.c:1887 [inline]
 __se_sys_connect net/socket.c:1884 [inline]
 __x64_sys_connect+0x48/0x60 net/socket.c:1884
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880a1b8d54c of 2 bytes by task 10397 on cpu 0:
 udpv6_sendmsg+0xbd0/0x1d40 net/ipv6/udp.c:1352
 inet6_sendmsg+0x69/0x90 net/ipv6/af_inet6.c:577
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0x98/0xc0 net/socket.c:672
 ____sys_sendmsg+0x207/0x4c0 net/socket.c:2362
 ___sys_sendmsg+0xb5/0x100 net/socket.c:2416
 __sys_sendmmsg+0x10e/0x310 net/socket.c:2506
 __do_sys_sendmmsg net/socket.c:2535 [inline]
 __se_sys_sendmmsg net/socket.c:2532 [inline]
 __x64_sys_sendmmsg+0x60/0x80 net/socket.c:2532
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/10 04:59 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 860c4de9 .config console log report ci2-upstream-kcsan-gce
2020/04/13 08:27 https://github.com/google/ktsan.git kcsan 40959e34d670 17a986e5 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.