===================================================== BUG: KMSAN: uninit-value in xfrm_state_find+0x1d65/0x7970 net/xfrm/xfrm_state.c:1068 CPU: 0 PID: 16563 Comm: syz-executor.0 Not tainted 5.10.0-rc4-syzkaller #0 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+0x21c/0x280 lib/dump_stack.c:118 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x5f/0xa0 mm/kmsan/kmsan_instr.c:197 xfrm_state_find+0x1d65/0x7970 net/xfrm/xfrm_state.c:1068 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2384 [inline] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2429 [inline] xfrm_resolve_and_create_bundle+0xcee/0x5700 net/xfrm/xfrm_policy.c:2719 xfrm_lookup_with_ifid+0x59a/0x4780 net/xfrm/xfrm_policy.c:3053 xfrm_lookup net/xfrm/xfrm_policy.c:3177 [inline] xfrm_lookup_route+0x100/0x3a0 net/xfrm/xfrm_policy.c:3188 ip6_dst_lookup_flow+0x223/0x270 net/ipv6/ip6_output.c:1160 rawv6_sendmsg+0x2155/0x46a0 net/ipv6/raw.c:928 inet_sendmsg+0x15b/0x1d0 net/ipv4/af_inet.c:817 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg net/socket.c:671 [inline] ____sys_sendmsg+0xcfc/0x12f0 net/socket.c:2353 ___sys_sendmsg net/socket.c:2407 [inline] __sys_sendmmsg+0xa89/0x1070 net/socket.c:2497 __do_sys_sendmmsg net/socket.c:2526 [inline] __se_sys_sendmmsg+0xbd/0xe0 net/socket.c:2523 __x64_sys_sendmmsg+0x56/0x70 net/socket.c:2523 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e219 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f3117503c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045e219 RDX: 00000000000002e9 RSI: 0000000020000480 RDI: 0000000000000004 RBP: 000000000119bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c R13: 00000000016afb5f R14: 00007f31175049c0 R15: 000000000119bf8c Local variable ----tmp.i.i@xfrm_resolve_and_create_bundle created at: xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2362 [inline] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2429 [inline] xfrm_resolve_and_create_bundle+0x554/0x5700 net/xfrm/xfrm_policy.c:2719 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2362 [inline] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2429 [inline] xfrm_resolve_and_create_bundle+0x554/0x5700 net/xfrm/xfrm_policy.c:2719 =====================================================