netlink: 8 bytes leftover after parsing attributes in process `syz.4.225'. ================================================================== 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+0x399/0x480 net/xfrm/xfrm_hash.h:95 Read of size 4 at addr ffffc90000da6b38 by task syz.4.225/1180 CPU: 0 PID: 1180 Comm: syz.4.225 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0xe2/0x130 mm/kasan/report.c:452 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 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+0x399/0x480 net/xfrm/xfrm_hash.h:95 xfrm_dst_hash net/xfrm/xfrm_state.c:63 [inline] xfrm_state_find+0x28c/0x28b0 net/xfrm/xfrm_state.c:1068 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2398 [inline] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2443 [inline] xfrm_resolve_and_create_bundle+0x697/0x29f0 net/xfrm/xfrm_policy.c:2736 xfrm_bundle_lookup net/xfrm/xfrm_policy.c:2971 [inline] xfrm_lookup_with_ifid+0x7ea/0x1a80 net/xfrm/xfrm_policy.c:3102 xfrm_lookup net/xfrm/xfrm_policy.c:3194 [inline] xfrm_lookup_route+0x3c/0x170 net/xfrm/xfrm_policy.c:3205 ip_route_output_flow+0x1f8/0x2f0 net/ipv4/route.c:2808 ip_route_output_key include/net/route.h:142 [inline] ip_tunnel_bind_dev+0x25d/0x740 net/ipv4/ip_tunnel.c:299 ip_tunnel_newlink+0x692/0xc00 net/ipv4/ip_tunnel.c:1157 ipgre_newlink+0x2c7/0x3c0 net/ipv4/ip_gre.c:1380 __rtnl_newlink net/core/rtnetlink.c:3485 [inline] rtnl_newlink+0x1310/0x18f0 net/core/rtnetlink.c:3533 rtnetlink_rcv_msg+0xa31/0xcc0 net/core/rtnetlink.c:5613 netlink_rcv_skb+0x1f5/0x440 net/netlink/af_netlink.c:2503 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5631 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x876/0xa40 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x89c/0xb50 net/netlink/af_netlink.c:1914 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg net/socket.c:664 [inline] ____sys_sendmsg+0x5b7/0x8f0 net/socket.c:2376 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2430 __sys_sendmmsg+0x2ab/0x4c0 net/socket.c:2516 __do_sys_sendmmsg net/socket.c:2545 [inline] __se_sys_sendmmsg net/socket.c:2542 [inline] __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2542 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f033c82ae59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f033b285028 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f033caa3fa0 RCX: 00007f033c82ae59 RDX: 04000000000001f2 RSI: 0000200000000000 RDI: 0000000000000005 RBP: 00007f033c8c0d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f033caa4038 R14: 00007f033caa3fa0 R15: 00007ffd4bb49be8 addr ffffc90000da6b38 is located in stack of task syz.4.225/1180 at offset 88 in frame: ip_tunnel_bind_dev+0x0/0x740 this frame has 1 object: [32, 88) 'fl4' Memory state around the buggy address: ffffc90000da6a00: f8 f8 f3 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 ffffc90000da6a80: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 >ffffc90000da6b00: 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 ^ ffffc90000da6b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90000da6c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================