sshd (5244) used greatest stack depth: 15496 bytes left ================================================================== 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:61 [inline] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x304b/0x3620 net/xfrm/xfrm_state.c:952 Read of size 4 at addr ffff8801bb8c7308 by task syz-executor220/5334 CPU: 0 PID: 5334 Comm: syz-executor220 Not tainted 4.19.0-rc5+ #259 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+0x1c4/0x2b4 lib/dump_stack.c:113 print_address_description.cold.8+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 mm/kasan/report.c:412 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 __xfrm_dst_hash net/xfrm/xfrm_hash.h:96 [inline] xfrm_dst_hash net/xfrm/xfrm_state.c:61 [inline] xfrm_state_find+0x304b/0x3620 net/xfrm/xfrm_state.c:952 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:1413 [inline] xfrm_tmpl_resolve+0x3c0/0xe50 net/xfrm/xfrm_policy.c:1458 xfrm_resolve_and_create_bundle+0x184/0x2800 net/xfrm/xfrm_policy.c:1753 xfrm_lookup_with_ifid+0x39e/0x2b80 net/xfrm/xfrm_policy.c:2076 xfrm_lookup net/xfrm/xfrm_policy.c:2200 [inline] xfrm_lookup_route+0x3c/0x1f0 net/xfrm/xfrm_policy.c:2211 ip_route_output_flow+0xb1/0xc0 net/ipv4/route.c:2592 udp_sendmsg+0x2296/0x3990 net/ipv4/udp.c:1082 udpv6_sendmsg+0x182f/0x36b0 net/ipv6/udp.c:1205 inet_sendmsg+0x1a1/0x690 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:631 ___sys_sendmsg+0x51d/0x930 net/socket.c:2116 __sys_sendmmsg+0x246/0x6d0 net/socket.c:2211 __do_sys_sendmmsg net/socket.c:2240 [inline] __se_sys_sendmmsg net/socket.c:2237 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2237 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4403f9 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe3058db78 EFLAGS: 00000217 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004403f9 RDX: 0000000000000001 RSI: 0000000020000a80 RDI: 0000000000000003 RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000401c80 R13: 0000000000401d10 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the page: page:ffffea0006ee31c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x2fffc0000000000() raw: 02fffc0000000000 0000000000000000 ffffffff06ee0101 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801bb8c7200: f2 f2 00 00 00 00 00 f2 f2 f2 f2 f2 f2 f2 00 00 ffff8801bb8c7280: 00 00 00 00 f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 >ffff8801bb8c7300: 00 f2 f2 f2 f2 f2 04 f2 f2 f2 f2 f2 f2 f2 f8 f2 ^ ffff8801bb8c7380: f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 f2 ffff8801bb8c7400: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================