================================================================== BUG: KASAN: stack-out-of-bounds in jhash2 include/linux/jhash.h:138 [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:63 [inline] BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x44e9/0x4d10 net/xfrm/xfrm_state.c:1068 Read of size 4 at addr ffffc90001cdf240 by task syz-executor.3/19940 CPU: 0 PID: 19940 Comm: syz-executor.3 Not tainted 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x141/0x1d7 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5/0x2f8 mm/kasan/report.c:232 __kasan_report mm/kasan/report.c:399 [inline] kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:416 jhash2 include/linux/jhash.h:138 [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:63 [inline] xfrm_state_find+0x44e9/0x4d10 net/xfrm/xfrm_state.c:1068 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2394 [inline] xfrm_tmpl_resolve+0x2f3/0xd40 net/xfrm/xfrm_policy.c:2439 xfrm_resolve_and_create_bundle+0x123/0x2590 net/xfrm/xfrm_policy.c:2729 xfrm_bundle_lookup net/xfrm/xfrm_policy.c:2964 [inline] xfrm_lookup_with_ifid+0x44d/0x20e0 net/xfrm/xfrm_policy.c:3095 xfrm_lookup net/xfrm/xfrm_policy.c:3187 [inline] xfrm_lookup_route+0x36/0x1e0 net/xfrm/xfrm_policy.c:3198 ip_route_output_flow+0x114/0x150 net/ipv4/route.c:2733 udp_sendmsg+0x1a2f/0x2730 net/ipv4/udp.c:1206 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:821 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:674 rxrpc_send_data_packet+0x172c/0x1e70 net/rxrpc/output.c:447 rxrpc_queue_packet net/rxrpc/sendmsg.c:258 [inline] rxrpc_send_data+0x15f2/0x2bf0 net/rxrpc/sendmsg.c:437 rxrpc_do_sendmsg+0xc03/0x1350 net/rxrpc/sendmsg.c:744 rxrpc_sendmsg+0x420/0x630 net/rxrpc/af_rxrpc.c:560 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:674 ____sys_sendmsg+0x331/0x810 net/socket.c:2350 ___sys_sendmsg+0xf3/0x170 net/socket.c:2404 __sys_sendmmsg+0x195/0x470 net/socket.c:2490 __do_sys_sendmmsg net/socket.c:2519 [inline] __se_sys_sendmmsg net/socket.c:2516 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2516 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x466459 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff50940b188 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 000000000056c0b0 RCX: 0000000000466459 RDX: 040000000000037b RSI: 0000000020005c00 RDI: 0000000000000005 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000ff6c R11: 0000000000000246 R12: 000000000056c0b0 R13: 00007fffe49ac13f R14: 00007ff50940b300 R15: 0000000000022000 addr ffffc90001cdf240 is located in stack of task syz-executor.3/19940 at offset 232 in frame: udp_sendmsg+0x0/0x2730 net/ipv4/udp.c:2361 this frame has 6 objects: [48, 52) '__unused_flags' [64, 72) 'rt' [96, 136) 'ipc' [176, 232) 'fl4_stack' [272, 328) 'cork' [368, 440) 'opt_copy' Memory state around the buggy address: ffffc90001cdf100: 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f1 ffffc90001cdf180: f1 04 f2 00 f2 f2 f2 00 00 00 00 00 f2 f2 f2 f2 >ffffc90001cdf200: f2 00 00 00 00 00 00 00 f2 f2 f2 f2 f2 00 00 00 ^ ffffc90001cdf280: 00 00 00 00 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 ffffc90001cdf300: 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 ==================================================================