================================================================== 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 ffffc90000007ab8 by task swapper/0/0 CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.152-syzkaller-1069667-g70e1a731d986 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 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:2886 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:1427 expire_timers kernel/time/timer.c:1472 [inline] __run_timers+0x72a/0xa10 kernel/time/timer.c:1743 run_timer_softirq+0x69/0xf0 kernel/time/timer.c:1756 __do_softirq+0x26d/0x5bf kernel/softirq.c:565 invoke_softirq kernel/softirq.c:425 [inline] __irq_exit_rcu+0x50/0xf0 kernel/softirq.c:648 irq_exit_rcu+0x9/0x10 kernel/softirq.c:660 sysvec_apic_timer_interrupt+0x9a/0xc0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:native_irq_disable arch/x86/include/asm/irqflags.h:40 [inline] RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:75 [inline] RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:110 [inline] RIP: 0010:acpi_idle_do_entry drivers/acpi/processor_idle.c:570 [inline] RIP: 0010:acpi_idle_enter+0x416/0x760 drivers/acpi/processor_idle.c:705 Code: 89 de 48 83 e6 08 31 ff e8 e7 1b 8b fc 48 83 e3 08 0f 85 b0 00 00 00 0f 1f 44 00 00 e8 93 17 8b fc 0f 00 2d ac 36 c4 00 fb f4 e9 e1 00 00 00 49 83 c7 04 4c 89 f8 48 c1 e8 03 42 0f b6 04 30 RSP: 0018:ffffffff86407bf0 EFLAGS: 000002d3 RAX: ffffffff84e528ad RBX: 0000000000000000 RCX: ffffffff8641d280 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffffff86407c30 R08: ffffffff84e52899 R09: fffffbfff0c83a51 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffff888102dea804 R14: dffffc0000000000 R15: ffff888106bff864 cpuidle_enter_state+0x5e1/0x1550 drivers/cpuidle/cpuidle.c:249 cpuidle_enter+0x5f/0xa0 drivers/cpuidle/cpuidle.c:364 call_cpuidle kernel/sched/idle.c:158 [inline] cpuidle_idle_call kernel/sched/idle.c:239 [inline] do_idle+0x36b/0x5d0 kernel/sched/idle.c:306 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:403 rest_init+0x10b/0x130 init/main.c:738 arch_call_rest_init+0xe/0x10 init/main.c:890 start_kernel+0x462/0x4ce init/main.c:1137 x86_64_start_reservations+0x2a/0x2c arch/x86/kernel/head64.c:527 x86_64_start_kernel+0x5b/0x5e arch/x86/kernel/head64.c:508 secondary_startup_64_no_verify+0xb1/0xbb Memory state around the buggy address: ffffc90000007980: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90000007a00: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 >ffffc90000007a80: 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 ^ ffffc90000007b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90000007b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 89 de mov %ebx,%esi 2: 48 83 e6 08 and $0x8,%rsi 6: 31 ff xor %edi,%edi 8: e8 e7 1b 8b fc call 0xfc8b1bf4 d: 48 83 e3 08 and $0x8,%rbx 11: 0f 85 b0 00 00 00 jne 0xc7 17: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 1c: e8 93 17 8b fc call 0xfc8b17b4 21: 0f 00 2d ac 36 c4 00 verw 0xc436ac(%rip) # 0xc436d4 28: fb sti 29: f4 hlt * 2a: fa cli <-- trapping instruction 2b: e9 e1 00 00 00 jmp 0x111 30: 49 83 c7 04 add $0x4,%r15 34: 4c 89 f8 mov %r15,%rax 37: 48 c1 e8 03 shr $0x3,%rax 3b: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax