syzbot


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

Status: auto-closed as invalid on 2020/12/25 10:44
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+0b0be8b71b9b2c1f9db7@syzkaller.appspotmail.com
First crash: 1277d, last: 1266d
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 (2) net 1 1336d 1336d 0/26 auto-closed as invalid on 2020/10/03 00:08
upstream KCSAN: data-race in inet_bind_hash / inet_send_prepare net 2 1566d 1569d 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 1077d 1106d 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 0xffff888033a242ce of 2 bytes by task 28655 on cpu 0:
 inet_bind_hash+0x1e/0xa0 net/ipv4/inet_hashtables.c:95
 inet_csk_get_port+0x981/0xa50 net/ipv4/inet_connection_sock.c:401
 __inet_bind+0x3fd/0x5f0 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 0xffff888033a242ce of 2 bytes by task 28657 on cpu 1:
 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: 1 PID: 28657 Comm: syz-executor.2 Not tainted 5.10.0-rc2-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/11/06 20:52 upstream 521b619acdc8 cba33199 .config console log report info ci2-upstream-kcsan-gce
2020/10/27 16:06 upstream 4525c8781ec0 94942294 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.