syzbot


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

Status: auto-closed as invalid on 2022/03/15 20:06
Subsystems: net
[Documentation on labels]
First crash: 826d, last: 801d
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 1108d 1108d 0/26 auto-closed as invalid on 2021/05/12 16:03
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (3) net 1 1315d 1315d 0/26 auto-closed as invalid on 2020/10/17 16:12
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (2) net 1 1444d 1444d 0/26 auto-closed as invalid on 2020/06/18 13:43
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory net 1 1601d 1601d 0/26 auto-closed as invalid on 2020/02/09 04:17
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (4) net 2 1157d 1176d 0/26 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 0xffff88810715582a of 1 bytes by task 30679 on cpu 1:
 inet_shutdown+0x148/0x200 net/ipv4/af_inet.c:889
 __sys_shutdown_sock net/socket.c:2252 [inline]
 __sys_shutdown net/socket.c:2264 [inline]
 __do_sys_shutdown net/socket.c:2272 [inline]
 __se_sys_shutdown+0xf6/0x140 net/socket.c:2270
 __x64_sys_shutdown+0x2d/0x40 net/socket.c:2270
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88810715582a of 1 bytes by task 30674 on cpu 0:
 sk_stream_wait_memory+0x46d/0x700 net/core/stream.c:145
 tcp_sendmsg_locked+0xb85/0x25b0 net/ipv4/tcp.c:1406
 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1444
 inet6_sendmsg+0x5f/0x80 net/ipv6/af_inet6.c:643
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg net/socket.c:725 [inline]
 __sys_sendto+0x21e/0x2c0 net/socket.c:2040
 __do_sys_sendto net/socket.c:2052 [inline]
 __se_sys_sendto net/socket.c:2048 [inline]
 __x64_sys_sendto+0x74/0x90 net/socket.c:2048
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 30674 Comm: syz-executor.5 Not tainted 5.17.0-rc3-syzkaller-00020-g555f3d7be91a-dirty #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
2022/02/08 20:01 upstream 555f3d7be91a 0b33604d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in inet_shutdown / sk_stream_wait_memory
2022/01/14 12:48 upstream fb3b0673b7d5 b8d780ab .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in inet_shutdown / sk_stream_wait_memory
* Struck through repros no longer work on HEAD.