BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x2453/0x2830 net/xfrm/xfrm_state.c:822 at addr ffff8801c803f8b0 Read of size 4 by task syzkaller549651/3249 page:ffffea0007200fc0 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0x8000000000000000() page dumped because: kasan: bad access detected CPU: 1 PID: 3249 Comm: syzkaller549651 Not tainted 4.9.58-g27155df #71 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c803eef8 ffffffff81d91149 ffffed0039007f16 0000000000000004 0000000000000000 ffffed0039007f16 ffff8801c803f8b0 ffff8801c803ef80 ffffffff8153c583 0000000000000000 0000000000000002 ffffffff833d1e43 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] print_address_description mm/kasan/report.c:208 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x4c3/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 [] xfrm_state_find+0x2453/0x2830 net/xfrm/xfrm_state.c:822 [] xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:1475 [inline] [] xfrm_tmpl_resolve+0x298/0xa90 net/xfrm/xfrm_policy.c:1519 [] xfrm_resolve_and_create_bundle+0xd7/0x1d90 net/xfrm/xfrm_policy.c:1867 [] xfrm_lookup+0x984/0xbf0 net/xfrm/xfrm_policy.c:2221 [] xfrm_lookup_route+0x39/0x1a0 net/xfrm/xfrm_policy.c:2343 [] ip_route_output_flow+0x7f/0xa0 net/ipv4/route.c:2431 [] udp_sendmsg+0xe36/0x1c10 net/ipv4/udp.c:1026 [] udpv6_sendmsg+0x588/0x2540 net/ipv6/udp.c:1086 [] inet_sendmsg+0x2bc/0x4c0 net/ipv4/af_inet.c:753 [] sock_sendmsg_nosec net/socket.c:635 [inline] [] sock_sendmsg+0xca/0x110 net/socket.c:645 [] SYSC_sendto+0x2c8/0x340 net/socket.c:1670 [] SyS_sendto+0x40/0x50 net/socket.c:1638 [] entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff8801c803f780: 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 ffff8801c803f800: f2 f2 f2 f2 f2 f2 f2 00 00 00 00 f2 f2 f2 f2 00 >ffff8801c803f880: 00 00 00 00 00 00 f2 f2 f2 f2 f2 00 00 00 00 00 ^ ffff8801c803f900: 00 00 00 00 f2 f2 f2 00 00 00 00 00 00 00 00 00 ffff8801c803f980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ================================================================== BUG: KASAN: stack-out-of-bounds in __xfrm_dst_hash net/xfrm/xfrm_hash.h:90 [inline] at addr ffff8801c803f8b0 BUG: KASAN: stack-out-of-bounds in xfrm_dst_hash net/xfrm/xfrm_state.c:60 [inline] at addr ffff8801c803f8b0 BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0xc9b/0x2830 net/xfrm/xfrm_state.c:822 at addr ffff8801c803f8b0 Read of size 4 by task syzkaller549651/3249 page:ffffea0007200fc0 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0x8000000000000000() page dumped because: kasan: bad access detected CPU: 1 PID: 3249 Comm: syzkaller549651 Tainted: G B 4.9.58-g27155df #71 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c803eef8 ffffffff81d91149 ffffed0039007f16 0000000000000004 0000000000000000 ffffed0039007f16 ffff8801c803f8b0 ffff8801c803ef80 ffffffff8153c583 0000000000000010 0000000000000000 ffffffff833d068b Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] print_address_description mm/kasan/report.c:208 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x4c3/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 [] __xfrm_dst_hash net/xfrm/xfrm_hash.h:90 [inline] [] xfrm_dst_hash net/xfrm/xfrm_state.c:60 [inline] [] xfrm_state_find+0xc9b/0x2830 net/xfrm/xfrm_state.c:822 [] xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:1475 [inline] [] xfrm_tmpl_resolve+0x298/0xa90 net/xfrm/xfrm_policy.c:1519 [] xfrm_resolve_and_create_bundle+0xd7/0x1d90 net/xfrm/xfrm_policy.c:1867 [] xfrm_lookup+0x984/0xbf0 net/xfrm/xfrm_policy.c:2221 [] xfrm_lookup_route+0x39/0x1a0 net/xfrm/xfrm_policy.c:2343 [] ip_route_output_flow+0x7f/0xa0 net/ipv4/route.c:2431 [] udp_sendmsg+0xe36/0x1c10 net/ipv4/udp.c:1026 [] udpv6_sendmsg+0x588/0x2540 net/ipv6/udp.c:1086