syzbot


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

Status: auto-closed as invalid on 2021/06/19 04:19
Subsystems: net
[Documentation on labels]
First crash: 1106d, last: 1077d
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 1267d 1232d 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 1337d 1337d 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

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

write to 0xffff88810786a1ce of 2 bytes by task 11617 on cpu 0:
 inet_bind_hash+0x1e/0xa0 net/ipv4/inet_hashtables.c:98
 inet_csk_get_port+0x7f0/0x890 net/ipv4/inet_connection_sock.c:401
 __inet_bind+0x3c9/0x560 net/ipv4/af_inet.c:531
 inet_bind+0x8c/0xa0 net/ipv4/af_inet.c:459
 __sys_bind+0x200/0x290 net/socket.c:1637
 __do_sys_bind net/socket.c:1648 [inline]
 __se_sys_bind net/socket.c:1646 [inline]
 __x64_sys_bind+0x3d/0x50 net/socket.c:1646
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88810786a1ce of 2 bytes by task 11618 on cpu 1:
 inet_send_prepare+0x21/0x210 net/ipv4/af_inet.c:806
 inet_sendmsg+0x29/0x80 net/ipv4/af_inet.c:818
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg net/socket.c:674 [inline]
 __sys_sendto+0x2a8/0x370 net/socket.c:1977
 __do_sys_sendto net/socket.c:1989 [inline]
 __se_sys_sendto net/socket.c:1985 [inline]
 __x64_sys_sendto+0x74/0x90 net/socket.c:1985
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 11618 Comm: syz-executor.2 Not tainted 5.13.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/15 04:15 upstream bd3c9cdb21a2 8bdd5343 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in inet_bind_hash / inet_send_prepare
2021/05/12 09:12 upstream 88b06399c9c7 86294427 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in inet_bind_hash / inet_send_prepare
2021/05/10 22:45 upstream 6efb943b8616 ca873091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in inet_bind_hash / inet_send_prepare
2021/05/07 23:01 upstream 1ad77a05cfae bc5434be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in inet_bind_hash / inet_send_prepare
2021/05/04 04:04 upstream 5e321ded302d 09efdd63 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in inet_bind_hash / inet_send_prepare
2021/05/02 20:08 upstream 17ae69aba89d 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in inet_bind_hash / inet_send_prepare
2021/04/16 07:41 upstream 7e25f40eab52 c59079a6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in inet_bind_hash / inet_send_prepare
* Struck through repros no longer work on HEAD.