------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:618! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 6820 Comm: syz-executor.1 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+0x510/0x520 fs/hfsplus/bnode.c:618 Code: ff e9 bf fe ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c f3 fe ff ff 4c 89 ef e8 1b a3 7a ff e9 e6 fe ff ff e8 41 a2 1a ff 90 <0f> 0b e8 39 a2 1a ff 90 0f 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 RSP: 0018:ffffc900138e76d0 EFLAGS: 00010283 RAX: ffffffff827a520f RBX: ffff88802b06be80 RCX: 0000000000040000 RDX: ffffc9000a6c9000 RSI: 000000000000f61f RDI: 000000000000f620 RBP: 0000000000000000 R08: ffffffff827a4d80 R09: 1ffff1100560d7d0 R10: dffffc0000000000 R11: ffffed100560d7d1 R12: ffff88802b06be00 R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff88806272c000 FS: 00007f63048326c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b3042f000 CR3: 000000001f1de000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfsplus_bnode_find+0x3e8/0x10c0 fs/hfsplus/bnode.c:548 hfsplus_btree_write+0x24/0x4c0 fs/hfsplus/btree.c:289 hfsplus_system_write_inode fs/hfsplus/super.c:136 [inline] hfsplus_write_inode+0x4c4/0x5e0 fs/hfsplus/super.c:162 write_inode fs/fs-writeback.c:1498 [inline] __writeback_single_inode+0x69f/0xfd0 fs/fs-writeback.c:1715 writeback_single_inode+0x21b/0x7a0 fs/fs-writeback.c:1771 sync_inode_metadata+0xcc/0x140 fs/fs-writeback.c:2833 hfsplus_file_fsync+0xf8/0x4d0 fs/hfsplus/inode.c:317 generic_write_sync include/linux/fs.h:2793 [inline] generic_file_write_iter+0x2a1/0x310 mm/filemap.c:4055 call_write_iter include/linux/fs.h:2108 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa84/0xcb0 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f6303a7dda9 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:00007f63048320c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6303bac050 RCX: 00007f6303a7dda9 RDX: 000000000000f000 RSI: 0000000020000200 RDI: 0000000000000007 RBP: 00007f6303aca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f6303bac050 R15: 00007ffec6bfe218 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfsplus_bnode_put+0x510/0x520 fs/hfsplus/bnode.c:618 Code: ff e9 bf fe ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c f3 fe ff ff 4c 89 ef e8 1b a3 7a ff e9 e6 fe ff ff e8 41 a2 1a ff 90 <0f> 0b e8 39 a2 1a ff 90 0f 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 RSP: 0018:ffffc900138e76d0 EFLAGS: 00010283 RAX: ffffffff827a520f RBX: ffff88802b06be80 RCX: 0000000000040000 RDX: ffffc9000a6c9000 RSI: 000000000000f61f RDI: 000000000000f620 RBP: 0000000000000000 R08: ffffffff827a4d80 R09: 1ffff1100560d7d0 R10: dffffc0000000000 R11: ffffed100560d7d1 R12: ffff88802b06be00 R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff88806272c000 FS: 00007f63048326c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555817b6938 CR3: 000000001f1de000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400