================================================================== BUG: KMSAN: uninit-value in _decode_session6+0x645/0x1650 net/ipv6/xfrm6_policy.c:149 CPU: 1 PID: 4708 Comm: syz-executor5 Not tainted 4.19.0-rc4+ #56 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+0x2f6/0x430 lib/dump_stack.c:113 kmsan_report+0x183/0x2b0 mm/kmsan/kmsan.c:956 __msan_warning+0x70/0xc0 mm/kmsan/kmsan_instr.c:645 _decode_session6+0x645/0x1650 net/ipv6/xfrm6_policy.c:149 __xfrm_decode_session+0x156/0x200 net/xfrm/xfrm_policy.c:2299 xfrm_decode_session_reverse include/net/xfrm.h:1239 [inline] icmpv6_route_lookup net/ipv6/icmp.c:372 [inline] icmp6_send+0x2d01/0x3840 net/ipv6/icmp.c:551 icmpv6_send+0xe5/0x110 net/ipv6/ip6_icmp.c:43 ip6_link_failure+0x5c/0x310 net/ipv6/route.c:2255 dst_link_failure include/net/dst.h:427 [inline] ndisc_error_report+0x106/0x1a0 net/ipv6/ndisc.c:695 neigh_invalidate+0x35b/0x900 net/core/neighbour.c:894 neigh_timer_handler+0xb72/0x1290 net/core/neighbour.c:980 call_timer_fn+0x310/0x6c0 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0xe25/0x1280 kernel/time/timer.c:1682 run_timer_softirq+0x2e/0x50 kernel/time/timer.c:1695 __do_softirq+0x614/0xa72 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x20a/0x240 kernel/softirq.c:414 exiting_irq+0xe/0x10 arch/x86/include/asm/apic.h:536 smp_apic_timer_interrupt+0x64/0x90 arch/x86/kernel/apic/apic.c:1059 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:869 RIP: 0010:arch_atomic_inc arch/x86/include/asm/atomic.h:97 [inline] RIP: 0010:atomic_inc include/asm-generic/atomic-instrumented.h:161 [inline] RIP: 0010:page_ref_inc include/linux/page_ref.h:107 [inline] RIP: 0010:get_page include/linux/mm.h:926 [inline] RIP: 0010:copy_one_pte mm/memory.c:1041 [inline] RIP: 0010:copy_pte_range mm/memory.c:1103 [inline] RIP: 0010:copy_pmd_range mm/memory.c:1154 [inline] RIP: 0010:copy_pud_range mm/memory.c:1188 [inline] RIP: 0010:copy_p4d_range mm/memory.c:1210 [inline] RIP: 0010:copy_page_range+0x1f7c/0x3ce0 mm/memory.c:1272 Code: 39 18 00 48 8b 18 44 8b 32 48 85 db 4d 89 ec 0f 85 6b 04 00 00 48 85 db 4c 8b ac 24 a8 00 00 00 0f 85 67 04 00 00 f0 41 ff 07 <49> 8d 5d 30 4c 89 e7 e8 58 39 18 00 48 8b 4c 24 38 48 89 08 48 85 RSP: 0018:ffff88015a28f830 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13 RAX: ffff88015a29f8b0 RBX: 0000000000000000 RCX: ffff88015a2af8b0 RDX: ffff88015a2af8b0 RSI: aaaaaaaaaaaab000 RDI: ffffea00081cf5a0 RBP: ffff88015a28faf8 R08: ffffffff7fffffff R09: ffffffff8aa39000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88015a28f8b0 R13: ffffea00085ae3e0 R14: 000000009bc000c8 R15: ffffea00085ae414 dup_mmap kernel/fork.c:544 [inline] dup_mm kernel/fork.c:1275 [inline] copy_mm kernel/fork.c:1330 [inline] copy_process+0x6dd3/0xb8b0 kernel/fork.c:1870 _do_fork+0x398/0x1290 kernel/fork.c:2167 __do_sys_clone kernel/fork.c:2274 [inline] __se_sys_clone+0xf6/0x110 kernel/fork.c:2268 __x64_sys_clone+0x62/0x80 kernel/fork.c:2268 do_syscall_64+0xb8/0x100 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x455c4a Code: f7 d8 64 89 04 25 d4 02 00 00 64 4c 8b 0c 25 10 00 00 00 31 d2 4d 8d 91 d0 02 00 00 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 f5 00 00 00 85 c0 41 89 c5 0f 85 fc 00 00 RSP: 002b:0000000000a3fd80 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 0000000000a3fd80 RCX: 0000000000455c4a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 0000000000a3fdc0 R08: 0000000000000001 R09: 0000000002970940 R10: 0000000002970c10 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000000 R15: badc0ffeebadface Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:256 [inline] kmsan_internal_poison_shadow+0xb8/0x1b0 mm/kmsan/kmsan.c:181 kmsan_kmalloc+0x98/0x100 mm/kmsan/kmsan_hooks.c:91 kmsan_slab_alloc+0x10/0x20 mm/kmsan/kmsan_hooks.c:100 slab_post_alloc_hook mm/slab.h:446 [inline] slab_alloc_node mm/slub.c:2718 [inline] __kmalloc_node_track_caller+0xb55/0x1380 mm/slub.c:4351 __kmalloc_reserve net/core/skbuff.c:138 [inline] __alloc_skb+0x40d/0xe50 net/core/skbuff.c:206 alloc_skb include/linux/skbuff.h:996 [inline] __ip6_append_data+0x3c5e/0x51a0 net/ipv6/ip6_output.c:1427 ip6_append_data+0x3d8/0x670 net/ipv6/ip6_output.c:1589 rawv6_sendmsg+0x2ac7/0x5680 net/ipv6/raw.c:926 inet_sendmsg+0x4c5/0x7d0 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg net/socket.c:631 [inline] ___sys_sendmsg+0xe70/0x1290 net/socket.c:2114 __sys_sendmsg net/socket.c:2152 [inline] __do_sys_sendmsg net/socket.c:2161 [inline] __se_sys_sendmsg+0x2a3/0x3d0 net/socket.c:2159 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2159 do_syscall_64+0xb8/0x100 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================