syzbot


KCSAN: data-race in __inet_hash_connect / inet_send_prepare

Status: auto-closed as invalid on 2020/03/17 07:16
Subsystems: net
[Documentation on labels]
First crash: 1645d, last: 1609d
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 (4) net 7 1085d 1088d 20/26 fixed on 2021/11/10 00:50
upstream KCSAN: data-race in __inet_hash_connect / inet_send_prepare (2) net 1 1333d 1333d 0/26 auto-closed as invalid on 2020/11/12 23:57
upstream KCSAN: data-race in __inet_hash_connect / inet_send_prepare (3) net 3 1247d 1264d 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 0xffff8880834cc1ce of 2 bytes by task 1739 on cpu 1:
 inet_bind_hash net/ipv4/inet_hashtables.c:95 [inline]
 __inet_hash_connect+0x4c7/0x8b0 net/ipv4/inet_hashtables.c:718
 inet_hash_connect+0x5c/0xc0 net/ipv4/inet_hashtables.c:742
 tcp_v4_connect+0x693/0xc60 net/ipv4/tcp_ipv4.c:274
 __inet_stream_connect+0x1c6/0x850 net/ipv4/af_inet.c:655
 tcp_sendmsg_fastopen net/ipv4/tcp.c:1166 [inline]
 tcp_sendmsg_locked+0x1951/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

read to 0xffff8880834cc1ce of 2 bytes by task 1740 on cpu 0:
 inet_send_prepare+0x4a/0x200 net/ipv4/af_inet.c:792
 inet_sendmsg+0x37/0x90 net/ipv4/af_inet.c:804
 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: 0 PID: 1740 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 (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/07 07:09 https://github.com/google/ktsan.git kcsan 245a43005292 53430d97 .config console log report ci2-upstream-kcsan-gce
2019/12/02 06:19 https://github.com/google/ktsan.git kcsan ef798c30ba4e f879db37 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.