syzbot


KCSAN: data-race in inet_shutdown / sk_stream_wait_memory

Status: auto-closed as invalid on 2020/02/09 04:17
Subsystems: net
[Documentation on labels]
First crash: 1607d, last: 1607d
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 1113d 1113d 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 806d 831d 0/26 auto-closed as invalid on 2022/03/15 20:06
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (3) net 1 1320d 1320d 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 1449d 1449d 0/26 auto-closed as invalid on 2020/06/18 13:43
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (4) net 2 1162d 1181d 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 0xffff88812157cb6a of 1 bytes by task 8157 on cpu 0:
 inet_shutdown+0x105/0x270 net/ipv4/af_inet.c:877
 __sys_shutdown+0xa2/0x130 net/socket.c:2160
 __do_sys_shutdown net/socket.c:2168 [inline]
 __se_sys_shutdown net/socket.c:2166 [inline]
 __x64_sys_shutdown+0x3a/0x50 net/socket.c:2166
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88812157cb6a of 1 bytes by task 8149 on cpu 1:
 sk_stream_wait_memory+0x480/0x850 net/core/stream.c:145
 tcp_sendmsg_locked+0x962/0x1fb0 net/ipv4/tcp.c:1395
 tcp_sendmsg+0x39/0x60 net/ipv4/tcp.c:1436
 inet_sendmsg+0x6d/0x90 net/ipv4/af_inet.c:807
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg+0x9f/0xc0 net/socket.c:657
 __sys_sendto+0x21f/0x320 net/socket.c:1952
 __do_sys_sendto net/socket.c:1964 [inline]
 __se_sys_sendto net/socket.c:1960 [inline]
 __x64_sys_sendto+0x89/0xb0 net/socket.c:1960
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8149 Comm: syz-executor.4 Not tainted 5.4.0-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
2019/12/01 04:14 https://github.com/google/ktsan.git kcsan ef798c30ba4e a76bf83f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.