================================================================== BUG: KASAN: stack-out-of-bounds in __xfrm6_daddr_saddr_hash net/xfrm/xfrm_hash.h:28 [inline] BUG: KASAN: stack-out-of-bounds in __xfrm_dst_hash net/xfrm/xfrm_hash.h:95 [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+0x269d/0x2920 net/xfrm/xfrm_state.c:807 Read of size 4 at addr ffff8801c9ebf650 by task syz-executor1/31186 CPU: 0 PID: 31186 Comm: syz-executor1 Not tainted 4.9.146+ #84 ffff8801c9ebecc0 ffffffff81b43aa9 ffffea000727afc0 ffff8801c9ebf650 0000000000000000 ffff8801c9ebf650 ffff8801a1cff3f0 ffff8801c9ebecf8 ffffffff81500b98 ffff8801c9ebf650 0000000000000004 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] print_address_description+0x6c/0x234 mm/kasan/report.c:256 [] kasan_report_error mm/kasan/report.c:355 [inline] [] kasan_report.cold.6+0x242/0x2fe mm/kasan/report.c:412 [] __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 [] __xfrm6_daddr_saddr_hash net/xfrm/xfrm_hash.h:28 [inline] [] __xfrm_dst_hash net/xfrm/xfrm_hash.h:95 [inline] [] xfrm_dst_hash net/xfrm/xfrm_state.c:60 [inline] [] xfrm_state_find+0x269d/0x2920 net/xfrm/xfrm_state.c:807 [] xfrm_tmpl_resolve_one+0x1d2/0x7a0 net/xfrm/xfrm_policy.c:1500 [] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:1544 [inline] [] xfrm_resolve_and_create_bundle+0x21f/0x1e70 net/xfrm/xfrm_policy.c:1893 [] xfrm_lookup+0x239/0xc00 net/xfrm/xfrm_policy.c:2254 [] xfrm_lookup_route+0x39/0x140 net/xfrm/xfrm_policy.c:2379 [] ip_route_output_flow+0x90/0xa0 net/ipv4/route.c:2448 [] udp_sendmsg+0x13d9/0x1c60 net/ipv4/udp.c:1025 [] udpv6_sendmsg+0x127d/0x2430 net/ipv6/udp.c:1086 [] inet_sendmsg+0x203/0x4d0 net/ipv4/af_inet.c:770 [] sock_sendmsg_nosec net/socket.c:648 [inline] [] sock_sendmsg+0xbb/0x110 net/socket.c:658 [] ___sys_sendmsg+0x47a/0x840 net/socket.c:1982 [] __sys_sendmmsg+0x161/0x3d0 net/socket.c:2072 [] SYSC_sendmmsg net/socket.c:2103 [inline] [] SyS_sendmmsg+0x35/0x60 net/socket.c:2098 [] do_syscall_64+0x19f/0x550 arch/x86/entry/common.c:285 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb The buggy address belongs to the page: page:ffffea000727afc0 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0x4000000000000000() page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801c9ebf500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 ffff8801c9ebf580: f1 f1 f1 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 00 f2 >ffff8801c9ebf600: f2 f2 f2 00 00 00 00 00 00 00 f2 f2 f2 f2 f2 00 ^ ffff8801c9ebf680: 00 00 00 00 00 00 00 00 f2 f2 f2 00 00 00 00 00 ffff8801c9ebf700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================