Oops: general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047] CPU: 0 UID: 0 PID: 5327 Comm: syz.0.0 Not tainted 6.16.0-rc2-syzkaller-00162-g41687a5c6f8b #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:hfsplus_rename_cat+0x3b1/0xde0 fs/hfsplus/catalog.c:480 Code: 0f b7 84 24 40 01 00 00 66 89 44 24 18 48 8b 9c 24 e0 00 00 00 48 8b 44 24 08 4c 8d 70 40 4c 89 f0 48 c1 e8 03 48 89 44 24 40 <42> 80 3c 20 00 74 08 4c 89 f7 e8 c0 96 8c ff 4c 89 74 24 48 45 8b RSP: 0018:ffffc9000d78f5c0 EFLAGS: 00010202 RAX: 0000000000000008 RBX: ffff88803312e000 RCX: 0000000000100000 RDX: ffffc9000ea53000 RSI: 00000000000054c6 RDI: 00000000000054c7 RBP: ffffc9000d78f9f0 R08: 0000000002000200 R09: a7007be41a000000 R10: a7007be41a000000 R11: a7007be4a7007be4 R12: dffffc0000000000 R13: 1ffff92001af1ec4 R14: 0000000000000040 R15: 0000000000000000 FS: 00007f14cf09c6c0(0000) GS:ffff88808d251000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f14cf09bfc8 CR3: 00000000429e8000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hfsplus_unlink+0x2e7/0x730 fs/hfsplus/dir.c:376 hfsplus_rename+0xcb/0x1c0 fs/hfsplus/dir.c:547 vfs_rename+0xb99/0xec0 fs/namei.c:5137 do_renameat2+0x878/0xc50 fs/namei.c:5286 __do_sys_rename fs/namei.c:5333 [inline] __se_sys_rename fs/namei.c:5331 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:5331 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f14ce18e929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f14cf09c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f14ce3b6080 RCX: 00007f14ce18e929 RDX: 0000000000000000 RSI: 0000200000000f40 RDI: 0000200000000600 RBP: 00007f14ce210b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f14ce3b6080 R15: 00007ffdf9af9348 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfsplus_rename_cat+0x3b1/0xde0 fs/hfsplus/catalog.c:480 Code: 0f b7 84 24 40 01 00 00 66 89 44 24 18 48 8b 9c 24 e0 00 00 00 48 8b 44 24 08 4c 8d 70 40 4c 89 f0 48 c1 e8 03 48 89 44 24 40 <42> 80 3c 20 00 74 08 4c 89 f7 e8 c0 96 8c ff 4c 89 74 24 48 45 8b RSP: 0018:ffffc9000d78f5c0 EFLAGS: 00010202 RAX: 0000000000000008 RBX: ffff88803312e000 RCX: 0000000000100000 RDX: ffffc9000ea53000 RSI: 00000000000054c6 RDI: 00000000000054c7 RBP: ffffc9000d78f9f0 R08: 0000000002000200 R09: a7007be41a000000 R10: a7007be41a000000 R11: a7007be4a7007be4 R12: dffffc0000000000 R13: 1ffff92001af1ec4 R14: 0000000000000040 R15: 0000000000000000 FS: 00007f14cf09c6c0(0000) GS:ffff88808d251000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055ed9af34168 CR3: 00000000429e8000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 0f b7 84 24 40 01 00 movzwl 0x140(%rsp),%eax 7: 00 8: 66 89 44 24 18 mov %ax,0x18(%rsp) d: 48 8b 9c 24 e0 00 00 mov 0xe0(%rsp),%rbx 14: 00 15: 48 8b 44 24 08 mov 0x8(%rsp),%rax 1a: 4c 8d 70 40 lea 0x40(%rax),%r14 1e: 4c 89 f0 mov %r14,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 48 89 44 24 40 mov %rax,0x40(%rsp) * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 f7 mov %r14,%rdi 34: e8 c0 96 8c ff call 0xff8c96f9 39: 4c 89 74 24 48 mov %r14,0x48(%rsp) 3e: 45 rex.RB 3f: 8b .byte 0x8b