loop6: detected capacity change from 0 to 1024 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8247 at fs/hfsplus/extents.c:346 hfsplus_free_extents+0x5c4/0x8d4 fs/hfsplus/extents.c:346 Modules linked in: CPU: 0 PID: 8247 Comm: syz.6.645 Not tainted 6.1.126-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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 : ffff8000211f7710 x29: ffff8000211f7720 x28: ffff70000423ef04 x27: dfff800000000000 x26: dfff800000000000 x25: 0000000000000041 x24: 0000000000000042 x23: ffff0000da97d020 x22: 000000000000001b x21: ffff0000cc604000 x20: 0000000000000001 x19: ffff0000d8bcded8 x18: ffff8000211f7240 x17: ffff800018b7c000 x16: ffff800008975814 x15: 0000000000000002 x14: 00000000fffffffe x13: 03000000b2000000 x12: 0000000000080000 x11: 00000000000271c1 x10: ffff80002a56e000 x9 : ffff80000907b32c x8 : 00000000000271c2 x7 : 030000007d000000 x6 : 100000005d000000 x5 : ffff0000d8bcdf18 x4 : ffff0000f77710a6 x3 : ffff8000082f6a3c x2 : 0000000000000000 x1 : 0000000000000008 x0 : 0000000000000001 Call trace: hfsplus_free_extents+0x5c4/0x8d4 fs/hfsplus/extents.c:346 hfsplus_file_truncate+0x458/0xa18 fs/hfsplus/extents.c:608 hfsplus_file_release+0xe8/0x3a0 fs/hfsplus/inode.c:238 __fput+0x1c8/0x7c8 fs/file_table.c:320 ____fput+0x20/0x30 fs/file_table.c:348 task_work_run+0x240/0x2f0 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2080/0x2cb8 arch/arm64/kernel/signal.c:1132 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 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: 47718 hardirqs last enabled at (47717): [] folio_memcg_lock+0xf4/0x20c mm/memcontrol.c:2110 hardirqs last disabled at (47718): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (46706): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (46706): [] release_sock+0x178/0x1cc net/core/sock.c:3514 softirqs last disabled at (46702): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (46702): [] release_sock+0x3c/0x1cc net/core/sock.c:3501 ---[ end trace 0000000000000000 ]---