syzbot


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

Status: auto-closed as invalid on 2021/03/25 00:19
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 608d, last: 589d
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 540d 540d 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 233d 259d 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 747d 747d 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 877d 877d 0/24 auto-closed as invalid on 2020/06/18 13:43
upstream KCSAN: data-race in inet_shutdown / sk_stream_wait_memory 1 1034d 1034d 0/24 auto-closed as invalid on 2020/02/09 04:17

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

write to 0xffff888032dcf7ea of 1 bytes by task 14280 on cpu 1:
 inet_shutdown+0x148/0x200 net/ipv4/af_inet.c:887
 __sys_shutdown_sock net/socket.c:2184 [inline]
 __sys_shutdown net/socket.c:2196 [inline]
 __do_sys_shutdown net/socket.c:2204 [inline]
 __se_sys_shutdown+0xf6/0x140 net/socket.c:2202
 __x64_sys_shutdown+0x2d/0x40 net/socket.c:2202
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888032dcf7ea of 1 bytes by task 14278 on cpu 0:
 sk_stream_wait_memory+0x46d/0x700 net/core/stream.c:145
 tcp_sendmsg_locked+0x975/0x21e0 net/ipv4/tcp.c:1419
 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1459
 inet_sendmsg+0x5f/0x80 net/ipv4/af_inet.c:817
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg net/socket.c:672 [inline]
 __sys_sendto+0x2a8/0x370 net/socket.c:1975
 __do_sys_sendto net/socket.c:1987 [inline]
 __se_sys_sendto net/socket.c:1983 [inline]
 __x64_sys_sendto+0x74/0x90 net/socket.c:1983
 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: 0 PID: 14278 Comm: syz-executor.5 Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/02/17 20:42 upstream f40ddce88593 14052202 .config log report info KCSAN: data-race in inet_shutdown / sk_stream_wait_memory
ci2-upstream-kcsan-gce 2021/01/30 00:56 upstream bec4c2968fce fc9fd31e .config log report info KCSAN: data-race in inet_shutdown / sk_stream_wait_memory
* Struck through repros no longer work on HEAD.