syzbot


KCSAN: data-race in __inet_hash_connect / __inet_hash_connect (2)

Status: auto-closed as invalid on 2020/06/18 13:23
Subsystems: net
[Documentation on labels]
First crash: 1444d, last: 1444d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __inet_hash_connect / __inet_hash_connect (3) net 1 1347d 1347d 0/26 auto-closed as invalid on 2020/09/22 09:01
upstream KCSAN: data-race in __inet_hash_connect / __inet_hash_connect net 1 1550d 1550d 0/26 auto-closed as invalid on 2020/04/06 10:55

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

write to 0xffffffff894a2c80 of 4 bytes by task 10989 on cpu 1:
 __inet_hash_connect+0x4ab/0x8a0 net/ipv4/inet_hashtables.c:714
 inet_hash_connect+0x55/0xb0 net/ipv4/inet_hashtables.c:741
 tcp_v4_connect+0x686/0xc80 net/ipv4/tcp_ipv4.c:274
 __inet_stream_connect+0x1bc/0x830 net/ipv4/af_inet.c:655
 tcp_sendmsg_fastopen net/ipv4/tcp.c:1164 [inline]
 tcp_sendmsg_locked+0x198d/0x20f0 net/ipv4/tcp.c:1206
 tcp_sendmsg+0x35/0x50 net/ipv4/tcp.c:1433
 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+0x493/0x4c0 net/socket.c:2362
 ___sys_sendmsg+0xb5/0x100 net/socket.c:2416
 __sys_sendmsg+0x9b/0x150 net/socket.c:2449
 __do_sys_sendmsg net/socket.c:2458 [inline]
 __se_sys_sendmsg net/socket.c:2456 [inline]
 __x64_sys_sendmsg+0x4c/0x60 net/socket.c:2456
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffffffff894a2c80 of 4 bytes by task 10988 on cpu 0:
 __inet_hash_connect+0x153/0x8a0 net/ipv4/inet_hashtables.c:660
 inet_hash_connect+0x55/0xb0 net/ipv4/inet_hashtables.c:741
 tcp_v4_connect+0x686/0xc80 net/ipv4/tcp_ipv4.c:274
 __inet_stream_connect+0x1bc/0x830 net/ipv4/af_inet.c:655
 tcp_sendmsg_fastopen net/ipv4/tcp.c:1164 [inline]
 tcp_sendmsg_locked+0x198d/0x20f0 net/ipv4/tcp.c:1206
 tcp_sendmsg+0x35/0x50 net/ipv4/tcp.c:1433
 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+0x493/0x4c0 net/socket.c:2362
 ___sys_sendmsg+0xb5/0x100 net/socket.c:2416
 __sys_sendmsg+0x9b/0x150 net/socket.c:2449
 __do_sys_sendmsg net/socket.c:2458 [inline]
 __se_sys_sendmsg net/socket.c:2456 [inline]
 __x64_sys_sendmsg+0x4c/0x60 net/socket.c:2456
 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: 10988 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/05/13 10:11 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 9a6d42fb .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.