syzbot


KCSAN: data-race in packet_recvmsg / packet_setsockopt

Status: auto-closed as invalid on 2021/06/25 19:56
Subsystems: net
[Documentation on labels]
First crash: 1071d, last: 1071d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in packet_recvmsg / packet_setsockopt

write to 0xffff888108cdb4b4 of 1 bytes by task 21480 on cpu 1:
 packet_setsockopt+0xf16/0x23e0 net/packet/af_packet.c:3847
 __sys_setsockopt+0x18f/0x200 net/socket.c:2117
 __do_sys_setsockopt net/socket.c:2128 [inline]
 __se_sys_setsockopt net/socket.c:2125 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2125
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888108cdb4b4 of 1 bytes by task 21481 on cpu 0:
 packet_recvmsg+0x6cb/0xa10 net/packet/af_packet.c:3449
 ____sys_recvmsg+0x15d/0x310 include/linux/uio.h:244
 ___sys_recvmsg net/socket.c:2611 [inline]
 do_recvmmsg+0x34c/0x9e0 net/socket.c:2705
 __sys_recvmmsg net/socket.c:2784 [inline]
 __do_sys_recvmmsg net/socket.c:2807 [inline]
 __se_sys_recvmmsg net/socket.c:2800 [inline]
 __x64_sys_recvmmsg+0xcf/0x150 net/socket.c:2800
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 21481 Comm: syz-executor.1 Not tainted 5.13.0-rc2-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
2021/05/21 19:50 upstream 79a106fc6585 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in packet_recvmsg / packet_setsockopt
* Struck through repros no longer work on HEAD.