================================================================== 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 ffffc90000007ad8 by task udevd/355 CPU: 0 PID: 355 Comm: udevd Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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:strcmp_prefix fs/xattr.c:33 [inline] RIP: 0010:xattr_resolve_name fs/xattr.c:69 [inline] RIP: 0010:__vfs_getxattr+0x232/0x3d0 fs/xattr.c:396 Code: 7d b8 e8 01 ab ee ff 4c 89 e2 eb 8d 44 89 f1 80 e1 07 38 c1 7c b0 4c 89 f7 e8 ea aa ee ff eb a6 e8 b3 77 af ff 4d 89 fc eb 1b a9 77 af ff 4d 89 fd 4c 8b 7d c0 48 8b 5d d0 eb 68 e8 97 77 af RSP: 0018:ffffc90000b379c8 EFLAGS: 00000293 RAX: ffffffff81ba51b6 RBX: 0000000000000079 RCX: ffff88810ec8e2c0 RDX: 0000000000000000 RSI: 0000000000000079 RDI: 0000000000000065 RBP: ffffc90000b37a48 R08: 0000000000000000 R09: 1ffff1102482020e R10: dffffc0000000000 R11: ffffed102482020f R12: ffffffff8560e722 R13: 0000000000000065 R14: ffffffff854cb682 R15: dffffc0000000000 cap_inode_need_killpriv+0x45/0x60 security/commoncap.c:301 security_inode_need_killpriv+0x62/0x90 security/security.c:1424 dentry_needs_remove_privs fs/inode.c:1999 [inline] file_remove_privs+0x22f/0x5c0 fs/inode.c:2040 __generic_file_write_iter+0x186/0x480 mm/filemap.c:3944 generic_file_write_iter+0xa9/0x1d0 mm/filemap.c:4030 call_write_iter include/linux/fs.h:2212 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x835/0xfd0 fs/read_write.c:594 ksys_write+0x149/0x250 fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:656 x64_sys_call+0x8ef/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f187b874407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffc2a2a10c0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f187b786880 RCX: 00007f187b874407 RDX: 0000000000000024 RSI: 000056036960af50 RDI: 0000000000000009 RBP: 000056036960af50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000024 R13: 00005603695b19b0 R14: 00007f187b9bcea0 R15: 00005603593989dd Memory state around the buggy address: ffffc90000007980: f8 f8 f3 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 ffffc90000007a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90000007a80: f1 f1 f1 f1 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 ^ 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: 7d b8 jge 0xffffffba 2: e8 01 ab ee ff call 0xffeeab08 7: 4c 89 e2 mov %r12,%rdx a: eb 8d jmp 0xffffff99 c: 44 89 f1 mov %r14d,%ecx f: 80 e1 07 and $0x7,%cl 12: 38 c1 cmp %al,%cl 14: 7c b0 jl 0xffffffc6 16: 4c 89 f7 mov %r14,%rdi 19: e8 ea aa ee ff call 0xffeeab08 1e: eb a6 jmp 0xffffffc6 20: e8 b3 77 af ff call 0xffaf77d8 25: 4d 89 fc mov %r15,%r12 28: eb 1b jmp 0x45 * 2a: e8 a9 77 af ff call 0xffaf77d8 <-- trapping instruction 2f: 4d 89 fd mov %r15,%r13 32: 4c 8b 7d c0 mov -0x40(%rbp),%r15 36: 48 8b 5d d0 mov -0x30(%rbp),%rbx 3a: eb 68 jmp 0xa4 3c: e8 .byte 0xe8 3d: 97 xchg %eax,%edi 3e: 77 af ja 0xffffffef