syzbot


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

Status: auto-closed as invalid on 2022/09/06 16:34
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 125d, last: 125d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __netlink_dump_start / netlink_recvmsg 1 890d 890d 0/24 auto-closed as invalid on 2020/08/03 12:45
upstream KCSAN: data-race in __netlink_dump_start / netlink_recvmsg (2) 6 217d 303d 0/24 auto-closed as invalid on 2022/06/06 15:00
upstream KCSAN: data-race in __netlink_dump_start / netlink_recvmsg (4) 1 87d 87d 0/24 auto-obsoleted due to no activity on 2022/10/15 01:07

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

write to 0xffff88814ebb1b49 of 1 bytes by task 15379 on cpu 0:
 __netlink_dump_start+0x3b2/0x4e0 net/netlink/af_netlink.c:2375
 netlink_dump_start include/linux/netlink.h:245 [inline]
 inet_diag_handler_cmd+0xf7/0x140 net/ipv4/inet_diag.c:1342
 sock_diag_rcv_msg+0x12b/0x250
 netlink_rcv_skb+0x13e/0x240 net/netlink/af_netlink.c:2501
 sock_diag_rcv+0x24/0x40 net/core/sock_diag.c:277
 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+0x1a3/0x200 net/socket.c:1108
 do_iter_readv_writev+0x27b/0x300
 do_iter_write+0x16f/0x5c0 fs/read_write.c:868
 vfs_writev fs/read_write.c:941 [inline]
 do_writev+0x256/0x4b0 fs/read_write.c:984
 __do_sys_writev fs/read_write.c:1057 [inline]
 __se_sys_writev fs/read_write.c:1054 [inline]
 __x64_sys_writev+0x41/0x50 fs/read_write.c:1054
 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 0xffff88814ebb1b49 of 1 bytes by task 15370 on cpu 1:
 netlink_recvmsg+0x3bf/0x740 net/netlink/af_netlink.c:2000
 ____sys_recvmsg+0x162/0x2f0
 ___sys_recvmsg net/socket.c:2749 [inline]
 do_recvmmsg+0x545/0xa40 net/socket.c:2843
 __sys_recvmmsg net/socket.c:2922 [inline]
 __do_sys_recvmmsg net/socket.c:2945 [inline]
 __se_sys_recvmmsg net/socket.c:2938 [inline]
 __x64_sys_recvmmsg+0xde/0x160 net/socket.c:2938
 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: 1 PID: 15370 Comm: syz-executor.3 Not tainted 5.19.0-syzkaller-00428-g9de1f9c8ca51-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/08/02 16:29 upstream 9de1f9c8ca51 fef302b1 .config log report info KCSAN: data-race in __netlink_dump_start / netlink_recvmsg
* Struck through repros no longer work on HEAD.