hfsplus: bad catalog entry type Oops: general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047] CPU: 0 UID: 0 PID: 7362 Comm: syz-executor Not tainted 6.12.0-rc7-syzkaller-00189-ge8bdb3c8be08 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:hfsplus_rename_cat+0x4b3/0x1090 fs/hfsplus/catalog.c:480 Code: 60 42 80 3c 20 00 48 8b 5c 24 20 74 05 e8 95 8e 78 ff 48 8b 94 24 20 01 00 00 48 83 c3 40 48 89 d8 48 c1 e8 03 48 89 44 24 68 <42> 80 3c 20 00 48 89 54 24 08 74 0d 48 89 df e8 69 8e 78 ff 48 8b RSP: 0018:ffffc90004dcf760 EFLAGS: 00010212 RAX: 0000000000000008 RBX: 0000000000000040 RCX: ffff888026fa1e00 RDX: ffff888067475000 RSI: 0000000000000000 RDI: ffffc90004dcf880 RBP: ffffc90004dcfbd0 R08: ffffffff8286adc4 R09: 1ffff920009b9f3a R10: dffffc0000000000 R11: fffff520009b9f3b R12: dffffc0000000000 R13: ffffc90004dcf84c R14: ffffc90004dcf8e0 R15: 1ffff920009b9f00 FS: 0000555588056500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffed3a7af78 CR3: 000000006478e000 CR4: 0000000000350ef0 Call Trace: hfsplus_unlink+0x308/0x790 fs/hfsplus/dir.c:376 vfs_unlink+0x367/0x650 fs/namei.c:4469 do_unlinkat+0x4ae/0x830 fs/namei.c:4533 __do_sys_unlink fs/namei.c:4581 [inline] __se_sys_unlink fs/namei.c:4579 [inline] __x64_sys_unlink+0x47/0x50 fs/namei.c:4579 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1d15d7dcc7 Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffed3a7b728 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f1d15d7dcc7 RDX: 00007ffed3a7b750 RSI: 00007ffed3a7b7e0 RDI: 00007ffed3a7b7e0 RBP: 00007ffed3a7b7e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffed3a7c8d0 R13: 00007f1d15df15fc R14: 00000000000644d0 R15: 00007ffed3a7d990 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfsplus_rename_cat+0x4b3/0x1090 fs/hfsplus/catalog.c:480 Code: 60 42 80 3c 20 00 48 8b 5c 24 20 74 05 e8 95 8e 78 ff 48 8b 94 24 20 01 00 00 48 83 c3 40 48 89 d8 48 c1 e8 03 48 89 44 24 68 <42> 80 3c 20 00 48 89 54 24 08 74 0d 48 89 df e8 69 8e 78 ff 48 8b RSP: 0018:ffffc90004dcf760 EFLAGS: 00010212 RAX: 0000000000000008 RBX: 0000000000000040 RCX: ffff888026fa1e00 RDX: ffff888067475000 RSI: 0000000000000000 RDI: ffffc90004dcf880 RBP: ffffc90004dcfbd0 R08: ffffffff8286adc4 R09: 1ffff920009b9f3a R10: dffffc0000000000 R11: fffff520009b9f3b R12: dffffc0000000000 R13: ffffc90004dcf84c R14: ffffc90004dcf8e0 R15: 1ffff920009b9f00 FS: 0000555588056500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffed3a7af78 CR3: 000000006478e000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) 5: 48 8b 5c 24 20 mov 0x20(%rsp),%rbx a: 74 05 je 0x11 c: e8 95 8e 78 ff call 0xff788ea6 11: 48 8b 94 24 20 01 00 mov 0x120(%rsp),%rdx 18: 00 19: 48 83 c3 40 add $0x40,%rbx 1d: 48 89 d8 mov %rbx,%rax 20: 48 c1 e8 03 shr $0x3,%rax 24: 48 89 44 24 68 mov %rax,0x68(%rsp) * 29: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2e: 48 89 54 24 08 mov %rdx,0x8(%rsp) 33: 74 0d je 0x42 35: 48 89 df mov %rbx,%rdi 38: e8 69 8e 78 ff call 0xff788ea6 3d: 48 rex.W 3e: 8b .byte 0x8b