------------[ cut here ]------------ WARNING: CPU: 1 PID: 6242 at fs/hfsplus/extents.c:346 hfsplus_free_extents+0x5c4/0x8d4 fs/hfsplus/extents.c:346 Modules linked in: CPU: 1 PID: 6242 Comm: syz.1.575 Not tainted 5.15.164-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hfsplus_free_extents+0x5c4/0x8d4 fs/hfsplus/extents.c:346 lr : hfsplus_free_extents+0x5c4/0x8d4 fs/hfsplus/extents.c:346 sp : ffff80001d057850 x29: ffff80001d057860 x28: ffff700003a0af2c x27: dfff800000000000 x26: dfff800000000000 x25: 0000000000000021 x24: ffff80001d057990 x23: ffff0000c1141820 x22: 000000000000002e x21: ffff0000dcdc2000 x20: 000000000000000d x19: ffff0000d27dca58 x18: ffff80001d057020 x17: 1fffe000368fab8e x16: ffff8000082ebf04 x15: 0000000000000004 x14: 1ffff0000295806a x13: dfff800000000000 x12: 0000000000040000 x11: 00000000000307af x10: ffff80001d729000 x9 : 00000000000307b0 x8 : ffff800008fb485c x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff8000082e0404 x2 : 0000000000000000 x1 : 0000000000000008 x0 : 0000000000000001 Call trace: hfsplus_free_extents+0x5c4/0x8d4 fs/hfsplus/extents.c:346 hfsplus_file_truncate+0x69c/0x9cc fs/hfsplus/extents.c:591 hfsplus_setattr+0x18c/0x25c fs/hfsplus/inode.c:267 notify_change+0xa34/0xcf8 fs/attr.c:505 do_truncate+0x1c0/0x28c fs/open.c:65 do_sys_ftruncate+0x288/0x31c fs/open.c:193 __do_sys_ftruncate fs/open.c:204 [inline] __se_sys_ftruncate fs/open.c:202 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:202 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 9778 hardirqs last enabled at (9777): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline] hardirqs last enabled at (9777): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4784 hardirqs last disabled at (9778): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (9286): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (9284): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace a779b0f28f6fe971 ]---