general protection fault in hfsplus_cat_write_inode

Status: upstream: reported C repro on 2026/04/13 21:50
Subsystems: hfs
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+c0ba772a362e70937dfb@syzkaller.appspotmail.com
First crash: 175d, last: 2d06h
Cause bisection: failed (error log, bisect log)
  
Fix bisection: failed (error log, bisect log)
  
✨ AI Jobs (3)
ID Workflow Result Correct Bug Created Started Finished Revision
b6785c19 assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ✅ NetworkTrigger: ❌ PeripheralTrigger: ✅ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ general protection fault in hfsplus_cat_write_inode 2026/05/30 11:02 2026/05/30 11:02 2026/05/30 11:50 6b4a8443
edd1d195 assessment-security 💥 general protection fault in hfsplus_cat_write_inode 2026/05/14 09:45 2026/05/14 09:45 2026/05/14 09:46 6ccb967e
3ea65e15 repro 💥 general protection fault in hfsplus_cat_write_inode 2026/03/06 09:18 2026/03/06 09:18 2026/03/06 09:34 31e9c887
Discussions (10)
Title Replies (including bot) Last reply
[PATCH v7] hfsplus: fix null-ptr-deref by creating hidden dir on remount rw 2 (2) 2026/07/17 18:10
[PATCH v6] hfsplus: fix null-ptr-deref by creating hidden dir on remount rw 3 (3) 2026/07/17 13:53
[syzbot] [hfs?] general protection fault in hfsplus_cat_write_inode 0 (6) 2026/07/14 09:23
[syzbot] Monthly hfs report (Jul 2026) 0 (1) 2026/07/04 12:32
[PATCH v5] hfsplus: fix null-ptr-deref by creating hidden dir on remount rw 2 (2) 2026/05/04 22:58
[PATCH v4] hfsplus: fix null-ptr-deref by creating hidden dir on remount rw 3 (3) 2026/05/02 14:49
[PATCH v3] hfsplus: fix null-ptr-deref in hfsplus_cat_write_inode 4 (4) 2026/04/22 17:50
[PATCH v2] hfsplus: fix ignored error return in hfsplus_delete_cat 4 (4) 2026/04/15 21:20
[PATCH] hfsplus: fix ignored error return in hfsplus_delete_cat 2 (2) 2026/04/14 01:57
[PATCH] hfsplus: fix ignored error return in hfsplus_delete_cat 2 (2) 2026/04/14 01:51
Last patch testing requests (6)
Created Duration User Patch Repo Result
2026/07/14 09:23 19m kartikey406@gmail.com patch upstream log
2026/05/17 01:30 18m retest repro upstream log
2026/04/29 01:58 1h41m kartikey406@gmail.com patch upstream error
2026/04/28 09:23 1h41m kartikey406@gmail.com patch upstream error
2026/04/14 23:36 24m kartikey406@gmail.com patch upstream OK log
2026/04/13 23:02 32m kartikey406@gmail.com patch upstream OK log

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
CPU: 1 UID: 0 PID: 5987 Comm: syz.0.22 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:hfsplus_cat_write_inode+0xc4/0x9c0 fs/hfsplus/inode.c:680
Code: 51 4a 89 44 2b 59 66 42 c7 44 2b 61 f3 f3 42 c6 44 2b 63 f3 e8 bd 75 1e 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 5d eb 87 ff 41 be 18 08 00 00 4c
RSP: 0018:ffffc900041cf680 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 1ffff92000839ed8 RCX: ffff88802e3f9f00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900041cfa30 R08: 0000000000000000 R09: 0000000000000000
R10: fffff52000839ee8 R11: fffffbfff1f5e927 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff88802aa71c50 R15: 0000000000000028
FS:  00007f91127ae6c0(0000) GS:ffff888125d46000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3db8322000 CR3: 00000000380de000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 hfsplus_unlink+0x5e0/0x8e0 fs/hfsplus/dir.c:429
 hfsplus_rename+0xd5/0x280 fs/hfsplus/dir.c:591
 vfs_rename+0xbd9/0xef0 fs/namei.c:6074
 filename_renameat2+0x533/0x9b0 fs/namei.c:6192
 __do_sys_rename fs/namei.c:6236 [inline]
 __se_sys_rename+0x55/0x2c0 fs/namei.c:6232
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f911314e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f91127ae028 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f91133d5fa0 RCX: 00007f911314e0d9
RDX: 0000000000000000 RSI: 0000200000000240 RDI: 0000200000000880
RBP: 00007f91131e5024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f91133d6038 R14: 00007f91133d5fa0 R15: 00007ffeded30248
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:hfsplus_cat_write_inode+0xc4/0x9c0 fs/hfsplus/inode.c:680
Code: 51 4a 89 44 2b 59 66 42 c7 44 2b 61 f3 f3 42 c6 44 2b 63 f3 e8 bd 75 1e 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 5d eb 87 ff 41 be 18 08 00 00 4c
RSP: 0018:ffffc900041cf680 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 1ffff92000839ed8 RCX: ffff88802e3f9f00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900041cfa30 R08: 0000000000000000 R09: 0000000000000000
R10: fffff52000839ee8 R11: fffffbfff1f5e927 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff88802aa71c50 R15: 0000000000000028
FS:  00007f91127ae6c0(0000) GS:ffff888125d46000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3db8322000 CR3: 00000000380de000 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 bd 75 1e ff       	call   0xff1e75d6
  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 5d eb 87 ff       	call   0xff87eb96
  39:	41 be 18 08 00 00    	mov    $0x818,%r14d
  3f:	4c                   	rex.WR

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/08 11:03 upstream bcc44b6785f2 5d63f80b .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs general protection fault in hfsplus_cat_write_inode
2026/04/13 21:49 upstream 26ff969926a0 9530ccf9 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs general protection fault in hfsplus_cat_write_inode
2026/08/08 09:40 upstream bcc44b6785f2 5d63f80b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in hfsplus_cat_write_inode
2026/07/08 18:24 upstream 0e35b9b6ec0f 88a4b44c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in hfsplus_cat_write_inode
2026/06/24 19:34 upstream 840ef6c78e6a 302586aa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in hfsplus_cat_write_inode
2026/06/22 02:15 upstream 8cd8cf7a07e5 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in hfsplus_cat_write_inode
2026/06/22 02:05 upstream 8cd8cf7a07e5 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in hfsplus_cat_write_inode
2026/06/20 21:19 upstream 1a3746ccbb0a 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in hfsplus_cat_write_inode
2026/06/20 06:25 upstream 5e2e14749c3d 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in hfsplus_cat_write_inode
2026/06/17 11:44 upstream 6b5a2b7d9bc1 62cc6db3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in hfsplus_cat_write_inode
2026/06/17 05:20 upstream 6b5a2b7d9bc1 62cc6db3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in hfsplus_cat_write_inode
2026/04/19 20:23 upstream faeab166167f 303e2802 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in hfsplus_cat_write_inode
2026/04/13 20:30 upstream 26ff969926a0 9530ccf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in hfsplus_cat_write_inode
2026/02/16 12:52 upstream c22e26bd0906 1e62d198 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in hfsplus_cat_write_inode
* Struck through repros no longer work on HEAD.