==================================================================
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_dst_hash net/xfrm/xfrm_state.c:64 [inline]
BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x5f79/0x6d80 net/xfrm/xfrm_state.c:1159
Read of size 4 at addr ffffc900001e0ad0 by task udevd/4433
CPU: 1 PID: 4433 Comm: udevd Not tainted 6.2.0-rc1-syzkaller-00095-ge4cf7c25bae5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:306 [inline]
print_report+0x15e/0x45d mm/kasan/report.c:417
kasan_report+0xbf/0x1f0 mm/kasan/report.c:517
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_dst_hash net/xfrm/xfrm_state.c:64 [inline]
xfrm_state_find+0x5f79/0x6d80 net/xfrm/xfrm_state.c:1159
xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2467 [inline]
xfrm_tmpl_resolve+0x2f3/0xd40 net/xfrm/xfrm_policy.c:2512
xfrm_resolve_and_create_bundle+0x123/0x2580 net/xfrm/xfrm_policy.c:2805
xfrm_bundle_lookup net/xfrm/xfrm_policy.c:3040 [inline]
xfrm_lookup_with_ifid+0x449/0x20f0 net/xfrm/xfrm_policy.c:3171
xfrm_lookup net/xfrm/xfrm_policy.c:3268 [inline]
xfrm_lookup_route+0x3a/0x1e0 net/xfrm/xfrm_policy.c:3279
ip_route_output_flow+0x118/0x150 net/ipv4/route.c:2880
ip_route_output_ports include/net/route.h:183 [inline]
igmpv3_newpack+0x29d/0x1110 net/ipv4/igmp.c:369
add_grhead+0x266/0x300 net/ipv4/igmp.c:440
add_grec+0xea5/0x1100 net/ipv4/igmp.c:574
igmpv3_send_cr net/ipv4/igmp.c:711 [inline]
igmp_ifc_timer_expire+0x636/0xf70 net/ipv4/igmp.c:810
call_timer_fn+0x1da/0x7c0 kernel/time/timer.c:1700
expire_timers+0x2c6/0x5c0 kernel/time/timer.c:1751
__run_timers kernel/time/timer.c:2022 [inline]
__run_timers kernel/time/timer.c:1995 [inline]
run_timer_softirq+0x326/0x910 kernel/time/timer.c:2035
__do_softirq+0x1fb/0xadc kernel/softirq.c:571
invoke_softirq kernel/softirq.c:445 [inline]
__irq_exit_rcu+0x123/0x180 kernel/softirq.c:650
irq_exit_rcu+0x9/0x20 kernel/softirq.c:662
sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1107
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:unwind_get_return_address arch/x86/kernel/unwind_orc.c:342 [inline]
RIP: 0010:unwind_get_return_address+0x46/0xa0 arch/x86/kernel/unwind_orc.c:337
Code: 04 02 84 c0 74 04 3c 03 7e 51 8b 03 85 c0 75 05 5b 31 c0 5d c3 48 8d 6b 48 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea 03 <80> 3c 02 00 75 32 48 8b 7b 48 e8 1b 23 1b 00 85 c0 74 d3 48 b8 00
RSP: 0018:ffffc9000318f970 EFLAGS: 00000a06
RAX: dffffc0000000000 RBX: ffffc9000318f988 RCX: 0000000000000000
RDX: 1ffff92000631f3a RSI: ffffc9000318fd20 RDI: ffffc9000318f988
RBP: ffffc9000318f9d0 R08: ffffffff8f02dd6a R09: ffffc9000318f9bc
R10: fffff52000631f3c R11: ffffc9000318fd48 R12: ffffc9000318fa40
R13: 0000000000000000 R14: ffff88807dbb3a80 R15: 0000000000001000
arch_stack_walk+0x97/0xf0 arch/x86/kernel/stacktrace.c:26
stack_trace_save+0x90/0xc0 kernel/stacktrace.c:122
kasan_save_stack+0x22/0x40 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
__kasan_slab_alloc+0x82/0x90 mm/kasan/common.c:325
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slab.h:761 [inline]
slab_alloc_node mm/slub.c:3452 [inline]
slab_alloc mm/slub.c:3460 [inline]
__kmem_cache_alloc_lru mm/slub.c:3467 [inline]
kmem_cache_alloc+0x1e4/0x430 mm/slub.c:3476
getname_flags.part.0+0x50/0x4f0 fs/namei.c:139
getname_flags include/linux/audit.h:320 [inline]
getname+0x92/0xd0 fs/namei.c:218
do_sys_openat2+0xf5/0x4c0 fs/open.c:1304
do_sys_open fs/open.c:1326 [inline]
__do_sys_openat fs/open.c:1342 [inline]
__se_sys_openat fs/open.c:1337 [inline]
__x64_sys_openat+0x143/0x1f0 fs/open.c:1337
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7efc31325697
Code: 25 00 00 41 00 3d 00 00 41 00 74 37 64 8b 04 25 18 00 00 00 85 c0 75 5b 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 85 00 00 00 48 83 c4 68 5d 41 5c c3 0f 1f
RSP: 002b:00007fff1e502270 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 000055f281ea3040 RCX: 00007efc31325697
RDX: 0000000000080141 RSI: 000055f281e860d8 RDI: 00000000ffffff9c
RBP: 000055f281e860d8 R08: 00000000ffffffff R09: 0000000000000000
R10: 00000000000001a4 R11: 0000000000000246 R12: 0000000000080141
R13: ffffffffffffffff R14: 00000000ffffffff R15: 00000000ffffffff
The buggy address belongs to the virtual mapping at
[ffffc900001d9000, ffffc900001e2000) created by:
map_irq_stack arch/x86/kernel/irq_64.c:48 [inline]
irq_init_percpu_irqstack+0x1d0/0x320 arch/x86/kernel/irq_64.c:75
The buggy address belongs to the physical page:
page:ffffea0002e64240 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb9909
flags: 0xfff00000001000(reserved|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000001000 ffffea0002e64248 ffffea0002e64248 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:
ffffc900001e0980: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc900001e0a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1
>ffffc900001e0a80: f1 f1 00 00 00 00 00 00 00 00 f3 f3 f3 f3 00 00
^
ffffc900001e0b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc900001e0b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1
==================================================================
----------------
Code disassembly (best guess):
0: 04 02 add $0x2,%al
2: 84 c0 test %al,%al
4: 74 04 je 0xa
6: 3c 03 cmp $0x3,%al
8: 7e 51 jle 0x5b
a: 8b 03 mov (%rbx),%eax
c: 85 c0 test %eax,%eax
e: 75 05 jne 0x15
10: 5b pop %rbx
11: 31 c0 xor %eax,%eax
13: 5d pop %rbp
14: c3 retq
15: 48 8d 6b 48 lea 0x48(%rbx),%rbp
19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
20: fc ff df
23: 48 89 ea mov %rbp,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 75 32 jne 0x62
30: 48 8b 7b 48 mov 0x48(%rbx),%rdi
34: e8 1b 23 1b 00 callq 0x1b2354
39: 85 c0 test %eax,%eax
3b: 74 d3 je 0x10
3d: 48 rex.W
3e: b8 .byte 0xb8