general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047] CPU: 0 PID: 8621 Comm: syz-executor.3 Not tainted 6.5.0-rc2-syzkaller-00338-g295e1388de2d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 RIP: 0010:hfsplus_rename_cat+0x4b6/0x1090 fs/hfsplus/catalog.c:480 Code: 03 48 89 44 24 60 42 80 3c 20 00 74 05 e8 32 46 82 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 06 46 82 ff 48 8b RSP: 0018:ffffc90007927780 EFLAGS: 00010202 RAX: 0000000000000008 RBX: 0000000000000040 RCX: 0000000000040000 RDX: ffff888023b47000 RSI: 0000000000004291 RDI: ffffc900079278a0 RBP: ffffc90007927bf0 R08: ffffffff8262f0f4 R09: 6d33a5df14000000 R10: 6d33a5df14000000 R11: 0000a5df6d33a5df R12: dffffc0000000000 R13: ffffc9000792786c R14: ffffc90007927900 R15: 1ffff92000f24f04 FS: 00007fb26425d6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa0b0cde000 CR3: 000000002a6f1000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfsplus_unlink+0x308/0x7f0 fs/hfsplus/dir.c:376 vfs_unlink+0x35d/0x5f0 fs/namei.c:4329 do_unlinkat+0x4a7/0x950 fs/namei.c:4395 __do_sys_unlink fs/namei.c:4443 [inline] __se_sys_unlink fs/namei.c:4441 [inline] __x64_sys_unlink+0x49/0x50 fs/namei.c:4441 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fb26da7cb29 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:00007fb26425d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007fb26db9c050 RCX: 00007fb26da7cb29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000100 RBP: 00007fb26dac847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fb26db9c050 R15: 00007ffd65c11af8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfsplus_rename_cat+0x4b6/0x1090 fs/hfsplus/catalog.c:480 Code: 03 48 89 44 24 60 42 80 3c 20 00 74 05 e8 32 46 82 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 06 46 82 ff 48 8b RSP: 0018:ffffc90007927780 EFLAGS: 00010202 RAX: 0000000000000008 RBX: 0000000000000040 RCX: 0000000000040000 RDX: ffff888023b47000 RSI: 0000000000004291 RDI: ffffc900079278a0 RBP: ffffc90007927bf0 R08: ffffffff8262f0f4 R09: 6d33a5df14000000 R10: 6d33a5df14000000 R11: 0000a5df6d33a5df R12: dffffc0000000000 R13: ffffc9000792786c R14: ffffc90007927900 R15: 1ffff92000f24f04 FS: 00007fb26425d6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7c64b75198 CR3: 000000002a6f1000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 03 48 89 add -0x77(%rax),%ecx 3: 44 24 60 rex.R and $0x60,%al 6: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) b: 74 05 je 0x12 d: e8 32 46 82 ff call 0xff824644 12: 48 8b 94 24 20 01 00 mov 0x120(%rsp),%rdx 19: 00 1a: 48 83 c3 40 add $0x40,%rbx 1e: 48 89 d8 mov %rbx,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 48 89 44 24 68 mov %rax,0x68(%rsp) * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 48 89 54 24 08 mov %rdx,0x8(%rsp) 34: 74 0d je 0x43 36: 48 89 df mov %rbx,%rdi 39: e8 06 46 82 ff call 0xff824644 3e: 48 rex.W 3f: 8b .byte 0x8b