================================================================== 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+0x38d/0x460 net/xfrm/xfrm_hash.h:95 Read of size 4 at addr ffffc900009879f8 by task syz-execprog/342 CPU: 0 PID: 342 Comm: syz-execprog Not tainted 5.15.178-syzkaller-1079147-g7d1f9b5c2ff5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1c0 lib/dump_stack.c:106 print_address_description+0x87/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x179/0x1c0 mm/kasan/report.c:444 __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+0x38d/0x460 net/xfrm/xfrm_hash.h:95 xfrm_dst_hash net/xfrm/xfrm_state.c:63 [inline] xfrm_state_find+0x2f1/0x2f70 net/xfrm/xfrm_state.c:1092 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2393 [inline] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2438 [inline] xfrm_resolve_and_create_bundle+0x65a/0x2b70 net/xfrm/xfrm_policy.c:2731 xfrm_bundle_lookup net/xfrm/xfrm_policy.c:2966 [inline] xfrm_lookup_with_ifid+0x6fc/0x20d0 net/xfrm/xfrm_policy.c:3097 xfrm_lookup net/xfrm/xfrm_policy.c:3194 [inline] xfrm_lookup_route+0x3b/0x160 net/xfrm/xfrm_policy.c:3205 ip_route_output_flow+0x1ef/0x310 net/ipv4/route.c:2887 ip_route_output_ports include/net/route.h:169 [inline] igmpv3_newpack+0x437/0x10d0 net/ipv4/igmp.c:372 add_grhead+0x84/0x330 net/ipv4/igmp.c:443 add_grec+0x12ca/0x15d0 net/ipv4/igmp.c:577 igmpv3_send_cr net/ipv4/igmp.c:714 [inline] igmp_ifc_timer_expire+0x83b/0xf50 net/ipv4/igmp.c:813 call_timer_fn+0x3b/0x2d0 kernel/time/timer.c:1457 expire_timers kernel/time/timer.c:1502 [inline] __run_timers+0x72a/0xa10 kernel/time/timer.c:1773 run_timer_softirq+0x69/0xf0 kernel/time/timer.c:1786 handle_softirqs+0x25e/0x5c0 kernel/softirq.c:565 __do_softirq kernel/softirq.c:603 [inline] invoke_softirq kernel/softirq.c:425 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:652 irq_exit_rcu+0x9/0x10 kernel/softirq.c:664 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0x58/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0033:0x6c6636 Code: f1 75 5a 48 8d 70 08 83 3d c6 60 83 01 00 74 13 0f 1f 40 00 e8 1b c8 da ff 49 89 33 4c 8b 09 4d 89 4b 08 48 89 31 48 8b 72 30 <4c> 8b 4a 38 4c 8b 52 28 48 89 71 10 4c 89 49 18 83 3d 93 60 83 01 RSP: 002b:000000c00111eeb0 EFLAGS: 00000246 RAX: 000000c0010beae0 RBX: 0000000000911860 RCX: 000000c00112b800 RDX: 0000000001481160 RSI: 000000000000000a RDI: 000000c00111fc48 RBP: 000000c00111f020 R08: 0000000001efb9c7 R09: 0000000000c85f50 R10: 0000000000000010 R11: 0000000000c7f2a0 R12: 000000c00111ef30 R13: 0000000000000000 R14: 000000c0008ce540 R15: 000000007fffffff addr ffffc900009879f8 is located in stack of task syz-execprog/342 at offset 88 in frame: igmpv3_newpack+0x0/0x10d0 this frame has 1 object: [32, 88) 'fl4' Memory state around the buggy address: ffffc90000987880: 00 00 00 00 00 00 f3 f3 f3 f3 f3 f3 00 00 00 00 ffffc90000987900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90000987980: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 f3 ^ ffffc90000987a00: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90000987a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================