syzbot


KCSAN: data-race in netlink_dump / netlink_recvmsg (2)

Status: auto-closed as invalid on 2022/03/28 21:19
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 287d, last: 287d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in netlink_dump / netlink_recvmsg (3) 4 101d 134d 0/24 auto-closed as invalid on 2022/10/01 04:32
upstream KCSAN: data-race in netlink_dump / netlink_recvmsg 2 1127d 1132d 0/24 closed as invalid on 2019/11/19 13:44

Sample crash report:
==================================================================
BUG: KCSAN: data-race in netlink_dump / netlink_recvmsg

write to 0xffff88812870eb51 of 1 bytes by task 13332 on cpu 0:
 netlink_dump+0x5fe/0x6b0 net/netlink/af_netlink.c:2305
 netlink_recvmsg+0x486/0x810 net/netlink/af_netlink.c:2002
 ____sys_recvmsg+0x16c/0x320
 ___sys_recvmsg net/socket.c:2674 [inline]
 __sys_recvmsg+0x209/0x3f0 net/socket.c:2704
 __do_sys_recvmsg net/socket.c:2714 [inline]
 __se_sys_recvmsg net/socket.c:2711 [inline]
 __x64_sys_recvmsg+0x42/0x50 net/socket.c:2711
 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 0xffff88812870eb51 of 1 bytes by task 13331 on cpu 1:
 netlink_recvmsg+0x414/0x810 net/netlink/af_netlink.c:2000
 ____sys_recvmsg+0x16c/0x320
 ___sys_recvmsg net/socket.c:2674 [inline]
 do_recvmmsg+0x3f5/0xae0 net/socket.c:2768
 __sys_recvmmsg net/socket.c:2847 [inline]
 __do_sys_recvmmsg net/socket.c:2870 [inline]
 __se_sys_recvmmsg net/socket.c:2863 [inline]
 __x64_sys_recvmmsg+0xde/0x160 net/socket.c:2863
 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: 0x01 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 13331 Comm: syz-executor.2 Not tainted 5.17.0-rc5-syzkaller-00004-g038101e6b2cd-dirty #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 2022/02/21 21:14 upstream 038101e6b2cd 6e821dbf .config log report info KCSAN: data-race in netlink_dump / netlink_recvmsg
* Struck through repros no longer work on HEAD.