------------[ cut here ]------------ kernel BUG at fs/hfsplus/bnode.c:618! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 10780 Comm: syz-executor.3 Not tainted 6.8.0-syzkaller-01185-g855684c7d938 #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 3e a1 7e ff 41 8b 54 24 38 31 f6 48 89 ef e8 af de ff ff e9 a2 fe ff ff e8 95 6d 25 ff 90 <0f> 0b 48 8b 7c 24 08 e8 18 a1 7e ff e9 32 fd ff ff 48 89 df e8 0b RSP: 0018:ffffc90004f1f158 EFLAGS: 00010283 RAX: 000000000003dbec RBX: ffff88801b3a5c80 RCX: ffffc9000b130000 RDX: 0000000000040000 RSI: ffffffff82677d7b RDI: 0000000000000005 RBP: ffff88801b3a5c00 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000005 R12: ffff88802178c000 R13: 0000000000000000 R14: 1ffff920009e3e3e R15: ffff88802178c0e0 FS: 00007f8a011786c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020014000 CR3: 0000000035218000 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_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 __block_write_begin_int+0x4fb/0x16e0 fs/buffer.c:2105 __block_write_begin fs/buffer.c:2154 [inline] block_write_begin+0xb1/0x4a0 fs/buffer.c:2213 cont_write_begin+0x53d/0x740 fs/buffer.c:2567 hfsplus_write_begin+0x87/0x150 fs/hfsplus/inode.c:47 generic_perform_write+0x272/0x620 mm/filemap.c:3921 __generic_file_write_iter+0x1fd/0x240 mm/filemap.c:4016 generic_file_write_iter+0xe7/0x350 mm/filemap.c:4042 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:0x7f8a0047dda9 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:00007f8a011780c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f8a005abf80 RCX: 00007f8a0047dda9 RDX: 00000000007b9c0b RSI: 0000000020000300 RDI: 0000000000000007 RBP: 00007f8a004ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f8a005abf80 R15: 00007ffe2a279778 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 3e a1 7e ff 41 8b 54 24 38 31 f6 48 89 ef e8 af de ff ff e9 a2 fe ff ff e8 95 6d 25 ff 90 <0f> 0b 48 8b 7c 24 08 e8 18 a1 7e ff e9 32 fd ff ff 48 89 df e8 0b RSP: 0018:ffffc90004f1f158 EFLAGS: 00010283 RAX: 000000000003dbec RBX: ffff88801b3a5c80 RCX: ffffc9000b130000 RDX: 0000000000040000 RSI: ffffffff82677d7b RDI: 0000000000000005 RBP: ffff88801b3a5c00 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000005 R12: ffff88802178c000 R13: 0000000000000000 R14: 1ffff920009e3e3e R15: ffff88802178c0e0 FS: 00007f8a011786c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30f2e000 CR3: 0000000035218000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400