================================================================== BUG: KASAN: stack-out-of-bounds in jhash2 include/linux/jhash.h:137 [inline] BUG: KASAN: stack-out-of-bounds in __xfrm6_addr_hash net/xfrm/xfrm_hash.h:16 [inline] 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:95 [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+0x396b/0x3eb0 net/xfrm/xfrm_state.c:952 Read of size 4 at addr ffff888194107308 by task syz-executor3/21342 CPU: 0 PID: 21342 Comm: syz-executor3 Not tainted 4.20.0-rc4+ #218 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+0x244/0x39d lib/dump_stack.c:113 print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 jhash2 include/linux/jhash.h:137 [inline] __xfrm6_addr_hash net/xfrm/xfrm_hash.h:16 [inline] __xfrm6_daddr_saddr_hash net/xfrm/xfrm_hash.h:29 [inline] __xfrm_dst_hash net/xfrm/xfrm_hash.h:95 [inline] xfrm_dst_hash net/xfrm/xfrm_state.c:61 [inline] xfrm_state_find+0x396b/0x3eb0 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:2582 udp_sendmsg+0x223a/0x3c70 net/ipv4/udp.c:1082 udpv6_sendmsg+0x182f/0x36b0 net/ipv6/udp.c:1203 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:0x457569 Code: fd b3 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 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f59421abc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000457569 RDX: 0000000000000001 RSI: 0000000020000a80 RDI: 0000000000000003 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f59421ac6d4 R13: 00000000004c3c33 R14: 00000000004d6248 R15: 00000000ffffffff The buggy address belongs to the page: page:ffffea00065041c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x2fffc0000000000() raw: 02fffc0000000000 ffffea0006e68e08 ffffea0006504188 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888194107200: f2 f2 00 00 00 00 00 f2 f2 f2 f2 f2 f2 f2 00 00 ffff888194107280: 00 00 00 00 f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 >ffff888194107300: 00 f2 f2 f2 f2 f2 04 f2 f2 f2 f2 f2 f2 f2 f8 f2 ^ ffff888194107380: f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 f2 ffff888194107400: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================