syzbot


KCSAN: data-race in netlink_recvmsg / netlink_recvmsg (7)

Status: fixed on 2023/12/22 15:08
Subsystems: net
[Documentation on labels]
Fix commit: d0f95894fda7 netlink: annotate data-races around sk->sk_err
First crash: 244d, last: 244d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in netlink_recvmsg / netlink_recvmsg (6) net 2 425d 422d 22/26 fixed on 2023/06/08 14:41
upstream KCSAN: data-race in netlink_recvmsg / netlink_recvmsg (3) net 30 1015d 1172d 0/26 auto-closed as invalid on 2021/09/22 07:53
upstream KCSAN: data-race in netlink_recvmsg / netlink_recvmsg (2) net 1 1294d 1265d 0/26 auto-closed as invalid on 2020/12/25 11:25
upstream KCSAN: data-race in netlink_recvmsg / netlink_recvmsg (4) net 13 871d 971d 0/26 auto-closed as invalid on 2022/02/13 19:27
upstream KCSAN: data-race in netlink_recvmsg / netlink_recvmsg net 4 1592d 1665d 0/26 auto-closed as invalid on 2020/03/29 12:33
upstream KCSAN: data-race in netlink_recvmsg / netlink_recvmsg (5) net 12 502d 755d 22/26 fixed on 2023/02/24 13:50

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

write to 0xffff8881613bb220 of 4 bytes by task 28147 on cpu 0:
 netlink_recvmsg+0x448/0x780 net/netlink/af_netlink.c:1994
 sock_recvmsg_nosec net/socket.c:1027 [inline]
 sock_recvmsg net/socket.c:1049 [inline]
 __sys_recvfrom+0x1f4/0x2e0 net/socket.c:2229
 __do_sys_recvfrom net/socket.c:2247 [inline]
 __se_sys_recvfrom net/socket.c:2243 [inline]
 __x64_sys_recvfrom+0x78/0x90 net/socket.c:2243
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff8881613bb220 of 4 bytes by task 28146 on cpu 1:
 netlink_recvmsg+0x448/0x780 net/netlink/af_netlink.c:1994
 sock_recvmsg_nosec net/socket.c:1027 [inline]
 sock_recvmsg net/socket.c:1049 [inline]
 __sys_recvfrom+0x1f4/0x2e0 net/socket.c:2229
 __do_sys_recvfrom net/socket.c:2247 [inline]
 __se_sys_recvfrom net/socket.c:2243 [inline]
 __x64_sys_recvfrom+0x78/0x90 net/socket.c:2243
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00000000 -> 0x00000016

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 28146 Comm: syz-executor.0 Not tainted 6.6.0-rc3-syzkaller-00055-g9ed22ae6be81 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/29 06:14 upstream 9ed22ae6be81 d265efd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in netlink_recvmsg / netlink_recvmsg
* Struck through repros no longer work on HEAD.