loop0: detected capacity change from 0 to 1024 general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047] CPU: 0 PID: 5057 Comm: syz-executor122 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:hfsplus_rename_cat+0x4b3/0x1050 fs/hfsplus/catalog.c:480 Code: 60 42 80 3c 20 00 48 8b 5c 24 20 74 05 e8 65 5e 7b 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 39 5e 7b ff 48 8b RSP: 0018:ffffc90004017740 EFLAGS: 00010202 RAX: 0000000000000008 RBX: 0000000000000040 RCX: ffff88801eccbc00 RDX: ffff8880792e5000 RSI: 0000000000000000 RDI: ffffc90004017860 RBP: ffffc90004017bb0 R08: ffffffff827a0ca4 R09: 6d33a5df14000000 R10: 6d33a5df14000000 R11: 0000a5df6d33a5df R12: dffffc0000000000 R13: ffffc9000401782c R14: ffffc900040178c0 R15: 1ffff92000802efc FS: 00005555835c5380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc6b929000 CR3: 000000007b13e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfsplus_unlink+0x308/0x790 fs/hfsplus/dir.c:376 vfs_unlink+0x365/0x600 fs/namei.c:4338 do_unlinkat+0x4ae/0x830 fs/namei.c:4402 __do_sys_unlinkat fs/namei.c:4445 [inline] __se_sys_unlinkat fs/namei.c:4438 [inline] __x64_sys_unlinkat+0xce/0xf0 fs/namei.c:4438 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f1bca3ef789 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc6b928828 EFLAGS: 00000246 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f1bca3ef789 RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000003 RBP: 00007f1bca462610 R08: 0000000000000000 R09: 00007ffc6b9289f8 R10: 00007ffc6b9286f0 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffc6b9289e8 R14: 0000000000000001 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfsplus_rename_cat+0x4b3/0x1050 fs/hfsplus/catalog.c:480 Code: 60 42 80 3c 20 00 48 8b 5c 24 20 74 05 e8 65 5e 7b 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 39 5e 7b ff 48 8b RSP: 0018:ffffc90004017740 EFLAGS: 00010202 RAX: 0000000000000008 RBX: 0000000000000040 RCX: ffff88801eccbc00 RDX: ffff8880792e5000 RSI: 0000000000000000 RDI: ffffc90004017860 RBP: ffffc90004017bb0 R08: ffffffff827a0ca4 R09: 6d33a5df14000000 R10: 6d33a5df14000000 R11: 0000a5df6d33a5df R12: dffffc0000000000 R13: ffffc9000401782c R14: ffffc900040178c0 R15: 1ffff92000802efc FS: 00005555835c5380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc6b929000 CR3: 000000007b13e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- 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 65 5e 7b ff call 0xff7b5e76 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 39 5e 7b ff call 0xff7b5e76 3d: 48 rex.W 3e: 8b .byte 0x8b