================================================================== BUG: KMSAN: uninit-value in _decode_session6+0x645/0x1650 net/ipv6/xfrm6_policy.c:149 CPU: 1 PID: 6318 Comm: udevd 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:native_restore_fl arch/x86/include/asm/irqflags.h:40 [inline] RIP: 0010:arch_local_irq_restore arch/x86/include/asm/irqflags.h:81 [inline] RIP: 0010:kmsan_alloc_page+0x92/0xd0 mm/kmsan/kmsan_hooks.c:252 Code: 89 e7 44 89 fe 44 89 f1 e8 8b c3 ff ff 41 83 85 f4 08 00 00 ff 75 33 89 c3 e8 da 4c 40 ff 48 8b 45 c8 48 89 45 c0 ff 75 c0 9d <89> d8 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d c3 0f 0b 90 66 2e RSP: 0000:ffff88014d3ef618 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000246 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffffea0006d1b620 RSI: 0000000000000401 RDI: 0000000000000400 RBP: ffff88014d3ef658 R08: 0000000000480020 R09: 0000000000000002 R10: ffffffff89401668 R11: 00000000ffffffff R12: ffffea0009e90b20 R13: ffff88015522d880 R14: 00000000006200ca R15: 0000000000000000 __alloc_pages_nodemask+0x11ef/0x6370 mm/page_alloc.c:4410 alloc_pages_vma+0xe47/0x1b20 mm/mempolicy.c:2057 wp_page_copy+0x5f3/0x2e90 mm/memory.c:2508 do_wp_page+0x10c0/0x3780 include/linux/spinlock_api_smp.h:152 handle_pte_fault mm/memory.c:4001 [inline] __handle_mm_fault mm/memory.c:4109 [inline] handle_mm_fault+0x3066/0x85c0 mm/memory.c:4146 __do_page_fault+0xb33/0x1a00 arch/x86/mm/fault.c:1396 do_page_fault+0x98/0xd0 arch/x86/mm/fault.c:1473 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1170 RIP: 0033:0x7f6aca17d0cb Code: 0d 0f b1 35 07 4d 31 00 0f 85 e2 0b 00 00 48 89 15 02 4d 31 00 83 05 f7 4c 31 00 01 c3 66 90 8b 05 ee 4c 31 00 83 e8 01 85 c0 <89> 05 e3 4c 31 00 75 2f 48 c7 05 da 4c 31 00 00 00 00 00 83 3d 07 RSP: 002b:00007ffc466fc1d8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00007ffc466fc1e0 RCX: 00007f6aca1b6f46 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffc466fc240 R08: 00000000000018ae R09: 00000000000018ae R10: 00007f6acaad3a70 R11: 0000000000000246 R12: 0000000000002dea R13: 00007ffc466fc200 R14: 0000000000000005 R15: 0000000000000005 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] pskb_expand_head+0x326/0x1e10 net/core/skbuff.c:1461 __pskb_pull_tail+0x1e3/0x21b0 net/core/skbuff.c:1895 pskb_may_pull include/linux/skbuff.h:2127 [inline] nf_ct_frag6_gather+0xff2/0x58b0 net/ipv6/netfilter/nf_conntrack_reasm.c:555 ipv6_defrag+0x501/0x5c0 net/ipv6/netfilter/nf_defrag_ipv6_hooks.c:69 nf_hook_entry_hookfn include/linux/netfilter.h:119 [inline] nf_hook_slow+0x15d/0x3e0 net/netfilter/core.c:511 nf_hook include/linux/netfilter.h:242 [inline] __ip6_local_out+0x562/0x730 net/ipv6/output_core.c:164 ip6_local_out+0xa4/0x1d0 net/ipv6/output_core.c:174 ip6_send_skb net/ipv6/ip6_output.c:1697 [inline] ip6_push_pending_frames+0x218/0x4d0 net/ipv6/ip6_output.c:1717 rawv6_push_pending_frames net/ipv6/raw.c:616 [inline] rawv6_sendmsg+0x45f7/0x5680 net/ipv6/raw.c:933 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] sock_write_iter+0x3b8/0x470 net/socket.c:900 call_write_iter include/linux/fs.h:1808 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x7ae/0xa50 fs/read_write.c:487 vfs_write+0x495/0x8e0 fs/read_write.c:549 ksys_write fs/read_write.c:598 [inline] __do_sys_write fs/read_write.c:610 [inline] __se_sys_write+0x173/0x350 fs/read_write.c:607 __x64_sys_write+0x4a/0x70 fs/read_write.c:607 do_syscall_64+0xb8/0x100 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================