------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:618! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 5658 Comm: syz-executor.4 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 RIP: 0010:hfsplus_bnode_put.part.0+0x3ac/0x440 fs/hfsplus/bnode.c:618 Code: b6 04 02 84 c0 74 09 3c 03 7f 05 e8 8e 4e 7e ff 41 8b 54 24 38 31 f6 48 89 ef e8 bf de ff ff e9 a2 fe ff ff e8 55 17 24 ff 90 <0f> 0b 48 8b 7c 24 08 e8 68 4e 7e ff e9 32 fd ff ff 48 89 df e8 5b RSP: 0018:ffffc900041ff4d0 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff88802e781a80 RCX: ffffc90005421000 RDX: 0000000000040000 RSI: ffffffff8268e15b RDI: 0000000000000005 RBP: ffff88802e781a00 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff9348eff8 R12: ffff88801e3d2000 R13: 0000000000000000 R14: 1ffff9200083fead R15: ffff88801e3d20e0 FS: 00007f6a73df56c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f46ebdead58 CR3: 000000005c474000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfsplus_bnode_put fs/hfsplus/bnode.c:549 [inline] hfsplus_bnode_find+0x370/0xcb0 fs/hfsplus/bnode.c:548 hfsplus_bmap_alloc+0x10e/0x830 fs/hfsplus/btree.c:390 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_write_extent_locked fs/hfsplus/extents.c:139 [inline] hfsplus_ext_write_extent_locked fs/hfsplus/extents.c:129 [inline] hfsplus_ext_write_extent+0x1c9/0x210 fs/hfsplus/extents.c:150 hfsplus_write_inode+0x22/0x4f0 fs/hfsplus/super.c:154 write_inode fs/fs-writeback.c:1498 [inline] __writeback_single_inode+0xa9a/0xe90 fs/fs-writeback.c:1715 writeback_single_inode+0x2b5/0x5a0 fs/fs-writeback.c:1771 sync_inode_metadata+0xa5/0xe0 fs/fs-writeback.c:2833 hfsplus_file_fsync+0x115/0x5d0 fs/hfsplus/inode.c:317 vfs_fsync_range+0x141/0x230 fs/sync.c:188 generic_write_sync include/linux/fs.h:2793 [inline] generic_file_write_iter+0x2ac/0x350 mm/filemap.c:4055 call_write_iter include/linux/fs.h:2108 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0x6db/0x1100 fs/read_write.c:590 ksys_write+0x12f/0x260 fs/read_write.c:643 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:0x7f6a7307dda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6a73df50c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6a731abf80 RCX: 00007f6a7307dda9 RDX: 000000000000fea0 RSI: 0000000020000040 RDI: 0000000000000008 RBP: 00007f6a730ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f6a731abf80 R15: 00007fff942f2458 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfsplus_bnode_put.part.0+0x3ac/0x440 fs/hfsplus/bnode.c:618 Code: b6 04 02 84 c0 74 09 3c 03 7f 05 e8 8e 4e 7e ff 41 8b 54 24 38 31 f6 48 89 ef e8 bf de ff ff e9 a2 fe ff ff e8 55 17 24 ff 90 <0f> 0b 48 8b 7c 24 08 e8 68 4e 7e ff e9 32 fd ff ff 48 89 df e8 5b RSP: 0018:ffffc900041ff4d0 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff88802e781a80 RCX: ffffc90005421000 RDX: 0000000000040000 RSI: ffffffff8268e15b RDI: 0000000000000005 RBP: ffff88802e781a00 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff9348eff8 R12: ffff88801e3d2000 R13: 0000000000000000 R14: 1ffff9200083fead R15: ffff88801e3d20e0 FS: 00007f6a73df56c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30829000 CR3: 000000005c474000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400