syzbot


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

Status: auto-closed as invalid on 2020/10/03 00:08
Subsystems: net
[Documentation on labels]
First crash: 1350d, last: 1350d
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 1281d 1246d 0/26 auto-closed as invalid on 2020/12/25 10:44
upstream KCSAN: data-race in inet_bind_hash / inet_send_prepare net 2 1580d 1583d 0/26 auto-closed as invalid on 2020/03/22 05:59
upstream KCSAN: data-race in inet_bind_hash / inet_send_prepare (4) net 7 1091d 1120d 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

write to 0xffff88807bfae2ce of 2 bytes by task 22514 on cpu 1:
 inet_bind_hash+0x1e/0xa0 net/ipv4/inet_hashtables.c:95
 inet_csk_get_port+0x962/0xa30 net/ipv4/inet_connection_sock.c:401
 __inet_bind+0x3eb/0x620 net/ipv4/af_inet.c:528
 inet_bind+0xb0/0xd0 net/ipv4/af_inet.c:457
 __sys_bind+0x1fd/0x2a0 net/socket.c:1656
 __do_sys_bind net/socket.c:1667 [inline]
 __se_sys_bind net/socket.c:1665 [inline]
 __x64_sys_bind+0x3d/0x50 net/socket.c:1665
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88807bfae2ce of 2 bytes by task 22544 on cpu 0:
 inet_send_prepare+0x21/0x210 net/ipv4/af_inet.c:802
 inet_sendmsg+0x29/0x80 net/ipv4/af_inet.c:814
 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: 0 PID: 22544 Comm: syz-executor.4 Not tainted 5.9.0-rc2-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/08/29 00:03 upstream 15bc20c6af4c d5a3ae1f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.