syzbot


KCSAN: data-race in sock_setsockopt / udp_sendmsg

Status: auto-closed as invalid on 2020/04/10 13:08
Subsystems: net
[Documentation on labels]
First crash: 1577d, last: 1518d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in sock_setsockopt / udp_sendmsg

read to 0xffff888084f94268 of 2 bytes by task 32516 on cpu 0:
 ipcm_init_sk include/net/ip.h:92 [inline]
 udp_sendmsg+0x2f2/0x1900 net/ipv4/udp.c:1042
 inet_sendmsg+0x6d/0x90 net/ipv4/af_inet.c:807
 sock_sendmsg_nosec net/socket.c:639 [inline]
 sock_sendmsg+0x9f/0xc0 net/socket.c:659
 ____sys_sendmsg+0x212/0x4d0 net/socket.c:2330
 ___sys_sendmsg+0xb5/0x100 net/socket.c:2384
 __sys_sendmmsg+0x123/0x350 net/socket.c:2474
 __do_sys_sendmmsg net/socket.c:2503 [inline]
 __se_sys_sendmmsg net/socket.c:2500 [inline]
 __x64_sys_sendmmsg+0x64/0x80 net/socket.c:2500
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff888084f94268 of 2 bytes by task 32514 on cpu 1:
 sock_setsockopt+0x4b1/0x1850 net/core/sock.c:958
 __sys_setsockopt+0x34b/0x370 net/socket.c:2113
 __do_sys_setsockopt net/socket.c:2133 [inline]
 __se_sys_setsockopt net/socket.c:2130 [inline]
 __x64_sys_setsockopt+0x70/0x90 net/socket.c:2130
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 32514 Comm: syz-executor.5 Not tainted 5.5.0-rc1-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/01/31 13:04 https://github.com/google/ktsan.git kcsan 245a43005292 5ed23f9a .config console log report ci2-upstream-kcsan-gce
2019/12/03 16:46 https://github.com/google/ktsan.git kcsan ef798c30ba4e ab342da3 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.