================================================================== BUG: KASAN: stack-out-of-bounds in jhash2 include/linux/jhash.h:137 [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+0x355/0x430 net/xfrm/xfrm_hash.h:95 Read of size 4 at addr ffff8881f6f09a78 by task kworker/1:1/24 CPU: 1 PID: 24 Comm: kworker/1:1 Not tainted 5.4.281-syzkaller-04937-gd883a2284ec1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: rcu_gp process_srcu Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 print_address_description+0x8c/0x600 mm/kasan/report.c:384 __kasan_report+0xf3/0x120 mm/kasan/report.c:516 kasan_report+0x30/0x60 mm/kasan/common.c:653 jhash2 include/linux/jhash.h:137 [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+0x355/0x430 net/xfrm/xfrm_hash.h:95 xfrm_dst_hash net/xfrm/xfrm_state.c:63 [inline] xfrm_state_find+0x2cc/0x2dc0 net/xfrm/xfrm_state.c:1063 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2397 [inline] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2442 [inline] xfrm_resolve_and_create_bundle+0x6aa/0x31d0 net/xfrm/xfrm_policy.c:2736 xfrm_bundle_lookup net/xfrm/xfrm_policy.c:2960 [inline] xfrm_lookup_with_ifid+0x549/0x1c90 net/xfrm/xfrm_policy.c:3091 xfrm_lookup net/xfrm/xfrm_policy.c:3183 [inline] xfrm_lookup_route+0x37/0x170 net/xfrm/xfrm_policy.c:3194 ip_route_output_flow+0x1fe/0x330 net/ipv4/route.c:2750 ip_route_output_ports include/net/route.h:163 [inline] igmpv3_newpack+0x437/0x1070 net/ipv4/igmp.c:374 add_grhead+0x75/0x2c0 net/ipv4/igmp.c:445 add_grec+0x12c9/0x15d0 net/ipv4/igmp.c:579 igmpv3_send_cr net/ipv4/igmp.c:716 [inline] igmp_ifc_timer_expire+0x7bc/0xea0 net/ipv4/igmp.c:814 call_timer_fn+0x36/0x390 kernel/time/timer.c:1448 expire_timers kernel/time/timer.c:1493 [inline] __run_timers+0x879/0xbe0 kernel/time/timer.c:1817 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1830 __do_softirq+0x23b/0x6b7 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x195/0x1c0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:539 [inline] smp_apic_timer_interrupt+0x11a/0x460 arch/x86/kernel/apic/apic.c:1149 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834 RIP: 0010:__sanitizer_cov_trace_cmp8+0x1a/0x70 kernel/kcov.c:255 Code: 74 0a 18 4c 89 44 0a 20 49 ff c1 4c 89 09 c3 90 4c 8b 04 24 65 48 8b 15 f4 52 9e 7e 65 8b 05 f9 52 9e 7e a9 00 01 1f 00 74 01 8b 82 00 0a 00 00 83 f8 03 75 f4 48 8b 8a 08 0a 00 00 44 8b 92 RSP: 0018:ffff8881f22f7bd0 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: ffffffff868e88c0 RCX: ffff8881f5cd8000 RDX: ffff8881f5cd8000 RSI: 0000000000000008 RDI: 0000000000000000 RBP: 000000000000059d R08: ffffffff822c3873 R09: ffffed103e45ef81 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: 1ffffffff0bd6ef9 R14: 0000000000000008 R15: ffffffff85eb7678 _find_next_bit lib/find_bit.c:36 [inline] find_next_bit+0x23/0x100 lib/find_bit.c:70 srcu_readers_unlock_idx kernel/rcu/srcutree.c:272 [inline] srcu_readers_active_idx_check kernel/rcu/srcutree.c:288 [inline] try_check_zero+0x6b/0x360 kernel/rcu/srcutree.c:704 srcu_advance_state kernel/rcu/srcutree.c:1146 [inline] process_srcu+0x1ab/0xc40 kernel/rcu/srcutree.c:1241 process_one_work+0x765/0xd20 kernel/workqueue.c:2290 worker_thread+0xaef/0x1470 kernel/workqueue.c:2436 kthread+0x2da/0x360 kernel/kthread.c:288 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354 The buggy address belongs to the page: page:ffffea0007dbc240 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x8000000000001000(reserved) raw: 8000000000001000 ffffea0007dbc248 ffffea0007dbc248 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff8881f6f09900: 00 00 00 00 00 00 f3 f3 f3 f3 f3 f3 00 00 00 00 ffff8881f6f09980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881f6f09a00: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 f3 ^ ffff8881f6f09a80: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881f6f09b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 74 0a je 0xc 2: 18 4c 89 44 sbb %cl,0x44(%rcx,%rcx,4) 6: 0a 20 or (%rax),%ah 8: 49 ff c1 inc %r9 b: 4c 89 09 mov %r9,(%rcx) e: c3 ret f: 90 nop 10: 4c 8b 04 24 mov (%rsp),%r8 14: 65 48 8b 15 f4 52 9e mov %gs:0x7e9e52f4(%rip),%rdx # 0x7e9e5310 1b: 7e 1c: 65 8b 05 f9 52 9e 7e mov %gs:0x7e9e52f9(%rip),%eax # 0x7e9e531c 23: a9 00 01 1f 00 test $0x1f0100,%eax 28: 74 01 je 0x2b * 2a: c3 ret <-- trapping instruction 2b: 8b 82 00 0a 00 00 mov 0xa00(%rdx),%eax 31: 83 f8 03 cmp $0x3,%eax 34: 75 f4 jne 0x2a 36: 48 8b 8a 08 0a 00 00 mov 0xa08(%rdx),%rcx 3d: 44 rex.R 3e: 8b .byte 0x8b 3f: 92 xchg %eax,%edx