syzbot


KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (2)

Status: auto-closed as invalid on 2020/06/18 13:43
Subsystems: net
[Documentation on labels]
First crash: 1672d, last: 1672d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (5) net 1 1336d 1336d 0/28 auto-closed as invalid on 2021/05/12 16:03
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (6) net 2 1029d 1054d 0/28 auto-closed as invalid on 2022/03/15 20:06
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (3) net 1 1543d 1543d 0/28 auto-closed as invalid on 2020/10/17 16:12
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory net 1 1829d 1829d 0/28 auto-closed as invalid on 2020/02/09 04:17
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (4) net 2 1385d 1403d 0/28 auto-closed as invalid on 2021/03/25 00:19

Sample crash report:
==================================================================
BUG: KCSAN: data-race in inet_shutdown / sk_stream_wait_memory

write to 0xffff8881238682ea of 1 bytes by task 2440 on cpu 0:
 inet_shutdown+0xf3/0x240 net/ipv4/af_inet.c:877
 __sys_shutdown+0x91/0x110 net/socket.c:2208
 __do_sys_shutdown net/socket.c:2216 [inline]
 __se_sys_shutdown net/socket.c:2214 [inline]
 __x64_sys_shutdown+0x35/0x50 net/socket.c:2214
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8881238682ea of 1 bytes by task 2433 on cpu 1:
 sk_stream_wait_memory+0x480/0x850 net/core/stream.c:145
 tcp_sendmsg_locked+0x98c/0x20f0 net/ipv4/tcp.c:1393
 tcp_sendmsg+0x35/0x50 net/ipv4/tcp.c:1433
 inet_sendmsg+0x69/0x90 net/ipv4/af_inet.c:807
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0x98/0xc0 net/socket.c:672
 __sys_sendto+0x1e2/0x2c0 net/socket.c:2000
 __do_sys_sendto net/socket.c:2012 [inline]
 __se_sys_sendto net/socket.c:2008 [inline]
 __x64_sys_sendto+0x7e/0xa0 net/socket.c:2008
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2433 Comm: syz-executor.3 Not tainted 5.7.0-rc1-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/05/06 07:03 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 35b8eb30 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.