syzbot


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

Status: fixed on 2022/03/08 16:11
Subsystems: net
[Documentation on labels]
Fix commit: 7707a4d01a64 netlink: annotate data races around nlk->bound
First crash: 1359d, last: 1152d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in netlink_insert / netlink_sendmsg (2) net 2 1780d 1831d 0/28 auto-closed as invalid on 2020/03/28 20:50
upstream KCSAN: data-race in netlink_insert / netlink_sendmsg (3) net 14 1402d 1452d 0/28 auto-closed as invalid on 2021/03/06 18:35
upstream KCSAN: data-race in netlink_insert / netlink_sendmsg net 1 1866d 1866d 0/28 closed as invalid on 2019/11/19 13:44

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

write to 0xffff88813abeab38 of 1 bytes by task 716 on cpu 0:
 netlink_insert+0x5b5/0x7f0 net/netlink/af_netlink.c:597
 netlink_autobind+0xa9/0x150 net/netlink/af_netlink.c:842
 netlink_sendmsg+0x48a/0x7d0 net/netlink/af_netlink.c:1892
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0x39a/0x510 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmsg+0x244/0x2c0 net/socket.c:2492
 __do_sys_sendmsg net/socket.c:2501 [inline]
 __se_sys_sendmsg net/socket.c:2499 [inline]
 __x64_sys_sendmsg+0x42/0x50 net/socket.c:2499
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88813abeab38 of 1 bytes by task 714 on cpu 1:
 netlink_sendmsg+0x281/0x7d0 net/netlink/af_netlink.c:1891
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 __sys_sendto+0x302/0x3e0 net/socket.c:2036
 __do_sys_sendto net/socket.c:2048 [inline]
 __se_sys_sendto net/socket.c:2044 [inline]
 __x64_sys_sendto+0x74/0x90 net/socket.c:2044
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00 -> 0x01

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

Crashes (88):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/07 12:52 upstream 5af4055fa813 62ee0987 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/10/01 21:50 upstream 24f67d82c43c cc80db95 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/10/01 03:18 upstream 4de593fb965f 1d849ab4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/09/28 16:57 upstream d33bec7b3dfa d82cb927 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/09/25 23:32 upstream 85736168463d 8cac236e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/09/25 01:41 upstream 7d42e9818258 8cac236e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/09/23 21:44 upstream f10f0481a5b5 8cac236e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/09/23 03:09 upstream cf1d2c3e7e2f 8cac236e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/09/21 20:41 upstream d9fb678414c0 169724fe .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/09/20 15:30 upstream e4e737bb5c17 3d9c9a2a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/09/15 15:46 upstream 3ca706c189db 07e953c1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/09/14 06:10 upstream 316346243be6 58d09404 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/09/11 20:39 upstream 926de8c4326c 3ce60af8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/09/09 21:59 upstream a3fa7a101dcf e2776ee4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/09/06 17:13 upstream 27151f177827 6ca60148 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/09/06 04:01 upstream a9c9a6f741cd d236a457 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/09/01 00:34 upstream b91db6a0b52e 7eb7e152 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/29 01:37 upstream 3f5ad13cb012 be2c130d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/27 11:41 upstream 77dd11439b86 b318694d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/25 09:12 upstream 6e764bcd1cf7 b599f2fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/23 19:07 upstream e22ce8eb631b b599f2fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/21 12:25 upstream fa54d366a6e4 b599f2fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/18 11:47 upstream 614cb2751d31 a2fe1cb5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/17 18:40 upstream 794c7931a242 a2fe1cb5 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/17 08:41 upstream a2824f19e606 33c26cb7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/14 09:15 upstream dfa377c35d70 2489ab88 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/13 12:22 upstream f8e6dfc64f61 3fd2ea69 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/11 20:23 upstream 761c6d7ec820 6972b106 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/11 07:43 upstream 9e723c5380c6 6972b106 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/10 18:50 upstream 9a73fa375d58 6972b106 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/08 13:10 upstream 85a90500f9a1 6972b106 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/07 16:50 upstream c9194f32bfd9 6972b106 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/07 05:09 upstream 894d6f401b21 6972b106 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/06 08:10 upstream 902e7f373fff 2f537099 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/05 08:10 upstream 251a1524293d 7f7bb950 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/08/01 23:43 upstream d4affd6b6e81 6c236867 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/07/28 04:36 upstream 7d549995d4e0 17d6ab15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/07/21 04:15 upstream 8cae8cd89f05 1b201b48 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/07/18 06:38 upstream 1d67c8d993ba f115ae98 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/07/17 01:26 upstream 0d18c12b288a f115ae98 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/07/16 02:18 upstream dd9c7df94c1b f115ae98 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/07/15 08:19 upstream 8096acd7442e b9a2f64e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/07/14 18:44 upstream 8096acd7442e 94e0b707 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/07/12 10:12 upstream e73f0f0ee754 a4869c92 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/07/09 13:44 upstream 3dbdb38e2869 281e815f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/07/07 11:49 upstream 3dbdb38e2869 4846d5c1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/07/07 04:00 upstream 3dbdb38e2869 cca78469 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/07/04 16:56 upstream 3dbdb38e2869 55aa55c2 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/07/01 17:15 upstream dbe69e433722 658ebc66 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/06/29 18:52 upstream c54b245d0118 9d2ab5df .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/05/15 11:22 upstream 25a1298726e9 93f844de .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/05/10 23:16 upstream 6efb943b8616 ca873091 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/05/06 22:09 upstream 8404c9fbc84b 06585184 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/05/02 07:38 upstream 10a3efd0fee5 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/05/01 07:36 upstream 65c61de9d090 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/04/27 02:42 upstream 9f4ad9e425a1 8ee2dea6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/04/26 11:53 upstream 9f4ad9e425a1 805b5003 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/04/25 00:36 upstream 2a1d7946fa53 17f0b706 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/04/24 16:16 upstream 8db5efb83fa9 17f0b706 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/04/20 04:24 upstream 7af08140979a 4285c989 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/04/17 23:26 upstream 194cf4825638 7e2b734b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/04/17 14:34 upstream 9cdbf6467424 7e2b734b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/04/16 08:38 upstream 7e25f40eab52 c59079a6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/03/30 09:47 upstream 1e43c377a79f 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/03/28 13:50 upstream 0f4498cef9f5 a8529b82 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/03/22 23:05 upstream 0d02ec6b3136 8092f30d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
2021/03/14 10:02 upstream 88fe49249c99 4a003785 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in netlink_insert / netlink_sendmsg
* Struck through repros no longer work on HEAD.