------------[ cut here ]------------ WARNING: CPU: 0 PID: 5183 at fs/hfsplus/bnode.c:573 hfsplus_bnode_create+0x14c/0x530 fs/hfsplus/bnode.c:573 Modules linked in: CPU: 0 PID: 5183 Comm: syz-executor229 Not tainted 6.9.0-rc1-syzkaller-00021-g962490525cff #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:hfsplus_bnode_create+0x14c/0x530 fs/hfsplus/bnode.c:573 Code: a9 22 ff 45 39 fc 75 9e e8 c1 af 22 ff 4c 89 f7 e8 19 95 76 08 e8 b4 af 22 ff 44 89 e6 48 c7 c7 c0 a7 48 8b e8 75 53 03 ff 90 <0f> 0b 90 e8 9c af 22 ff 48 89 d8 48 83 c4 18 5b 5d 41 5c 41 5d 41 RSP: 0018:ffffc9000302f048 EFLAGS: 00010286 RAX: 0000000000000023 RBX: ffff888023164900 RCX: ffffffff816e2739 RDX: 0000000000000000 RSI: ffffffff816eb476 RDI: 0000000000000005 RBP: ffff88801cd40000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000063 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff88801cd400e0 R15: 0000000000000000 FS: 000055558850f380(0000) GS:ffff88806b000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc1f28b098 CR3: 000000002d0d6000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfsplus_bmap_alloc+0x72c/0x830 fs/hfsplus/btree.c:415 hfs_btree_inc_height.isra.0+0x100/0x8c0 fs/hfsplus/brec.c:475 hfsplus_brec_insert+0xa02/0xc50 fs/hfsplus/brec.c:75 __hfsplus_ext_write_extent+0x4a0/0x5e0 fs/hfsplus/extents.c:107 __hfsplus_ext_cache_extent+0x98/0x9d0 fs/hfsplus/extents.c:186 hfsplus_ext_read_extent+0x200/0x250 fs/hfsplus/extents.c:218 hfsplus_file_extend+0x699/0x1090 fs/hfsplus/extents.c:461 hfsplus_get_block+0x1ae/0x9e0 fs/hfsplus/extents.c:245 get_more_blocks fs/direct-io.c:649 [inline] do_direct_IO fs/direct-io.c:937 [inline] __blockdev_direct_IO+0x2456/0x3d50 fs/direct-io.c:1250 blockdev_direct_IO include/linux/fs.h:3188 [inline] hfsplus_direct_IO+0x10c/0x2d0 fs/hfsplus/inode.c:130 generic_file_direct_write+0x139/0x3a0 mm/filemap.c:3899 __generic_file_write_iter+0x121/0x240 mm/filemap.c:4055 generic_file_write_iter+0xe7/0x350 mm/filemap.c:4095 call_write_iter include/linux/fs.h:2108 [inline] do_iter_readv_writev+0x504/0x780 fs/read_write.c:741 vfs_writev+0x36f/0xdb0 fs/read_write.c:971 do_pwritev+0x1b2/0x260 fs/read_write.c:1072 __do_sys_pwritev2 fs/read_write.c:1131 [inline] __se_sys_pwritev2 fs/read_write.c:1122 [inline] __x64_sys_pwritev2+0xef/0x160 fs/read_write.c:1122 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7fb9c829b679 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd006fbc98 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007ffd006fbe78 RCX: 00007fb9c829b679 RDX: 0000000000000001 RSI: 0000000020000680 RDI: 0000000000000004 RBP: 00007fb9c830e610 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000600 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffd006fbe68 R14: 0000000000000001 R15: 0000000000000001