================================================================== BUG: KASAN: use-after-free in ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5959 [inline] BUG: KASAN: use-after-free in __ocfs2_flush_truncate_log+0x64c/0xf30 fs/ocfs2/alloc.c:6053 Read of size 4 at addr ffff0000eebfaab8 by task syz-executor/4712 CPU: 0 PID: 4712 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x78/0x30c mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xec/0x15c mm/kasan/report.c:451 __asan_report_load4_noabort+0x44/0x50 mm/kasan/report_generic.c:308 ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5959 [inline] __ocfs2_flush_truncate_log+0x64c/0xf30 fs/ocfs2/alloc.c:6053 ocfs2_flush_truncate_log+0x48/0x68 fs/ocfs2/alloc.c:6075 ocfs2_sync_fs+0xf8/0x2a4 fs/ocfs2/super.c:403 sync_filesystem+0x1a0/0x218 fs/sync.c:66 generic_shutdown_super+0x70/0x2f0 fs/super.c:448 kill_block_super+0x70/0xdc fs/super.c:1427 deactivate_locked_super+0xb8/0x13c fs/super.c:335 deactivate_super+0xf8/0x118 fs/super.c:366 cleanup_mnt+0x3a4/0x458 fs/namespace.c:1139 __cleanup_mnt+0x20/0x30 fs/namespace.c:1146 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] do_notify_resume+0x24b4/0x3128 arch/arm64/kernel/signal.c:949 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the page: page:0000000030a9f184 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12ebfa flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000000 fffffc0003bafe88 fffffc0003bafe88 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000eebfa980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000eebfaa00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff0000eebfaa80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff0000eebfab00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000eebfab80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== (syz-executor,4712,1):ocfs2_read_blocks:239 ERROR: status = -12 (syz-executor,4712,1):_ocfs2_free_suballoc_bits:2479 ERROR: status = -12 (syz-executor,4712,1):_ocfs2_free_clusters:2573 ERROR: status = -12 (syz-executor,4712,1):ocfs2_replay_truncate_records:5975 ERROR: status = -12 (syz-executor,4712,1):__ocfs2_flush_truncate_log:6056 ERROR: status = -12 (syz-executor,4712,1):ocfs2_sync_fs:405 ERROR: status = -12