syzbot


KCSAN: data-race in inet_shutdown / sk_stream_wait_memory

Status: auto-closed as invalid on 2020/02/09 04:17
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 1093d, last: 1093d
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) 1 600d 600d 0/24 auto-closed as invalid on 2021/05/12 16:03
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (6) 2 292d 318d 0/24 auto-closed as invalid on 2022/03/15 20:06
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (3) 1 807d 807d 0/24 auto-closed as invalid on 2020/10/17 16:12
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (2) 1 936d 936d 0/24 auto-closed as invalid on 2020/06/18 13:43
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory (4) 2 648d 667d 0/24 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):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2019/12/01 04:14 https://github.com/google/ktsan.git kcsan ef798c30ba4e a76bf83f .config log report
* Struck through repros no longer work on HEAD.