------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:618! invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 1 PID: 17045 Comm: syz-executor.2 Not tainted 6.8.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/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 de f9 7e ff 41 8b 54 24 38 31 f6 48 89 ef e8 af de ff ff e9 a2 fe ff ff e8 b5 45 25 ff 90 <0f> 0b 48 8b 7c 24 08 e8 b8 f9 7e ff e9 32 fd ff ff 48 89 df e8 ab RSP: 0018:ffffc900157474d8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff888022b8c480 RCX: ffffc90009ead000 RDX: 0000000000040000 RSI: ffffffff82672cfb RDI: 0000000000000005 RBP: ffff888022b8c400 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000005 R12: ffff888041594000 R13: 0000000000000000 R14: 1ffff92002ae8eae R15: ffff8880415940e0 FS: 00007f9ef82596c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0591aee8 CR3: 000000002428e000 CR4: 0000000000350ef0 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:1473 [inline] __writeback_single_inode+0xa9a/0xe90 fs/fs-writeback.c:1690 writeback_single_inode+0x2b5/0x5a0 fs/fs-writeback.c:1746 sync_inode_metadata+0xa5/0xe0 fs/fs-writeback.c:2808 hfsplus_file_fsync+0x115/0x5d0 fs/hfsplus/inode.c:317 vfs_fsync_range+0x144/0x230 fs/sync.c:188 generic_write_sync include/linux/fs.h:2734 [inline] generic_file_write_iter+0x2ac/0x350 mm/filemap.c:4055 call_write_iter include/linux/fs.h:2087 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0x6e1/0x1110 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+0xd8/0x270 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f9ef747dda9 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:00007f9ef82590c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f9ef75abf80 RCX: 00007f9ef747dda9 RDX: 00000000000101bf RSI: 0000000020000380 RDI: 0000000000000007 RBP: 00007f9ef74ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f9ef75abf80 R15: 00007ffdd61efb58 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 de f9 7e ff 41 8b 54 24 38 31 f6 48 89 ef e8 af de ff ff e9 a2 fe ff ff e8 b5 45 25 ff 90 <0f> 0b 48 8b 7c 24 08 e8 b8 f9 7e ff e9 32 fd ff ff 48 89 df e8 ab RSP: 0018:ffffc900157474d8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff888022b8c480 RCX: ffffc90009ead000 RDX: 0000000000040000 RSI: ffffffff82672cfb RDI: 0000000000000005 RBP: ffff888022b8c400 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000005 R12: ffff888041594000 R13: 0000000000000000 R14: 1ffff92002ae8eae R15: ffff8880415940e0 FS: 00007f9ef82596c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c0108ad000 CR3: 000000002428e000 CR4: 0000000000350ef0