------------[ cut here ]------------ WARNING: CPU: 1 PID: 5955 at fs/hfsplus/extents.c:346 hfsplus_free_extents+0x5c4/0x8d4 fs/hfsplus/extents.c:346 Modules linked in: CPU: 1 PID: 5955 Comm: syz.5.442 Not tainted 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 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 : ffff800020d872b0 x29: ffff800020d872c0 x28: ffff7000041b0e78 x27: dfff800000000000 x26: dfff800000000000 x25: 0000000000000000 x24: 0000000000000040 x23: ffff0000d311f020 x22: 0000000000000015 x21: ffff0000c65fe000 x20: 0000000000000040 x19: ffff0000eb779b58 x18: 0000000000000000 x17: 0000000000000002 x16: ffff8000088d8138 x15: 00000000000000ff x14: 0000000000000001 x13: 0000000000ff0100 x12: 0000000000080000 x11: 000000000001c1f0 x10: ffff800028520000 x9 : 000000000001c1f1 x8 : ffff800008fb98a8 x7 : 0000010001ff0000 x6 : 0000000000000000 x5 : ffff800020d871a2 x4 : ffff0000ec93bffe x3 : ffff8000082e15ac x2 : 0000000000000000 x1 : 0000000000000008 x0 : 0000000000000001 Call trace: hfsplus_free_extents+0x5c4/0x8d4 fs/hfsplus/extents.c:346 hfsplus_file_truncate+0x45c/0xa2c fs/hfsplus/extents.c:608 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 handle_truncate fs/namei.c:3265 [inline] do_open fs/namei.c:3612 [inline] path_openat+0x20c4/0x26cc fs/namei.c:3742 do_filp_open+0x1a8/0x3b4 fs/namei.c:3769 do_sys_openat2+0x128/0x3e0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1280 __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: 678 hardirqs last enabled at (677): [] lock_page_memcg+0x11c/0x244 mm/memcontrol.c:2061 hardirqs last disabled at (678): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (284): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (284): [] handle_softirqs+0xb88/0xdbc kernel/softirq.c:586 softirqs last disabled at (251): [] __do_softirq kernel/softirq.c:592 [inline] softirqs last disabled at (251): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (251): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (251): [] __irq_exit_rcu+0x268/0x4d8 kernel/softirq.c:641 ---[ end trace 2a387e536d7f7554 ]---