================================================================== BUG: KASAN: use-after-free in ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5967 [inline] BUG: KASAN: use-after-free in __ocfs2_flush_truncate_log+0x684/0xf6c fs/ocfs2/alloc.c:6062 Read of size 4 at addr ffff0000e5f0aac0 by task syz.5.360/8609 CPU: 1 UID: 0 PID: 8609 Comm: syz.5.360 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xa8/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0xb0/0x110 mm/kasan/report.c:595 __asan_report_load4_noabort+0x20/0x2c mm/kasan/report_generic.c:380 ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5967 [inline] __ocfs2_flush_truncate_log+0x684/0xf6c fs/ocfs2/alloc.c:6062 ocfs2_flush_truncate_log+0x4c/0x6c fs/ocfs2/alloc.c:6084 ocfs2_sync_fs+0xf8/0x2a4 fs/ocfs2/super.c:406 sync_filesystem+0x1a0/0x218 fs/sync.c:66 ocfs2_reconfigure+0x114/0x938 fs/ocfs2/super.c:616 reconfigure_super+0x1d4/0x6f0 fs/super.c:1077 do_remount fs/namespace.c:3324 [inline] path_mount+0xb34/0xde0 fs/namespace.c:4115 do_mount fs/namespace.c:4136 [inline] __do_sys_mount fs/namespace.c:4347 [inline] __se_sys_mount fs/namespace.c:4324 [inline] __arm64_sys_mount+0x3e8/0x468 fs/namespace.c:4324 __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+0x5c/0x254 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:763 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x1f6 pfn:0x125f0a flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000000 fffffdffc3f5c948 fffffdffc397c248 0000000000000000 raw: 00000000000001f6 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000e5f0a980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000e5f0aa00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff0000e5f0aa80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff0000e5f0ab00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000e5f0ab80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== (syz.5.360,8609,1):ocfs2_check_set_options:1244 ERROR: Invalid heartbeat mount options