syzbot


KCSAN: data-race in __ip6_datagram_connect / rawv6_sendmsg (2)

Status: closed as invalid on 2020/06/18 14:13
Subsystems: net
[Documentation on labels]
First crash: 1901d, last: 1901d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __ip6_datagram_connect / rawv6_sendmsg net 6 1 2117d 2116d 0/29 auto-closed as invalid on 2020/01/20 16:26

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __ip6_datagram_connect / rawv6_sendmsg

read to 0xffff8880a05f81b8 of 8 bytes by task 11127 on cpu 1:
 ipv6_addr_any include/net/ipv6.h:640 [inline]
 rawv6_sendmsg+0x7c2/0x2320 net/ipv6/raw.c:905
 inet_sendmsg+0x69/0x90 net/ipv4/af_inet.c:807
 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

write to 0xffff8880a05f81b8 of 16 bytes by task 11124 on cpu 0:
 __ip6_datagram_connect+0x521/0x9f0 net/ipv6/datagram.c:238
 ip6_datagram_connect+0x35/0x50 net/ipv6/datagram.c:271
 ip6_datagram_connect_v6_only+0x4f/0x70 net/ipv6/datagram.c:283
 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

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 11124 Comm: syz-executor.3 Not tainted 5.7.0-rc1-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/06/14 02:45 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 a61674a5 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.