==================================================================
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 ffffc900001d0ad8 by task syz-executor.0/607
CPU: 1 PID: 607 Comm: syz-executor.0 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:427 [inline]
kasan_report+0xf1/0x140 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+0x399/0x480 net/xfrm/xfrm_hash.h:95
xfrm_dst_hash net/xfrm/xfrm_state.c:63 [inline]
xfrm_state_find+0x28a/0x2a10 net/xfrm/xfrm_state.c:1092
xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2396 [inline]
xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2441 [inline]
xfrm_resolve_and_create_bundle+0x697/0x29f0 net/xfrm/xfrm_policy.c:2734
xfrm_bundle_lookup net/xfrm/xfrm_policy.c:2969 [inline]
xfrm_lookup_with_ifid+0x4e9/0x2080 net/xfrm/xfrm_policy.c:3100
xfrm_lookup net/xfrm/xfrm_policy.c:3197 [inline]
xfrm_lookup_route+0x3c/0x170 net/xfrm/xfrm_policy.c:3208
ip_route_output_flow+0x1f8/0x2f0 net/ipv4/route.c:2905
ip_route_output_ports include/net/route.h:169 [inline]
igmpv3_newpack+0x280/0xcd0 net/ipv4/igmp.c:372
add_grhead+0x75/0x2e0 net/ipv4/igmp.c:443
add_grec+0x116c/0x1410 net/ipv4/igmp.c:577
igmpv3_send_cr net/ipv4/igmp.c:714 [inline]
igmp_ifc_timer_expire+0x89e/0xf80 net/ipv4/igmp.c:813
call_timer_fn+0x38/0x290 kernel/time/timer.c:1459
expire_timers kernel/time/timer.c:1504 [inline]
__run_timers+0x650/0x9e0 kernel/time/timer.c:1775
run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1788
handle_softirqs+0x250/0x560 kernel/softirq.c:583
__do_softirq kernel/softirq.c:621 [inline]
invoke_softirq kernel/softirq.c:443 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670
irq_exit_rcu+0x9/0x10 kernel/softirq.c:682
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:unlink_anon_vmas+0x8e/0x590 mm/rmap.c:-1
Code: 45 a0 4c 89 75 c0 4d 89 e7 49 c1 ef 03 48 b8 00 00 00 00 00 fc ff df 41 80 3c 07 00 74 08 4c 89 e7 e8 56 21 07 00 49 8b 04 24 <48> 89 45 c8 49 8d 5c 24 f8 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00
RSP: 0018:ffffc90000df7770 EFLAGS: 00000246
RAX: ffff888113803e50 RBX: ffff88810de470b8 RCX: ffff8881164993c0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90000df77d0 R08: ffff88810de470cf R09: 1ffff11021bc8e19
R10: dffffc0000000000 R11: ffffed1021bc8e1a R12: ffff8881138031f0
R13: ffff88810de470b8 R14: ffff888113868818 R15: 1ffff1102270063e
free_pgtables+0x131/0x280 mm/memory.c:489
exit_mmap+0x433/0x8b0 mm/mmap.c:3247
__mmput+0x93/0x320 kernel/fork.c:1180
mmput+0x50/0x150 kernel/fork.c:1203
exit_mm kernel/exit.c:554 [inline]
do_exit+0x9f2/0x27e0 kernel/exit.c:876
do_group_exit+0x141/0x310 kernel/exit.c:1003
get_signal+0x66a/0x1480 kernel/signal.c:2907
arch_do_signal_or_restart+0xdf/0x11c0 arch/x86/kernel/signal.c:867
handle_signal_work kernel/entry/common.c:154 [inline]
exit_to_user_mode_loop+0xa7/0xe0 kernel/entry/common.c:178
exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:214
__syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:307
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f2a13cbaeb9
Code: Unable to access opcode bytes at RIP 0x7f2a13cbae8f.
RSP: 002b:00007f2a1384d178 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: 0000000000000001 RBX: 00007f2a13df9f88 RCX: 00007f2a13cbaeb9
RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007f2a13df9f8c
RBP: 00007f2a13df9f80 R08: 001bbf34851c7942 R09: 00007f2a1384dcdc
R10: ffffffffffffffff R11: 0000000000000246 R12: 00007f2a13df9f8c
R13: 000000000000000b R14: 00007ffeff13de20 R15: 00007ffeff13df08
Memory state around the buggy address:
ffffc900001d0980: f8 f8 f3 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00
ffffc900001d0a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc900001d0a80: f1 f1 f1 f1 00 00 00 00 00 00 00 f3 f3 f3 f3 f3
^
ffffc900001d0b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc900001d0b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
----------------
Code disassembly (best guess):
0: 45 a0 4c 89 75 c0 4d rex.RB movabs 0x49e7894dc075894c,%al
7: 89 e7 49
a: c1 ef 03 shr $0x3,%edi
d: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
14: fc ff df
17: 41 80 3c 07 00 cmpb $0x0,(%r15,%rax,1)
1c: 74 08 je 0x26
1e: 4c 89 e7 mov %r12,%rdi
21: e8 56 21 07 00 call 0x7217c
26: 49 8b 04 24 mov (%r12),%rax
* 2a: 48 89 45 c8 mov %rax,-0x38(%rbp) <-- trapping instruction
2e: 49 8d 5c 24 f8 lea -0x8(%r12),%rbx
33: 48 89 d8 mov %rbx,%rax
36: 48 c1 e8 03 shr $0x3,%rax
3a: 48 rex.W
3b: b9 00 00 00 00 mov $0x0,%ecx