================================================================== 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 syz-executor.0/407 CPU: 1 PID: 407 Comm: syz-executor.0 Not tainted 5.4.274-syzkaller-04911-g6f97bd951d82 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 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:2752 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:538 [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:crc32_body lib/crc32.c:110 [inline] RIP: 0010:crc32_le_generic lib/crc32.c:179 [inline] RIP: 0010:__crc32c_le_base+0x108/0xd20 lib/crc32.c:202 Code: 8d 14 85 00 89 fa 84 4c 89 d0 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 98 01 00 00 89 d8 c1 e8 10 0f b6 c0 4c 8d 1c 85 00 85 fa 84 <4c> 89 d8 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 b5 01 00 00 c1 eb 18 RSP: 0018:ffff8881f0e477f8 EFLAGS: 00000a07 ORIG_RAX: ffffffffffffff13 RAX: 000000000000006a RBX: 000000009c6a840d RCX: ffff8881f31e8fc0 RDX: dffffc0000000000 RSI: 000000000000000f RDI: ffff8881eeaf0474 RBP: 000000000000000e R08: ffff8881eeaf0478 R09: ffffffff84fa8d34 R10: ffffffff84fa8b10 R11: ffffffff84fa86a8 R12: ffffffff84fa7354 R13: ffffffff84fa7bc8 R14: 00000000e805eb7f R15: ffff8881eeaf0400 chksum_update+0x42/0x90 crypto/crc32c_generic.c:90 crypto_shash_update+0x1db/0x2a0 crypto/shash.c:132 ext4_chksum fs/ext4/ext4.h:2145 [inline] ext4_superblock_csum fs/ext4/super.c:183 [inline] ext4_superblock_csum_set+0x28e/0x3f0 fs/ext4/super.c:204 __ext4_handle_dirty_super+0xbc/0x380 fs/ext4/ext4_jbd2.c:323 ext4_orphan_add+0x52e/0x8e0 fs/ext4/namei.c:3111 ext4_rmdir+0x6a7/0x9e0 fs/ext4/namei.c:3281 vfs_rmdir+0x285/0x3c0 fs/namei.c:4027 do_rmdir+0x2c1/0x580 fs/namei.c:4088 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 RIP: 0033:0x7ff3f06ee147 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 07 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd13858bf8 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007ff3f06ee147 RDX: 0000000000000200 RSI: 00007ffd13859d70 RDI: 00000000ffffff9c RBP: 00007ff3f0749aa2 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000207 R12: 00007ffd13859d70 R13: 00007ff3f0749aa2 R14: 000000000000a0f5 R15: 0000000000000004 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: 8d 14 85 00 89 fa 84 lea -0x7b057700(,%rax,4),%edx 7: 4c 89 d0 mov %r10,%rax a: 48 c1 e8 03 shr $0x3,%rax e: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax 12: 84 c0 test %al,%al 14: 0f 85 98 01 00 00 jne 0x1b2 1a: 89 d8 mov %ebx,%eax 1c: c1 e8 10 shr $0x10,%eax 1f: 0f b6 c0 movzbl %al,%eax 22: 4c 8d 1c 85 00 85 fa lea -0x7b057b00(,%rax,4),%r11 29: 84 * 2a: 4c 89 d8 mov %r11,%rax <-- trapping instruction 2d: 48 c1 e8 03 shr $0x3,%rax 31: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax 35: 84 c0 test %al,%al 37: 0f 85 b5 01 00 00 jne 0x1f2 3d: c1 eb 18 shr $0x18,%ebx