syzbot


KCSAN: data-race in __inet_bind / tcp_sendmsg_locked

Status: auto-closed as invalid on 2020/03/15 10:16
Subsystems: net
[Documentation on labels]
First crash: 1573d, last: 1573d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __inet_bind / tcp_sendmsg_locked

read to 0xffff8880a8da3060 of 1 bytes by task 6224 on cpu 0:
 inet_can_nonlocal_bind include/net/inet_sock.h:379 [inline]
 __inet_bind+0x12a/0x6b0 net/ipv4/af_inet.c:489
 inet_bind+0xc6/0x110 net/ipv4/af_inet.c:453
 __sys_bind+0x1df/0x220 net/socket.c:1649
 __do_sys_bind net/socket.c:1660 [inline]
 __se_sys_bind net/socket.c:1658 [inline]
 __x64_sys_bind+0x4c/0x60 net/socket.c:1658
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8880a8da3060 of 2 bytes by task 6256 on cpu 1:
 tcp_sendmsg_fastopen net/ipv4/tcp.c:1174 [inline]
 tcp_sendmsg_locked+0x19af/0x2040 net/ipv4/tcp.c:1208
 tcp_sendmsg+0x39/0x60 net/ipv4/tcp.c:1436
 inet_sendmsg+0x6d/0x90 net/ipv4/af_inet.c:807
 sock_sendmsg_nosec net/socket.c:639 [inline]
 sock_sendmsg+0x9f/0xc0 net/socket.c:659
 __sys_sendto+0x21f/0x320 net/socket.c:1985
 __do_sys_sendto net/socket.c:1997 [inline]
 __se_sys_sendto net/socket.c:1993 [inline]
 __x64_sys_sendto+0x89/0xb0 net/socket.c:1993
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 6256 Comm: syz-executor.4 Not tainted 5.5.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/01/05 10:11 https://github.com/google/ktsan.git kcsan 245a43005292 68256974 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.