syzbot


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

Status: auto-closed as invalid on 2020/11/12 23:57
Subsystems: net
[Documentation on labels]
First crash: 1296d, last: 1296d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __inet_hash_connect / inet_send_prepare net 2 1571d 1607d 0/26 auto-closed as invalid on 2020/03/17 07:16
upstream KCSAN: data-race in __inet_hash_connect / inet_send_prepare (4) net 7 1048d 1051d 20/26 fixed on 2021/11/10 00:50
upstream KCSAN: data-race in __inet_hash_connect / inet_send_prepare (3) net 3 1210d 1226d 0/26 auto-closed as invalid on 2021/02/06 14:09

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

write to 0xffff88808df1e1ce of 2 bytes by task 1195 on cpu 0:
 inet_bind_hash net/ipv4/inet_hashtables.c:95 [inline]
 __inet_hash_connect+0x6cd/0x850 net/ipv4/inet_hashtables.c:760
 inet6_hash_connect+0x77/0x80 net/ipv6/inet6_hashtables.c:329
 tcp_v6_connect+0xabd/0xd00 net/ipv6/tcp_ipv6.c:311
 __inet_stream_connect+0x5c6/0x6b0 net/ipv4/af_inet.c:661
 tcp_sendmsg_fastopen net/ipv4/tcp.c:1173 [inline]
 tcp_sendmsg_locked+0x20ff/0x2200 net/ipv4/tcp.c:1215
 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1442
 inet6_sendmsg+0x5f/0x80 net/ipv6/af_inet6.c:638
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg net/socket.c:671 [inline]
 __sys_sendto+0x2ae/0x380 net/socket.c:1992
 __do_sys_sendto net/socket.c:2004 [inline]
 __se_sys_sendto net/socket.c:2000 [inline]
 __x64_sys_sendto+0x74/0x90 net/socket.c:2000
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88808df1e1ce of 2 bytes by task 1211 on cpu 1:
 inet_send_prepare+0x21/0x210 net/ipv4/af_inet.c:802
 inet6_sendmsg+0x29/0x80 net/ipv6/af_inet6.c:635
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg net/socket.c:671 [inline]
 __sys_sendto+0x2ae/0x380 net/socket.c:1992
 __do_sys_sendto net/socket.c:2004 [inline]
 __se_sys_sendto net/socket.c:2000 [inline]
 __x64_sys_sendto+0x74/0x90 net/socket.c:2000
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1211 Comm: syz-executor.4 Not tainted 5.9.0-rc8-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/10/08 23:55 upstream 3d006ee42dde 92390980 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.