================================================================== BUG: KASAN: use-after-free in ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1445 [inline] BUG: KASAN: use-after-free in ocfs2_claim_suballoc_bits+0x950/0x1e0c fs/ocfs2/suballoc.c:1982 Read of size 4 at addr ffff0000ddd60000 by task syz.1.241/7835 CPU: 1 UID: 0 PID: 7835 Comm: syz.1.241 Not tainted 6.13.0-rc3-syzkaller-g573067a5a685 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:466 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x198/0x538 mm/kasan/report.c:489 kasan_report+0xd8/0x138 mm/kasan/report.c:602 __asan_report_load4_noabort+0x20/0x2c mm/kasan/report_generic.c:380 ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1445 [inline] ocfs2_claim_suballoc_bits+0x950/0x1e0c fs/ocfs2/suballoc.c:1982 ocfs2_claim_metadata+0x154/0x4f8 fs/ocfs2/suballoc.c:2057 ocfs2_create_xattr_block+0x1f0/0xb28 fs/ocfs2/xattr.c:2883 ocfs2_xattr_block_set+0x1e8/0x2b30 fs/ocfs2/xattr.c:2965 __ocfs2_xattr_set_handle+0x598/0xe10 fs/ocfs2/xattr.c:3387 ocfs2_xattr_set_handle+0x500/0x824 fs/ocfs2/xattr.c:3512 ocfs2_init_security_set+0xb4/0xd8 fs/ocfs2/xattr.c:7307 ocfs2_mknod+0x1408/0x2438 fs/ocfs2/namei.c:419 ocfs2_create+0x194/0x4d4 fs/ocfs2/namei.c:674 lookup_open fs/namei.c:3649 [inline] open_last_lookups fs/namei.c:3748 [inline] path_openat+0x13e4/0x2b14 fs/namei.c:3984 do_filp_open+0x1e8/0x404 fs/namei.c:4014 do_sys_openat2+0x124/0x1b8 fs/open.c:1402 do_sys_open fs/open.c:1417 [inline] __do_sys_openat fs/open.c:1433 [inline] __se_sys_openat fs/open.c:1428 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1428 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x77d pfn:0x11dd60 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000000 fffffdffc3828fc8 fffffdffc3775848 0000000000000000 raw: 000000000000077d 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000ddd5ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000ddd5ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000ddd60000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff0000ddd60080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000ddd60100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== OCFS2: ERROR (device loop1): int ocfs2_validate_gd_self(struct super_block *, struct buffer_head *, int): Group descriptor #0 has bad signature  On-disk corruption discovered. Please run fsck.ocfs2 once the filesystem is unmounted. OCFS2: File system is now read-only. (syz.1.241,7835,1):ocfs2_search_chain:1814 ERROR: status = -30 (syz.1.241,7835,1):ocfs2_search_chain:1926 ERROR: status = -30 (syz.1.241,7835,1):ocfs2_claim_suballoc_bits:1995 ERROR: status = -30 (syz.1.241,7835,0):ocfs2_claim_suballoc_bits:2038 ERROR: status = -30 (syz.1.241,7835,0):ocfs2_claim_metadata:2063 ERROR: status = -30 (syz.1.241,7835,0):ocfs2_claim_metadata:2076 ERROR: status = -30 (syz.1.241,7835,0):ocfs2_create_xattr_block:2887 ERROR: status = -30 (syz.1.241,7835,0):ocfs2_xattr_block_set:2968 ERROR: status = -30 (syz.1.241,7835,1):ocfs2_mknod:422 ERROR: status = -30 (syz.1.241,7835,1):ocfs2_mknod:502 ERROR: status = -30 (syz.1.241,7835,1):ocfs2_create:676 ERROR: status = -30 bond0: (slave ipvlan1): enslaved VLAN challenged slave. Adding VLANs will be blocked as long as it is part of bond. bond0: (slave ipvlan1): The slave device specified does not support setting the MAC address bond0: (slave ipvlan1): Error -95 calling set_mac_address netlink: 20 bytes leftover after parsing attributes in process `syz.1.241'. IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE IPv6: NLM_F_CREATE should be set when creating new route IPv6: NLM_F_CREATE should be set when creating new route