================================================================== BUG: KMSAN: uninit-value in memchr+0xce/0x110 lib/string.c:1014 CPU: 0 PID: 8608 Comm: syz-executor.3 Not tainted 5.2.0-rc4+ #6 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+0x191/0x1f0 lib/dump_stack.c:113 kmsan_report+0x162/0x2d0 mm/kmsan/kmsan.c:611 __msan_warning+0x75/0xe0 mm/kmsan/kmsan_instr.c:304 memchr+0xce/0x110 lib/string.c:1014 string_is_valid net/tipc/netlink_compat.c:176 [inline] tipc_nl_compat_bearer_disable+0x2a1/0x480 net/tipc/netlink_compat.c:449 __tipc_nl_compat_doit net/tipc/netlink_compat.c:327 [inline] tipc_nl_compat_doit+0x3ac/0xb10 net/tipc/netlink_compat.c:360 tipc_nl_compat_handle net/tipc/netlink_compat.c:1183 [inline] tipc_nl_compat_recv+0x13c6/0x27b0 net/tipc/netlink_compat.c:1286 genl_family_rcv_msg net/netlink/genetlink.c:629 [inline] genl_rcv_msg+0x16c5/0x1f20 net/netlink/genetlink.c:654 netlink_rcv_skb+0x431/0x620 net/netlink/af_netlink.c:2482 genl_rcv+0x63/0x80 net/netlink/genetlink.c:665 netlink_unicast_kernel net/netlink/af_netlink.c:1307 [inline] netlink_unicast+0xf3e/0x1020 net/netlink/af_netlink.c:1333 netlink_sendmsg+0x127e/0x12f0 net/netlink/af_netlink.c:1922 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg net/socket.c:665 [inline] ___sys_sendmsg+0x12ff/0x13c0 net/socket.c:2286 __sys_sendmsg net/socket.c:2324 [inline] __do_sys_sendmsg net/socket.c:2333 [inline] __se_sys_sendmsg+0x305/0x460 net/socket.c:2331 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2331 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:302 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x459519 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f01143c2c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459519 RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f01143c36d4 R13: 00000000004c71c9 R14: 00000000004dc5f0 R15: 00000000ffffffff Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:201 [inline] kmsan_internal_poison_shadow+0x53/0xa0 mm/kmsan/kmsan.c:160 kmsan_kmalloc+0xa4/0x130 mm/kmsan/kmsan_hooks.c:178 kmsan_slab_alloc+0xe/0x10 mm/kmsan/kmsan_hooks.c:187 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc_node mm/slub.c:2763 [inline] __kmalloc_node_track_caller+0xcba/0xf30 mm/slub.c:4390 __kmalloc_reserve net/core/skbuff.c:138 [inline] __alloc_skb+0x306/0xa10 net/core/skbuff.c:206 alloc_skb include/linux/skbuff.h:1055 [inline] netlink_alloc_large_skb net/netlink/af_netlink.c:1179 [inline] netlink_sendmsg+0xb81/0x12f0 net/netlink/af_netlink.c:1897 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg net/socket.c:665 [inline] ___sys_sendmsg+0x12ff/0x13c0 net/socket.c:2286 __sys_sendmsg net/socket.c:2324 [inline] __do_sys_sendmsg net/socket.c:2333 [inline] __se_sys_sendmsg+0x305/0x460 net/socket.c:2331 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2331 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:302 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================