================================================================== BUG: KASAN: stack-out-of-bounds in __xfrm6_daddr_saddr_hash net/xfrm/xfrm_hash.h:29 [inline] BUG: KASAN: stack-out-of-bounds in __xfrm_dst_hash net/xfrm/xfrm_hash.h:96 [inline] BUG: KASAN: stack-out-of-bounds in xfrm_dst_hash net/xfrm/xfrm_state.c:60 [inline] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x27f9/0x2880 net/xfrm/xfrm_state.c:953 Read of size 4 at addr ffff8801cc53f680 by task syz-executor3/12237 CPU: 0 PID: 12237 Comm: syz-executor3 Not tainted 4.14.83+ #9 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xb9/0x11b lib/dump_stack.c:53 print_address_description+0x60/0x22b mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report.cold.6+0x11b/0x2dd mm/kasan/report.c:409 __xfrm6_daddr_saddr_hash net/xfrm/xfrm_hash.h:29 [inline] __xfrm_dst_hash net/xfrm/xfrm_hash.h:96 [inline] xfrm_dst_hash net/xfrm/xfrm_state.c:60 [inline] xfrm_state_find+0x27f9/0x2880 net/xfrm/xfrm_state.c:953 xfrm_tmpl_resolve_one+0x1c6/0x7f0 net/xfrm/xfrm_policy.c:1416 xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:1461 [inline] xfrm_resolve_and_create_bundle+0x21a/0x2550 net/xfrm/xfrm_policy.c:1857 xfrm_lookup_with_ifid+0x246/0x1870 net/xfrm/xfrm_policy.c:2202 xfrm_lookup net/xfrm/xfrm_policy.c:2327 [inline] xfrm_lookup_route+0x37/0x1b0 net/xfrm/xfrm_policy.c:2338 ip_route_output_flow+0x86/0xa0 net/ipv4/route.c:2563 udp_sendmsg+0x1377/0x1da0 net/ipv4/udp.c:1021 udpv6_sendmsg+0x125f/0x2510 net/ipv6/udp.c:1193 inet_sendmsg+0x168/0x540 net/ipv4/af_inet.c:781 sock_sendmsg_nosec net/socket.c:645 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:655 ___sys_sendmsg+0x41d/0x890 net/socket.c:2061 __sys_sendmmsg+0x13d/0x360 net/socket.c:2151 SYSC_sendmmsg net/socket.c:2182 [inline] SyS_sendmmsg+0x2f/0x50 net/socket.c:2177 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x457569 RSP: 002b:00007fcd6648dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000457569 RDX: 0000000000000001 RSI: 0000000020000a80 RDI: 0000000000000005 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fcd6648e6d4 R13: 00000000004c3c33 R14: 00000000004d63e8 R15: 00000000ffffffff The buggy address belongs to the page: page:ffffea0007314fc0 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0x4000000000000000() raw: 4000000000000000 0000000000000000 0000000000000000 00000000ffffffff raw: 0000000000000000 dead000000000200 0000000000000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801cc53f580: 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 f2 f2 f2 ffff8801cc53f600: f2 00 00 00 00 f2 f2 f2 f2 00 00 00 00 00 00 00 >ffff8801cc53f680: f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 f2 f2 ^ ffff8801cc53f700: f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801cc53f780: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 ==================================================================