syzbot


KCSAN: data-race in packet_recvmsg / sock_gettstamp

Status: auto-closed as invalid on 2020/09/12 09:38
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 778d, last: 778d

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

write to 0xffff888098468060 of 8 bytes by task 31197 on cpu 0:
 instrument_write include/linux/instrumented.h:42 [inline]
 __set_bit include/asm-generic/bitops/instrumented-non-atomic.h:27 [inline]
 sock_set_flag include/net/sock.h:876 [inline]
 sock_enable_timestamp net/core/sock.c:3160 [inline]
 sock_gettstamp+0x6d/0x1e0 net/core/sock.c:3122
 sock_ioctl+0x3c5/0x5b0 net/socket.c:1194
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:739
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:739
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888098468060 of 8 bytes by task 31186 on cpu 1:
 sock_recv_ts_and_drops include/net/sock.h:2455 [inline]
 packet_recvmsg+0x3e7/0xa00 net/packet/af_packet.c:3391
 ____sys_recvmsg+0x15a/0x2e0 include/linux/uio.h:235
 ___sys_recvmsg net/socket.c:2624 [inline]
 do_recvmmsg+0x35c/0xa30 net/socket.c:2722
 __sys_recvmmsg net/socket.c:2801 [inline]
 __do_sys_recvmmsg net/socket.c:2824 [inline]
 __se_sys_recvmmsg net/socket.c:2817 [inline]
 __x64_sys_recvmmsg+0xcc/0x150 net/socket.c:2817
 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: 1 PID: 31186 Comm: syz-executor.3 Not tainted 5.8.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/08/08 09:34 upstream 30185b69a2d5 ff51e522 .config log report
* Struck through repros no longer work on HEAD.