syzbot


KCSAN: data-race in netlink_insert / netlink_sendmsg (2)

Status: auto-closed as invalid on 2020/03/28 20:50
Subsystems: net
[Documentation on labels]
First crash: 1700d, last: 1649d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in netlink_insert / netlink_sendmsg (3) net 14 1271d 1321d 0/27 auto-closed as invalid on 2021/03/06 18:35
upstream KCSAN: data-race in netlink_insert / netlink_sendmsg (4) net 88 1021d 1103d 20/27 fixed on 2022/03/08 16:11
upstream KCSAN: data-race in netlink_insert / netlink_sendmsg net 1 1735d 1735d 0/27 closed as invalid on 2019/11/19 13:44

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

read to 0xffff8880a0447340 of 1 bytes by task 32386 on cpu 0:
 netlink_sendmsg+0x28f/0x8b0 net/netlink/af_netlink.c:1879
 sock_sendmsg_nosec net/socket.c:639 [inline]
 sock_sendmsg+0x9f/0xc0 net/socket.c:659
 ____sys_sendmsg+0x212/0x4d0 net/socket.c:2330
 ___sys_sendmsg+0xb5/0x100 net/socket.c:2384
 __sys_sendmmsg+0x123/0x350 net/socket.c:2474
 __do_sys_sendmmsg net/socket.c:2503 [inline]
 __se_sys_sendmmsg net/socket.c:2500 [inline]
 __x64_sys_sendmmsg+0x64/0x80 net/socket.c:2500
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8880a0447340 of 1 bytes by task 32336 on cpu 1:
 netlink_insert+0x4b7/0xa00 net/netlink/af_netlink.c:586
 netlink_autobind.isra.0+0xf8/0x170 net/netlink/af_netlink.c:831
 netlink_bind+0x2e1/0x690 net/netlink/af_netlink.c:1034
 __sys_bind+0x1df/0x220 net/socket.c:1649
 __do_sys_bind net/socket.c:1660 [inline]
 __se_sys_bind net/socket.c:1658 [inline]
 __x64_sys_bind+0x4c/0x60 net/socket.c:1658
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 32336 Comm: syz-executor.2 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/18 20:46 https://github.com/google/ktsan.git kcsan 245a43005292 3de7aabb .config console log report ci2-upstream-kcsan-gce
2019/11/29 00:03 https://github.com/google/ktsan.git kcsan ef798c30ba4e 76357d6f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.