syzbot


KCSAN: data-race in inet_bind_hash / inet_send_prepare

Status: auto-closed as invalid on 2020/03/22 05:59
Subsystems: net
[Documentation on labels]
First crash: 1567d, last: 1565d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in inet_bind_hash / inet_send_prepare (3) net 2 1265d 1230d 0/26 auto-closed as invalid on 2020/12/25 10:44
upstream KCSAN: data-race in inet_bind_hash / inet_send_prepare (2) net 1 1335d 1335d 0/26 auto-closed as invalid on 2020/10/03 00:08
upstream KCSAN: data-race in inet_bind_hash / inet_send_prepare (4) net 7 1076d 1105d 0/26 auto-closed as invalid on 2021/06/19 04:19

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

read to 0xffff888120a149ce of 2 bytes by task 25402 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_sendmsg+0x49d/0x4d0 net/socket.c:2330
 ___sys_sendmsg+0xb5/0x100 net/socket.c:2384
 __sys_sendmsg+0xa0/0x160 net/socket.c:2417
 __do_sys_sendmsg net/socket.c:2426 [inline]
 __se_sys_sendmsg net/socket.c:2424 [inline]
 __x64_sys_sendmsg+0x51/0x70 net/socket.c:2424
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff888120a149ce of 2 bytes by task 25393 on cpu 1:
 inet_bind_hash+0x49/0xf0 net/ipv4/inet_hashtables.c:95
 inet_csk_get_port+0xd6f/0x12d0 net/ipv4/inet_connection_sock.c:375
 inet_autobind+0x70/0xf0 net/ipv4/af_inet.c:182
 inet_send_prepare net/ipv4/af_inet.c:793 [inline]
 inet_send_prepare+0x1d1/0x200 net/ipv4/af_inet.c:787
 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_sendmsg+0x49d/0x4d0 net/socket.c:2330
 ___sys_sendmsg+0xb5/0x100 net/socket.c:2384
 __sys_sendmsg+0xa0/0x160 net/socket.c:2417
 __do_sys_sendmsg net/socket.c:2426 [inline]
 __se_sys_sendmsg net/socket.c:2424 [inline]
 __x64_sys_sendmsg+0x51/0x70 net/socket.c:2424
 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: 25393 Comm: syz-executor.2 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/12 05:55 https://github.com/google/ktsan.git kcsan 245a43005292 4c04afaa .config console log report ci2-upstream-kcsan-gce
2020/01/09 14:14 https://github.com/google/ktsan.git kcsan 245a43005292 ddc3e859 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.