syzbot


KMSAN: uninit-value in tipc_nl_compat_name_table_dump (3)

Status: upstream: reported C repro on 2022/11/03 16:22
Reported-by: syzbot+e5dbaaa238680ce206ea@syzkaller.appspotmail.com
Fix commit: 1c075b192fe4 tipc: fix the msg->req tlv len check in tipc_nl_compat_name_table_dump_header
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 1368d, last: 68d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in tipc_nl_compat_name_table_dump C 51 1509d 1550d 12/24 fixed on 2019/03/06 07:43
upstream KMSAN: uninit-value in tipc_nl_compat_name_table_dump (2) C 6 1416d 1401d 13/24 fixed on 2019/04/12 08:05
upstream KMSAN: uninit-value in fib_get_nhs C 14 343d 414d 22/24 fixed on 2022/03/08 16:11
upstream KMSAN: uninit-value in strstr C 80 10d 916d 0/24 upstream: reported C repro on 2020/07/25 18:13
upstream KMSAN: kernel-infoleak in _copy_to_iter (7) btrfs ntfs3 erofs udf C 135421 now 324d 23/24 internal: reported C repro on 2022/03/09 07:32
upstream KMSAN: uninit-value in __tipc_nl_bearer_enable C 1271 1d13h 1501d 23/24 upstream: reported C repro on 2018/12/18 13:01

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in tipc_nl_compat_name_table_dump+0x841/0xea0 net/tipc/netlink_compat.c:934
 tipc_nl_compat_name_table_dump+0x841/0xea0 net/tipc/netlink_compat.c:934
 __tipc_nl_compat_dumpit+0xab2/0x1320 net/tipc/netlink_compat.c:238
 tipc_nl_compat_dumpit+0x991/0xb50 net/tipc/netlink_compat.c:321
 tipc_nl_compat_recv+0xb6e/0x1640 net/tipc/netlink_compat.c:1324
 genl_family_rcv_msg_doit net/netlink/genetlink.c:731 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:775 [inline]
 genl_rcv_msg+0x103f/0x1260 net/netlink/genetlink.c:792
 netlink_rcv_skb+0x3a5/0x6c0 net/netlink/af_netlink.c:2501
 genl_rcv+0x3c/0x50 net/netlink/genetlink.c:803
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0xf3b/0x1270 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x1288/0x1440 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0xabc/0xe90 net/socket.c:2482
 ___sys_sendmsg+0x2a1/0x3f0 net/socket.c:2536
 __sys_sendmsg net/socket.c:2565 [inline]
 __do_sys_sendmsg net/socket.c:2574 [inline]
 __se_sys_sendmsg net/socket.c:2572 [inline]
 __x64_sys_sendmsg+0x367/0x540 net/socket.c:2572
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

Uninit was created at:
 slab_post_alloc_hook mm/slab.h:732 [inline]
 slab_alloc_node mm/slub.c:3258 [inline]
 __kmalloc_node_track_caller+0x814/0x1250 mm/slub.c:4970
 kmalloc_reserve net/core/skbuff.c:362 [inline]
 __alloc_skb+0x346/0xcf0 net/core/skbuff.c:434
 alloc_skb include/linux/skbuff.h:1257 [inline]
 netlink_alloc_large_skb net/netlink/af_netlink.c:1191 [inline]
 netlink_sendmsg+0xb71/0x1440 net/netlink/af_netlink.c:1896
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0xabc/0xe90 net/socket.c:2482
 ___sys_sendmsg+0x2a1/0x3f0 net/socket.c:2536
 __sys_sendmsg net/socket.c:2565 [inline]
 __do_sys_sendmsg net/socket.c:2574 [inline]
 __se_sys_sendmsg net/socket.c:2572 [inline]
 __x64_sys_sendmsg+0x367/0x540 net/socket.c:2572
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

CPU: 1 PID: 3490 Comm: syz-executor155 Not tainted 6.0.0-rc5-syzkaller-48538-g8f4ae27df775 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
=====================================================

Crashes (65):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kmsan-gce 2022/09/18 20:04 https://github.com/google/kmsan.git master 8f4ae27df775 dd9a85ff .config strace log report syz C KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/05/15 22:37 https://github.com/google/kmsan.git master d6e2c8c7eb40 744a39e2 .config strace log report syz C KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2019/04/30 08:29 https://github.com/google/kmsan.git master 2550ba6f60b5 20f16bef .config console log report syz C
ci-upstream-kmsan-gce 2022/11/05 11:18 https://github.com/google/kmsan.git master 53d6b047b069 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/10/19 10:08 https://github.com/google/kmsan.git master 968c2729e576 b31320fc .config console log report info [disk image] [vmlinux] KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/09/22 10:24 https://github.com/google/kmsan.git master 523d2ce66d07 60af5050 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/09/18 19:04 https://github.com/google/kmsan.git master 8f4ae27df775 dd9a85ff .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/09/09 13:19 https://github.com/google/kmsan.git master 4367d178d9eb f3027468 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/08/16 19:08 https://github.com/google/kmsan.git master 1b070a5d1a2c 7a7cb304 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/07/03 11:51 https://github.com/google/kmsan.git master 97117d69c353 1434eec0 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/06/14 06:16 https://github.com/google/kmsan.git master 2f3064574275 0f087040 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/05/15 21:29 https://github.com/google/kmsan.git master d6e2c8c7eb40 744a39e2 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/04/22 17:15 https://github.com/google/kmsan.git master b834db009dc5 131df97d .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/04/22 03:04 https://github.com/google/kmsan.git master 33d9269ef6e0 2738b391 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/04/22 03:04 https://github.com/google/kmsan.git master 33d9269ef6e0 2738b391 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/04/18 12:45 https://github.com/google/kmsan.git master 33d9269ef6e0 8bcc32a6 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/04/17 23:32 https://github.com/google/kmsan.git master 33d9269ef6e0 8bcc32a6 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/04/16 05:08 https://github.com/google/kmsan.git master 33d9269ef6e0 8bcc32a6 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/04/16 04:50 https://github.com/google/kmsan.git master 33d9269ef6e0 8bcc32a6 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/03/11 00:45 https://github.com/google/kmsan.git master 724946410067 9e8eaa75 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/03/11 00:35 https://github.com/google/kmsan.git master 724946410067 9e8eaa75 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/02/27 22:28 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/02/27 22:04 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/02/27 22:04 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2022/01/28 08:09 https://github.com/google/kmsan.git master 85cfd6e539bd 495e00c5 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2021/12/31 02:58 https://github.com/google/kmsan.git master 81c325bbf94e 36bd2e48 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2021/12/31 02:36 https://github.com/google/kmsan.git master 81c325bbf94e 36bd2e48 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2021/12/31 02:22 https://github.com/google/kmsan.git master 81c325bbf94e 36bd2e48 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2021/12/31 02:21 https://github.com/google/kmsan.git master 81c325bbf94e 36bd2e48 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2021/12/31 02:21 https://github.com/google/kmsan.git master 81c325bbf94e 36bd2e48 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2021/12/31 02:21 https://github.com/google/kmsan.git master 81c325bbf94e 36bd2e48 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2021/12/31 02:21 https://github.com/google/kmsan.git master 81c325bbf94e 36bd2e48 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2021/12/23 19:16 https://github.com/google/kmsan.git master 81c325bbf94e 6caa12e4 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2021/12/17 14:08 https://github.com/google/kmsan.git master b0a8b5053e8b 44068e19 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2021/12/15 09:11 https://github.com/google/kmsan.git master d1daf229a313 f752fb53 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2021/12/07 16:00 https://github.com/google/kmsan.git master 8b936c96768e 0230ba3e .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2021/03/21 15:08 https://github.com/google/kmsan.git master 29ad81a1074a 17810eae .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2021/03/03 13:34 https://github.com/google/kmsan.git master 29ad81a1074a e5b64d68 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2022/11/20 01:48 https://github.com/google/kmsan.git master cb231e2f67ec 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2022/11/13 19:14 https://github.com/google/kmsan.git master cb231e2f67ec 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2022/08/03 11:05 https://github.com/google/kmsan.git master 82224c6104a8 1c9013ac .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2022/07/13 18:09 https://github.com/google/kmsan.git master 97117d69c353 5d921b08 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2022/04/23 01:49 https://github.com/google/kmsan.git master b834db009dc5 131df97d .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2022/04/17 23:29 https://github.com/google/kmsan.git master 33d9269ef6e0 8bcc32a6 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2022/04/16 05:01 https://github.com/google/kmsan.git master 33d9269ef6e0 8bcc32a6 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2022/02/27 22:11 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2022/02/27 22:06 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2022/01/28 18:15 https://github.com/google/kmsan.git master 85cfd6e539bd 495e00c5 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2021/12/31 10:19 https://github.com/google/kmsan.git master 81c325bbf94e 36bd2e48 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2021/12/31 10:19 https://github.com/google/kmsan.git master 81c325bbf94e 36bd2e48 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2021/12/31 09:33 https://github.com/google/kmsan.git master 81c325bbf94e 36bd2e48 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2021/12/31 09:33 https://github.com/google/kmsan.git master 81c325bbf94e 36bd2e48 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2021/12/31 09:10 https://github.com/google/kmsan.git master 81c325bbf94e 36bd2e48 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2021/12/23 19:21 https://github.com/google/kmsan.git master 81c325bbf94e 6caa12e4 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce-386 2021/12/15 09:13 https://github.com/google/kmsan.git master d1daf229a313 f752fb53 .config console log report info KMSAN: uninit-value in tipc_nl_compat_name_table_dump
ci-upstream-kmsan-gce 2019/08/23 19:30 https://github.com/google/kmsan.git master 61ccdad1fcdf 78ded196 .config console log report
* Struck through repros no longer work on HEAD.