syzbot


KCSAN: data-race in __sock_set_timestamps / pfkey_recvmsg (2)

Status: auto-closed as invalid on 2022/01/28 23:24
Subsystems: net
[Documentation on labels]
First crash: 852d, last: 852d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __sock_set_timestamps / pfkey_recvmsg net 1 1239d 1230d 0/26 auto-closed as invalid on 2021/01/06 15:05

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __sock_set_timestamps / pfkey_recvmsg

write to 0xffff88814ac9c860 of 8 bytes by task 22345 on cpu 1:
 __sock_set_timestamps+0x2e/0x150
 sock_set_timestamp+0x86/0x90
 sock_setsockopt+0xf35/0x1fb0 net/core/sock.c:1180
 __sys_setsockopt+0x239/0x2a0 net/socket.c:2172
 __do_sys_setsockopt net/socket.c:2187 [inline]
 __se_sys_setsockopt net/socket.c:2184 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2184
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88814ac9c860 of 8 bytes by task 22344 on cpu 0:
 sock_recv_ts_and_drops include/net/sock.h:2613 [inline]
 pfkey_recvmsg+0x1ae/0x380 net/key/af_key.c:3714
 ____sys_recvmsg+0x16c/0x320
 ___sys_recvmsg net/socket.c:2670 [inline]
 do_recvmmsg+0x3f5/0xae0 net/socket.c:2764
 __sys_recvmmsg net/socket.c:2845 [inline]
 __do_sys_recvmmsg net/socket.c:2866 [inline]
 __se_sys_recvmmsg net/socket.c:2859 [inline]
 __x64_sys_recvmmsg+0xf5/0x160 net/socket.c:2859
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000100 -> 0x0000000000000980

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 22344 Comm: syz-executor.3 Not tainted 5.16.0-rc6-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/12/24 23:16 upstream 7a29b11da965 6caa12e4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __sock_set_timestamps / pfkey_recvmsg
* Struck through repros no longer work on HEAD.