================================================================== BUG: KMSAN: uninit-value in __sctp_v6_cmp_addr+0x49a/0x850 net/sctp/ipv6.c:580 CPU: 1 PID: 7257 Comm: syz-executor7 Not tainted 4.17.0-rc3+ #88 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+0x185/0x1d0 lib/dump_stack.c:113 kmsan_report+0x142/0x240 mm/kmsan/kmsan.c:1067 __msan_warning_32+0x6c/0xb0 mm/kmsan/kmsan_instr.c:683 __sctp_v6_cmp_addr+0x49a/0x850 net/sctp/ipv6.c:580 sctp_inet6_cmp_addr+0x3dc/0x400 net/sctp/ipv6.c:898 sctp_bind_addr_conflict+0x272/0x3f0 net/sctp/bind_addr.c:368 sctp_get_port_local+0x1709/0x1be0 net/sctp/socket.c:7515 sctp_do_bind+0xa26/0xdf0 net/sctp/socket.c:435 sctp_bindx_add net/sctp/socket.c:529 [inline] sctp_setsockopt_bindx+0x6c4/0x8f0 net/sctp/socket.c:1058 sctp_setsockopt+0x1c50/0x11600 net/sctp/socket.c:4221 sock_common_setsockopt+0x136/0x170 net/core/sock.c:3039 __sys_setsockopt+0x4af/0x560 net/socket.c:1903 __do_sys_setsockopt net/socket.c:1914 [inline] __se_sys_setsockopt net/socket.c:1911 [inline] __x64_sys_setsockopt+0x15c/0x1c0 net/socket.c:1911 do_syscall_64+0x154/0x220 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x455979 RSP: 002b:00007f948b4c6c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f948b4c76d4 RCX: 0000000000455979 RDX: 0000000000000064 RSI: 0000000000000084 RDI: 0000000000000014 RBP: 000000000072bea0 R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020000080 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000651 R14: 00000000006fd838 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:278 [inline] kmsan_internal_poison_shadow+0xb8/0x1b0 mm/kmsan/kmsan.c:188 kmsan_kmalloc+0x94/0x100 mm/kmsan/kmsan.c:314 __kmalloc_node+0xe25/0x11f0 mm/slub.c:3865 kmalloc_node include/linux/slab.h:554 [inline] kvmalloc_node+0x1a1/0x2e0 mm/util.c:421 xt_jumpstack_alloc net/netfilter/x_tables.c:1327 [inline] xt_replace_table+0x35e/0xbd0 net/netfilter/x_tables.c:1366 __do_replace+0x2bc/0x1020 net/ipv6/netfilter/ip6_tables.c:1086 do_replace net/ipv6/netfilter/ip6_tables.c:1159 [inline] do_ip6t_set_ctl+0x739/0x930 net/ipv6/netfilter/ip6_tables.c:1683 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x476/0x4d0 net/netfilter/nf_sockopt.c:115 ipv6_setsockopt+0x1e2/0x340 net/ipv6/ipv6_sockglue.c:927 tcp_setsockopt+0x1bb/0x1f0 net/ipv4/tcp.c:2890 sock_common_setsockopt+0x136/0x170 net/core/sock.c:3039 __sys_setsockopt+0x4af/0x560 net/socket.c:1903 __do_sys_setsockopt net/socket.c:1914 [inline] __se_sys_setsockopt net/socket.c:1911 [inline] __x64_sys_setsockopt+0x15c/0x1c0 net/socket.c:1911 do_syscall_64+0x154/0x220 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 ==================================================================