syzbot


KCSAN: data-race in sk_stream_wait_connect / tcp_disconnect

Status: auto-closed as invalid on 2021/01/17 13:57
Subsystems: net
[Documentation on labels]
First crash: 1230d, last: 1227d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in sk_stream_wait_connect / tcp_disconnect (2) net 1 382d 351d 22/26 fixed on 2023/07/01 16:05

Sample crash report:
==================================================================
BUG: KCSAN: data-race in sk_stream_wait_connect / tcp_disconnect

write to 0xffff88810e332e70 of 4 bytes by task 14293 on cpu 1:
 tcp_disconnect+0x15a/0xd40 net/ipv4/tcp.c:2653
 __inet_stream_connect+0x16e/0x690 net/ipv4/af_inet.c:630
 inet_stream_connect+0x44/0x70 net/ipv4/af_inet.c:725
 __sys_connect_file net/socket.c:1852 [inline]
 __sys_connect+0x245/0x280 net/socket.c:1869
 __do_sys_connect net/socket.c:1879 [inline]
 __se_sys_connect net/socket.c:1876 [inline]
 __x64_sys_connect+0x3d/0x50 net/socket.c:1876
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810e332e70 of 4 bytes by task 14282 on cpu 0:
 sk_stream_wait_connect+0x1a6/0x370 net/core/stream.c:75
 tcp_sendmsg_locked+0x291/0x2130 net/ipv4/tcp.c:1235
 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1444
 inet6_sendmsg+0x5f/0x80 net/ipv6/af_inet6.c:638
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg net/socket.c:671 [inline]
 ____sys_sendmsg+0x352/0x4c0 net/socket.c:2353
 ___sys_sendmsg net/socket.c:2407 [inline]
 __sys_sendmmsg+0x335/0x4b0 net/socket.c:2497
 __do_sys_sendmmsg net/socket.c:2526 [inline]
 __se_sys_sendmmsg net/socket.c:2523 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2523
 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: 14282 Comm: syz-executor.1 Not tainted 5.10.0-rc7-syzkaller #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
2020/12/13 13:55 upstream 6bff9bb8a292 bca53db9 .config console log report info ci2-upstream-kcsan-gce
2020/12/10 08:19 upstream ca4bbdaf1716 c090b4da .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.