================================================================== 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_state_find+0x590d/0x5ec0 net/xfrm/xfrm_state.c:1421 Read of size 4 at addr ffffc9000ef1e6c8 by task syz.8.5481/30248 CPU: 0 UID: 0 PID: 30248 Comm: syz.8.5481 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 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_state_find+0x590d/0x5ec0 net/xfrm/xfrm_state.c:1421 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2513 [inline] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2564 [inline] xfrm_resolve_and_create_bundle+0x7f3/0x3070 net/xfrm/xfrm_policy.c:2862 xfrm_bundle_lookup net/xfrm/xfrm_policy.c:3097 [inline] xfrm_lookup_with_ifid+0x576/0x1b40 net/xfrm/xfrm_policy.c:3228 xfrm_lookup net/xfrm/xfrm_policy.c:3327 [inline] xfrm_lookup_route+0x3c/0x1c0 net/xfrm/xfrm_policy.c:3338 ip_route_output_key include/net/route.h:179 [inline] ip_tunnel_xmit+0x6ce/0x2040 net/ipv4/ip_tunnel.c:782 sit_tunnel_xmit__ net/ipv6/sit.c:1056 [inline] sit_tunnel_xmit+0x63f/0x1c60 net/ipv6/sit.c:-1 __netdev_start_xmit include/linux/netdevice.h:5387 [inline] netdev_start_xmit include/linux/netdevice.h:5396 [inline] xmit_one net/core/dev.c:3889 [inline] dev_hard_start_xmit+0x2cd/0x830 net/core/dev.c:3905 __dev_queue_xmit+0x1435/0x37f0 net/core/dev.c:4872 neigh_output include/net/neighbour.h:560 [inline] ip_finish_output2+0xc4b/0x10b0 net/ipv4/ip_output.c:236 NF_HOOK_COND include/linux/netfilter.h:307 [inline] ip_output+0x29f/0x450 net/ipv4/ip_output.c:437 __ip_queue_xmit+0x10df/0x1b10 net/ipv4/ip_output.c:533 __tcp_transmit_skb+0x2d18/0x47c0 net/ipv4/tcp_output.c:1717 tcp_transmit_skb net/ipv4/tcp_output.c:1734 [inline] tcp_send_syn_data net/ipv4/tcp_output.c:4285 [inline] tcp_connect+0x3417/0x53e0 net/ipv4/tcp_output.c:4374 tcp_v4_connect+0x1051/0x1950 net/ipv4/tcp_ipv4.c:345 __inet_stream_connect+0x258/0xe00 net/ipv4/af_inet.c:684 tcp_sendmsg_fastopen+0x3af/0x5f0 net/ipv4/tcp.c:1085 tcp_sendmsg_locked+0x4cdc/0x55c0 net/ipv4/tcp.c:1181 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1451 sock_sendmsg_nosec+0x10e/0x180 net/socket.c:776 __sock_sendmsg net/socket.c:790 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2684 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2738 __sys_sendmsg net/socket.c:2770 [inline] __do_sys_sendmsg net/socket.c:2775 [inline] __se_sys_sendmsg net/socket.c:2773 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2773 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fceec19ce59 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:00007fceed0b6028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fceec415fa0 RCX: 00007fceec19ce59 RDX: 000000003000c085 RSI: 0000200000000080 RDI: 000000000000000b RBP: 00007fceec232e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fceec416038 R14: 00007fceec415fa0 R15: 00007ffc11318118 The buggy address belongs to stack of task syz.8.5481/30248 and is located at offset 104 in frame: ip_tunnel_xmit+0x0/0x2040 include/net/route.h:-1 This frame has 2 objects: [32, 33) 'protocol.addr' [48, 104) 'fl4' The buggy address belongs to a 8-page vmalloc region starting at 0xffffc9000ef18000 allocated at copy_process+0x81b/0x42e0 kernel/fork.c:2110 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7aaf6 memcg:ffff88805635c182 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 ffffea0001eabd90 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff88805635c182 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x29c2(GFP_NOWAIT|__GFP_HIGHMEM|__GFP_IO|__GFP_FS|__GFP_ZERO), pid 30238, tgid 30238 (syz.8.5480), ts 930488539711, free_ts 930461366114 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1859 prep_new_page mm/page_alloc.c:1867 [inline] get_page_from_freelist+0x21fa/0x2270 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5304 alloc_pages_mpol+0x212/0x380 mm/mempolicy.c:2490 alloc_frozen_pages_noprof mm/mempolicy.c:2561 [inline] alloc_pages_noprof+0xac/0x2a0 mm/mempolicy.c:2581 vm_area_alloc_pages mm/vmalloc.c:3667 [inline] __vmalloc_area_node mm/vmalloc.c:3892 [inline] __vmalloc_node_range_noprof+0x795/0x1730 mm/vmalloc.c:4082 __vmalloc_node_noprof+0xc2/0x100 mm/vmalloc.c:4143 alloc_thread_stack_node kernel/fork.c:359 [inline] dup_task_struct+0x28e/0x850 kernel/fork.c:929 copy_process+0x81b/0x42e0 kernel/fork.c:2110 kernel_clone+0x2d7/0x940 kernel/fork.c:2746 __do_sys_clone3 kernel/fork.c:3048 [inline] __se_sys_clone3+0x33c/0x360 kernel/fork.c:3027 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 27958 tgid 27958 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0xc1f/0xd10 mm/page_alloc.c:2950 __slab_free+0x274/0x2c0 mm/slub.c:5672 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4610 [inline] slab_alloc_node mm/slub.c:4939 [inline] __do_kmalloc_node mm/slub.c:5333 [inline] __kmalloc_noprof+0x312/0x750 mm/slub.c:5347 _kmalloc_noprof include/linux/slab.h:973 [inline] tomoyo_realpath_from_path+0xef/0x640 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x283/0x560 security/tomoyo/file.c:827 security_inode_getattr+0x12b/0x310 security/security.c:1895 vfs_getattr fs/stat.c:259 [inline] vfs_fstat fs/stat.c:281 [inline] __do_sys_newfstat fs/stat.c:551 [inline] __se_sys_newfstat fs/stat.c:546 [inline] __x64_sys_newfstat+0x133/0x270 fs/stat.c:546 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffffc9000ef1e580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000ef1e600: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 >ffffc9000ef1e680: 01 f2 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 f3 f3 ^ ffffc9000ef1e700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000ef1e780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================