syzbot


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

Status: auto-closed as invalid on 2020/10/17 16:12
Subsystems: net
[Documentation on labels]
First crash: 1321d, last: 1321d
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 1114d 1114d 0/26 auto-closed as invalid on 2021/05/12 16:03
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (6) net 2 807d 832d 0/26 auto-closed as invalid on 2022/03/15 20:06
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (2) net 1 1451d 1451d 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 1608d 1608d 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 1163d 1182d 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 0xffff888121e834aa of 1 bytes by task 15439 on cpu 0:
 inet_shutdown+0x146/0x200 net/ipv4/af_inet.c:887
 __sys_shutdown net/socket.c:2204 [inline]
 __do_sys_shutdown net/socket.c:2212 [inline]
 __se_sys_shutdown+0xf2/0x140 net/socket.c:2210
 __x64_sys_shutdown+0x2d/0x40 net/socket.c:2210
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888121e834aa of 1 bytes by task 15436 on cpu 1:
 sk_stream_wait_memory+0x44d/0x6e0 net/core/stream.c:145
 tcp_sendmsg_locked+0x8a5/0x2200 net/ipv4/tcp.c:1401
 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1441
 inet_sendmsg+0x5f/0x80 net/ipv4/af_inet.c:817
 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: 15436 Comm: syz-executor.5 Not tainted 5.9.0-rc4-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/09/12 16:07 upstream 729e3d091984 21d289c2 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.