syzbot


KMSAN: uninit-value in __tipc_nl_compat_dumpit

Status: fixed on 2020/02/18 14:31
Subsystems: tipc
[Documentation on labels]
Reported-by: syzbot+b1fd2bf2c89d8407e15f@syzkaller.appspotmail.com
Fix commit: a7869e5f9174 tipc: eliminate KMSAN: uninit-value in __tipc_nl_compat_dumpit error
First crash: 1822d, last: 1753d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net] tipc: eliminate KMSAN: uninit-value in __tipc_nl_compat_dumpit error 2 (2) 2020/01/06 21:25
KMSAN: uninit-value in __tipc_nl_compat_dumpit 0 (1) 2019/12/11 17:45
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in __tipc_nl_compat_dumpit (3) tipc C 6181 1542d 1606d 15/28 fixed on 2020/09/16 22:51
upstream KMSAN: uninit-value in __tipc_nl_compat_dumpit (2) tipc C 11214 1613d 1752d 0/28 closed as invalid on 2020/07/06 15:32

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in __nlmsg_parse include/net/netlink.h:661 [inline]
BUG: KMSAN: uninit-value in nlmsg_parse_deprecated include/net/netlink.h:706 [inline]
BUG: KMSAN: uninit-value in __tipc_nl_compat_dumpit+0x58b/0x1290 net/tipc/netlink_compat.c:215
CPU: 1 PID: 11032 Comm: syz-executor785 Not tainted 5.5.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1c9/0x220 lib/dump_stack.c:118
 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:118
 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215
 __nlmsg_parse include/net/netlink.h:661 [inline]
 nlmsg_parse_deprecated include/net/netlink.h:706 [inline]
 __tipc_nl_compat_dumpit+0x58b/0x1290 net/tipc/netlink_compat.c:215
 tipc_nl_compat_dumpit+0x761/0x910 net/tipc/netlink_compat.c:308
 tipc_nl_compat_handle net/tipc/netlink_compat.c:1272 [inline]
 tipc_nl_compat_recv+0x1382/0x2940 net/tipc/netlink_compat.c:1311
 genl_family_rcv_msg_doit net/netlink/genetlink.c:672 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:717 [inline]
 genl_rcv_msg+0x205e/0x2460 net/netlink/genetlink.c:734
 netlink_rcv_skb+0x451/0x650 net/netlink/af_netlink.c:2477
 genl_rcv+0x63/0x80 net/netlink/genetlink.c:745
 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline]
 netlink_unicast+0xf9e/0x1100 net/netlink/af_netlink.c:1328
 netlink_sendmsg+0x1248/0x14d0 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:639 [inline]
 sock_sendmsg net/socket.c:659 [inline]
 ____sys_sendmsg+0x12b6/0x1350 net/socket.c:2330
 ___sys_sendmsg net/socket.c:2384 [inline]
 __sys_sendmsg+0x451/0x5f0 net/socket.c:2417
 __do_sys_sendmsg net/socket.c:2426 [inline]
 __se_sys_sendmsg+0x97/0xb0 net/socket.c:2424
 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2424
 do_syscall_64+0xb8/0x160 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x445239
Code: e8 ac e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 0b cd fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd14140528 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445239
RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000000000003
RBP: 00000000006cf018 R08: 0000000000000000 R09: 00000000004002e0
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004023d0
R13: 0000000000402460 R14: 0000000000000000 R15: 0000000000000000

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline]
 kmsan_internal_poison_shadow+0x66/0xd0 mm/kmsan/kmsan.c:127
 kmsan_slab_alloc+0x8a/0xe0 mm/kmsan/kmsan_hooks.c:82
 slab_alloc_node mm/slub.c:2774 [inline]
 __kmalloc_node_track_caller+0xb40/0x1200 mm/slub.c:4382
 __kmalloc_reserve net/core/skbuff.c:141 [inline]
 __alloc_skb+0x2fd/0xac0 net/core/skbuff.c:209
 alloc_skb include/linux/skbuff.h:1049 [inline]
 nlmsg_new include/net/netlink.h:888 [inline]
 tipc_nl_compat_dumpit+0x6e4/0x910 net/tipc/netlink_compat.c:301
 tipc_nl_compat_handle net/tipc/netlink_compat.c:1272 [inline]
 tipc_nl_compat_recv+0x1382/0x2940 net/tipc/netlink_compat.c:1311
 genl_family_rcv_msg_doit net/netlink/genetlink.c:672 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:717 [inline]
 genl_rcv_msg+0x205e/0x2460 net/netlink/genetlink.c:734
 netlink_rcv_skb+0x451/0x650 net/netlink/af_netlink.c:2477
 genl_rcv+0x63/0x80 net/netlink/genetlink.c:745
 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline]
 netlink_unicast+0xf9e/0x1100 net/netlink/af_netlink.c:1328
 netlink_sendmsg+0x1248/0x14d0 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:639 [inline]
 sock_sendmsg net/socket.c:659 [inline]
 ____sys_sendmsg+0x12b6/0x1350 net/socket.c:2330
 ___sys_sendmsg net/socket.c:2384 [inline]
 __sys_sendmsg+0x451/0x5f0 net/socket.c:2417
 __do_sys_sendmsg net/socket.c:2426 [inline]
 __se_sys_sendmsg+0x97/0xb0 net/socket.c:2424
 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2424
 do_syscall_64+0xb8/0x160 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
=====================================================

Crashes (4428):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/03 10:25 https://github.com/google/kmsan.git master 686a4f77cb0c 93e5e335 .config console log report syz C ci-upstream-kmsan-gce
2019/12/11 14:47 https://github.com/google/kmsan.git master 5ef742bab7b8 101194eb .config console log report syz C ci-upstream-kmsan-gce
2020/02/18 12:11 https://github.com/google/kmsan.git master 686a4f77cb0c 1ce142dc .config console log report ci-upstream-kmsan-gce
2020/02/18 10:42 https://github.com/google/kmsan.git master 686a4f77cb0c 1ce142dc .config console log report ci-upstream-kmsan-gce
2020/02/18 10:33 https://github.com/google/kmsan.git master 686a4f77cb0c 1ce142dc .config console log report ci-upstream-kmsan-gce
2020/02/18 04:57 https://github.com/google/kmsan.git master 686a4f77cb0c 1ce142dc .config console log report ci-upstream-kmsan-gce
2020/02/18 03:47 https://github.com/google/kmsan.git master 686a4f77cb0c 1ce142dc .config console log report ci-upstream-kmsan-gce
2020/02/18 02:47 https://github.com/google/kmsan.git master 686a4f77cb0c 1ce142dc .config console log report ci-upstream-kmsan-gce
2020/02/18 00:44 https://github.com/google/kmsan.git master 686a4f77cb0c 1ce142dc .config console log report ci-upstream-kmsan-gce
2020/02/17 21:29 https://github.com/google/kmsan.git master 686a4f77cb0c 2b411596 .config console log report ci-upstream-kmsan-gce
2020/02/17 20:13 https://github.com/google/kmsan.git master 686a4f77cb0c 2b411596 .config console log report ci-upstream-kmsan-gce
2020/02/17 19:08 https://github.com/google/kmsan.git master 686a4f77cb0c 2b411596 .config console log report ci-upstream-kmsan-gce
2020/02/17 18:56 https://github.com/google/kmsan.git master 686a4f77cb0c 2b411596 .config console log report ci-upstream-kmsan-gce
2020/02/17 17:08 https://github.com/google/kmsan.git master 686a4f77cb0c 2b411596 .config console log report ci-upstream-kmsan-gce
2020/02/17 16:03 https://github.com/google/kmsan.git master 686a4f77cb0c 2b411596 .config console log report ci-upstream-kmsan-gce
2020/02/17 14:10 https://github.com/google/kmsan.git master 686a4f77cb0c 2b411596 .config console log report ci-upstream-kmsan-gce
2020/02/17 11:05 https://github.com/google/kmsan.git master 686a4f77cb0c 2b411596 .config console log report ci-upstream-kmsan-gce
2020/02/17 08:50 https://github.com/google/kmsan.git master 686a4f77cb0c 1f448cd6 .config console log report ci-upstream-kmsan-gce
2020/02/17 05:41 https://github.com/google/kmsan.git master 686a4f77cb0c 1f448cd6 .config console log report ci-upstream-kmsan-gce
2020/02/17 04:50 https://github.com/google/kmsan.git master 686a4f77cb0c 1f448cd6 .config console log report ci-upstream-kmsan-gce
2020/02/17 02:52 https://github.com/google/kmsan.git master 686a4f77cb0c 1f448cd6 .config console log report ci-upstream-kmsan-gce
2020/02/17 01:32 https://github.com/google/kmsan.git master 686a4f77cb0c 1f448cd6 .config console log report ci-upstream-kmsan-gce
2020/02/16 23:55 https://github.com/google/kmsan.git master 686a4f77cb0c 1f448cd6 .config console log report ci-upstream-kmsan-gce
2020/02/16 21:20 https://github.com/google/kmsan.git master 686a4f77cb0c cf914200 .config console log report ci-upstream-kmsan-gce
2020/02/16 19:52 https://github.com/google/kmsan.git master 686a4f77cb0c cf914200 .config console log report ci-upstream-kmsan-gce
2020/02/16 17:03 https://github.com/google/kmsan.git master 686a4f77cb0c cf914200 .config console log report ci-upstream-kmsan-gce
2020/02/16 15:04 https://github.com/google/kmsan.git master 686a4f77cb0c cf914200 .config console log report ci-upstream-kmsan-gce
2020/02/16 13:42 https://github.com/google/kmsan.git master 686a4f77cb0c cf914200 .config console log report ci-upstream-kmsan-gce
2020/02/16 11:19 https://github.com/google/kmsan.git master 686a4f77cb0c cf914200 .config console log report ci-upstream-kmsan-gce
2020/02/16 08:14 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2020/02/16 07:04 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2020/02/16 06:50 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2020/02/16 05:04 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2020/02/16 03:58 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2020/02/16 02:46 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2020/02/16 01:33 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2020/02/16 00:24 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2020/02/15 22:44 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2020/02/15 21:33 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2020/02/15 20:58 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2020/02/15 19:34 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2020/02/15 18:32 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2020/02/15 17:09 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2020/02/15 16:04 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2019/12/10 22:47 https://github.com/google/kmsan.git master 5ef742bab7b8 5a5826a1 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.