hfsplus: small dir entry Oops: general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f] CPU: 0 UID: 0 PID: 5582 Comm: syz-executor Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 RIP: 0010:hfsplus_cat_write_inode+0xc4/0xb40 fs/hfsplus/inode.c:688 Code: 51 4a 89 44 2b 59 66 42 c7 44 2b 61 f3 f3 42 c6 44 2b 63 f3 e8 fd 4b 19 ff 4d 8d 7c 24 28 4c 89 f8 48 c1 e8 03 48 89 44 24 38 <42> 80 3c 28 00 74 08 4c 89 ff e8 0d 29 86 ff 41 be 28 08 00 00 4c RSP: 0018:ffffc9000501f880 EFLAGS: 00010206 RAX: 0000000000000005 RBX: 1ffff92000a03f18 RCX: ffff88801fb61f40 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000501fc30 R08: 0000000000000000 R09: 0000000000000000 R10: fffff52000a03f28 R11: fffffbfff21a45d8 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff888062c21590 R15: 0000000000000028 FS: 00005555857b3500(0000) GS:ffff8881247ad000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555857deaa8 CR3: 0000000056dbc000 CR4: 00000000003526f0 Call Trace: hfsplus_unlink+0x5e0/0x8e0 fs/hfsplus/dir.c:429 vfs_unlink+0x27b/0x6e0 fs/namei.c:5659 filename_unlinkat+0x3d3/0x610 fs/namei.c:5729 __do_sys_unlink fs/namei.c:5764 [inline] __se_sys_unlink+0x2e/0x140 fs/namei.c:5761 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4081bbe647 Code: 73 01 c3 48 c7 c1 e8 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 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffdf3028448 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f4081bbe647 RDX: 00007ffdf3028470 RSI: 00007ffdf3028500 RDI: 00007ffdf3028500 RBP: 00007ffdf3028500 R08: 00007ffdf3029500 R09: 00000000ffffffff R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffdf30295f0 R13: 00007f4081c55f63 R14: 00000000000219c3 R15: 00007ffdf302a6c0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hfsplus_cat_write_inode+0xc4/0xb40 fs/hfsplus/inode.c:688 Code: 51 4a 89 44 2b 59 66 42 c7 44 2b 61 f3 f3 42 c6 44 2b 63 f3 e8 fd 4b 19 ff 4d 8d 7c 24 28 4c 89 f8 48 c1 e8 03 48 89 44 24 38 <42> 80 3c 28 00 74 08 4c 89 ff e8 0d 29 86 ff 41 be 28 08 00 00 4c RSP: 0018:ffffc9000501f880 EFLAGS: 00010206 RAX: 0000000000000005 RBX: 1ffff92000a03f18 RCX: ffff88801fb61f40 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000501fc30 R08: 0000000000000000 R09: 0000000000000000 R10: fffff52000a03f28 R11: fffffbfff21a45d8 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff888062c21590 R15: 0000000000000028 FS: 00005555857b3500(0000) GS:ffff8881248ad000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9fbee13ff8 CR3: 0000000056dbc000 CR4: 00000000003526f0 ---------------- Code disassembly (best guess): 0: 51 push %rcx 1: 4a 89 44 2b 59 mov %rax,0x59(%rbx,%r13,1) 6: 66 42 c7 44 2b 61 f3 movw $0xf3f3,0x61(%rbx,%r13,1) d: f3 e: 42 c6 44 2b 63 f3 movb $0xf3,0x63(%rbx,%r13,1) 14: e8 fd 4b 19 ff call 0xff194c16 19: 4d 8d 7c 24 28 lea 0x28(%r12),%r15 1e: 4c 89 f8 mov %r15,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 48 89 44 24 38 mov %rax,0x38(%rsp) * 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 ff mov %r15,%rdi 34: e8 0d 29 86 ff call 0xff862946 39: 41 be 28 08 00 00 mov $0x828,%r14d 3f: 4c rex.WR