syzbot


KCSAN: data-race in __netlink_dump_start / netlink_recvmsg (4)

Status: auto-obsoleted due to no activity on 2022/10/15 01:07
Subsystems: net
[Documentation on labels]
First crash: 594d, last: 594d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __netlink_dump_start / netlink_recvmsg (5) net 2 383d 354d 22/26 fixed on 2023/07/01 16:05
upstream KCSAN: data-race in __netlink_dump_start / netlink_recvmsg net 1 1397d 1397d 0/26 auto-closed as invalid on 2020/08/03 12:45
upstream KCSAN: data-race in __netlink_dump_start / netlink_recvmsg (2) net 6 725d 810d 0/26 auto-closed as invalid on 2022/06/06 15:00
upstream KCSAN: data-race in __netlink_dump_start / netlink_recvmsg (3) net 1 633d 633d 0/26 auto-closed as invalid on 2022/09/06 16:34

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

write to 0xffff88813c610b49 of 1 bytes by task 5968 on cpu 1:
 __netlink_dump_start+0x3b2/0x4e0 net/netlink/af_netlink.c:2375
 netlink_dump_start include/linux/netlink.h:245 [inline]
 rtnetlink_rcv_msg+0x719/0x8d0 net/core/rtnetlink.c:6046
 netlink_rcv_skb+0x13e/0x240 net/netlink/af_netlink.c:2501
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:6108
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x58a/0x660 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x666/0x760 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 sock_write_iter+0x1b7/0x220 net/socket.c:1108
 call_write_iter include/linux/fs.h:2187 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x468/0x760 fs/read_write.c:578
 ksys_write+0xe8/0x1a0 fs/read_write.c:631
 __do_sys_write fs/read_write.c:643 [inline]
 __se_sys_write fs/read_write.c:640 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:640
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88813c610b49 of 1 bytes by task 5975 on cpu 0:
 netlink_recvmsg+0x3bf/0x740 net/netlink/af_netlink.c:2000
 ____sys_recvmsg+0x162/0x2f0
 ___sys_recvmsg net/socket.c:2743 [inline]
 do_recvmmsg+0x2f1/0x710 net/socket.c:2837
 __sys_recvmmsg net/socket.c:2916 [inline]
 __do_sys_recvmmsg net/socket.c:2939 [inline]
 __se_sys_recvmmsg net/socket.c:2932 [inline]
 __x64_sys_recvmmsg+0xde/0x160 net/socket.c:2932
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 5975 Comm: syz-executor.4 Not tainted 6.0.0-rc4-syzkaller-00284-gce888220d5c7-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/10 00:57 upstream ce888220d5c7 356d8217 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __netlink_dump_start / netlink_recvmsg
* Struck through repros no longer work on HEAD.