================================================================== BUG: KMSAN: uninit-value in _decode_session6+0x645/0x1650 net/ipv6/xfrm6_policy.c:149 CPU: 1 PID: 7 Comm: kworker/u4:0 Not tainted 4.19.0-rc4+ #56 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net 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:__nr_to_section include/linux/mmzone.h:1166 [inline] RIP: 0010:pfn_valid include/linux/mmzone.h:1249 [inline] RIP: 0010:my_virt_addr_valid mm/kmsan/kmsan.c:762 [inline] RIP: 0010:virt_to_page_or_null mm/kmsan/kmsan.c:811 [inline] RIP: 0010:kmsan_get_origin_address_noruntime+0x2ce/0x390 mm/kmsan/kmsan.c:1236 Code: 00 00 00 48 b9 ff ff ff ff ff 3f 00 00 48 39 ca 0f 87 99 00 00 00 48 89 d1 48 c1 e9 22 48 8b 0c ce 48 85 c9 0f 84 85 00 00 00 <48> c1 ea 1b 83 e2 7f 48 c1 e2 05 48 01 d1 74 75 f6 01 02 74 70 49 RSP: 0018:ffff8801d4d7f8a0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: ffff880254d7f9e0 RBX: 0000000000000000 RCX: ffff88021fff1000 RDX: 00000001d4d7f9e0 RSI: ffff88021fff2000 RDI: ffffffff7fffffff RBP: ffff8801d4d7f8d8 R08: 0000000000480020 R09: 0000000000000002 R10: 0000000000000000 R11: ffffffff87a172c0 R12: ffff8801d4d7f9e0 R13: 0000000080800000 R14: 0000000000000000 R15: 0000000000000000 kmsan_set_origin_inline+0x6b/0x120 mm/kmsan/kmsan_instr.c:546 __msan_poison_alloca+0x173/0x1f0 mm/kmsan/kmsan_instr.c:610 rcu_all_qs+0x2e/0x1b0 kernel/rcu/tree.c:470 _cond_resched+0x38/0xc0 kernel/sched/core.c:4974 inet_twsk_purge+0x21b/0x1240 net/ipv4/inet_timewait_sock.c:266 tcp_sk_exit_batch+0x4f/0x150 net/ipv4/tcp_ipv4.c:2617 ops_exit_list net/core/net_namespace.c:156 [inline] cleanup_net+0xccb/0x18f0 net/core/net_namespace.c:551 process_one_work+0x197f/0x2490 kernel/workqueue.c:2153 worker_thread+0x1f6a/0x2b00 kernel/workqueue.c:2296 kthread+0x59c/0x5d0 kernel/kthread.c:247 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:416 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] _decode_session6+0x7c0/0x1650 net/ipv6/xfrm6_policy.c:150 __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 ==================================================================