syzbot


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

Status: auto-closed as invalid on 2022/06/06 15:00
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 299d, last: 214d
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 886d 886d 0/24 auto-closed as invalid on 2020/08/03 12:45
upstream KCSAN: data-race in __netlink_dump_start / netlink_recvmsg (4) 1 84d 84d 0/24 auto-obsoleted due to no activity on 2022/10/15 01:07
upstream KCSAN: data-race in __netlink_dump_start / netlink_recvmsg (3) 1 122d 122d 0/24 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 0xffff8881625b2351 of 1 bytes by task 11647 on cpu 1:
 __netlink_dump_start+0x3b2/0x4e0 net/netlink/af_netlink.c:2377
 netlink_dump_start include/linux/netlink.h:245 [inline]
 rtnetlink_rcv_msg+0x6f4/0x7e0 net/core/rtnetlink.c:5956
 netlink_rcv_skb+0x13e/0x240 net/netlink/af_netlink.c:2503
 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:6011
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x58a/0x660 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x661/0x750 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg net/socket.c:725 [inline]
 sock_write_iter+0x1a3/0x200 net/socket.c:1061
 call_write_iter include/linux/fs.h:2050 [inline]
 new_sync_write fs/read_write.c:504 [inline]
 vfs_write+0x71c/0x890 fs/read_write.c:591
 ksys_write+0xe8/0x1a0 fs/read_write.c:644
 __do_sys_write fs/read_write.c:656 [inline]
 __se_sys_write fs/read_write.c:653 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:653
 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+0x44/0xae

read to 0xffff8881625b2351 of 1 bytes by task 11655 on cpu 0:
 netlink_recvmsg+0x406/0x790 net/netlink/af_netlink.c:2002
 ____sys_recvmsg+0x162/0x2f0
 ___sys_recvmsg net/socket.c:2674 [inline]
 do_recvmmsg+0x534/0xa20 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+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 11655 Comm: syz-executor.3 Not tainted 5.18.0-rc5-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (6):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/02 14:58 upstream 672c0c517342 2df221f6 .config log report info KCSAN: data-race in __netlink_dump_start / netlink_recvmsg
ci2-upstream-kcsan-gce 2022/04/19 10:03 upstream b2d229d4ddb1 8bcc32a6 .config log report info KCSAN: data-race in __netlink_dump_start / netlink_recvmsg
ci2-upstream-kcsan-gce 2022/03/27 02:58 upstream bddac7c1e02b 89bc8608 .config log report info KCSAN: data-race in __netlink_dump_start / netlink_recvmsg
ci2-upstream-kcsan-gce 2022/02/23 20:09 upstream 5c1ee569660d 6e821dbf .config log report info KCSAN: data-race in __netlink_dump_start / netlink_recvmsg
ci2-upstream-kcsan-gce 2022/02/09 11:29 upstream e6251ab4551f 0b33604d .config log report info KCSAN: data-race in __netlink_dump_start / netlink_recvmsg
ci2-upstream-kcsan-gce 2022/02/06 12:30 upstream 90c9e950c0de a7dab638 .config log report info KCSAN: data-race in __netlink_dump_start / netlink_recvmsg
* Struck through repros no longer work on HEAD.