syzbot


KCSAN: data-race in packet_sendmsg / packet_setsockopt (2)

Status: auto-closed as invalid on 2021/05/17 10:01
Subsystems: net
[Documentation on labels]
First crash: 1113d, last: 1113d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in packet_sendmsg / packet_setsockopt net 2 1175d 1208d 0/26 auto-closed as invalid on 2021/03/04 08:19

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

write to 0xffff88803e164530 of 8 bytes by task 16732 on cpu 1:
 packet_setsockopt+0xfde/0x23e0 net/packet/af_packet.c:3941
 __sys_setsockopt+0x2e8/0x460 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+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88803e164530 of 8 bytes by task 16733 on cpu 0:
 packet_snd net/packet/af_packet.c:3006 [inline]
 packet_sendmsg+0x2d29/0x3460 net/packet/af_packet.c:3031
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg net/socket.c:674 [inline]
 ____sys_sendmsg+0x360/0x4d0 net/socket.c:2350
 ___sys_sendmsg net/socket.c:2404 [inline]
 __sys_sendmmsg+0x315/0x4b0 net/socket.c:2490
 __do_sys_sendmmsg net/socket.c:2519 [inline]
 __se_sys_sendmmsg net/socket.c:2516 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2516
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 16733 Comm: syz-executor.0 Tainted: G        W         5.12.0-rc5-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/03/31 08:26 upstream 5e46d1b78a03 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in packet_sendmsg / packet_setsockopt
* Struck through repros no longer work on HEAD.