loop3: detected capacity change from 0 to 1024 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 9959 at fs/hfsplus/extents.c:346 hfsplus_free_extents+0x5c4/0x8d4 fs/hfsplus/extents.c:346 Modules linked in: CPU: 1 PID: 9959 Comm: syz-executor.3 Not tainted 6.1.84-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 60400005 (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 : ffff80001e8d7870 x29: ffff80001e8d7880 x28: ffff700003d1af30 x27: 000000000000002b x26: dfff800000000000 x25: 0000000000000031 x24: ffff0000f5a32f50 x23: ffff0000d0948020 x22: 000000000000000c x21: ffff0000cb0a0000 x20: 0000000000000006 x19: ffff0000f5a32f98 x18: ffff0000cb0a2018 x17: ffff80001583d000 x16: ffff8000089788e0 x15: 0000000000000002 x14: 00000000fffffffe x13: 0000000000000000 x12: 0000000000040000 x11: 000000000003ffff x10: ffff8000205eb000 x9 : ffff800009077f00 x8 : 0000000000040000 x7 : 0000000000000000 x6 : 0c00000035000000 x5 : ffff0000f5a32fd8 x4 : ffff0001068ac05a x3 : ffff8000082fb5b8 x2 : 0000000000000000 x1 : 0000000000000008 x0 : 0000000000000001 Call trace: hfsplus_free_extents+0x5c4/0x8d4 fs/hfsplus/extents.c:346 hfsplus_file_truncate+0x5fc/0x9b8 fs/hfsplus/extents.c:606 hfsplus_setattr+0x18c/0x25c fs/hfsplus/inode.c:269 notify_change+0xb58/0xe1c fs/attr.c:499 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/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 5628 hardirqs last enabled at (5627): [] folio_memcg_lock+0xf4/0x20c mm/memcontrol.c:2110 hardirqs last disabled at (5628): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (5510): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (5510): [] __do_softirq+0xc1c/0xe38 kernel/softirq.c:600 softirqs last disabled at (5497): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]---