syzbot


general protection fault in ocfs2_prepare_dir_for_insert

Status: upstream: reported C repro on 2025/12/18 19:22
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+958945cfbe7735cc63b6@syzkaller.appspotmail.com
First crash: 42d, last: 42d
Bug presence (2)
Date Name Commit Repro Result
2025/12/19 linux-5.15.y (ToT) 68efe5a6c16a C [report] general protection fault in ocfs2_prepare_dir_for_insert
2025/12/19 upstream (ToT) dd9b004b7ff3 C Didn't crash
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.6 general protection fault in ocfs2_prepare_dir_for_insert origin:lts-only 2 C error 6 42d 42d 0/2 upstream: reported C repro on 2025/12/18 14:49
linux-6.1 BUG: unable to handle kernel paging request in ocfs2_prepare_dir_for_insert origin:upstream missing-backport 8 C inconclusive 20 27d 436d 0/3 upstream: reported C repro on 2024/11/19 13:12
upstream general protection fault in ocfs2_prepare_dir_for_insert (2) ocfs2 8 C error 20 55d 234d 29/29 fixed on 2026/01/07 12:29
linux-5.15 BUG: unable to handle kernel paging request in ocfs2_prepare_dir_for_insert 8 C error 15 331d 347d 0/3 auto-obsoleted due to no activity on 2025/05/14 04:21
upstream general protection fault in ocfs2_prepare_dir_for_insert ocfs2 8 C inconclusive 1072 279d 528d 28/29 fixed on 2025/05/06 15:33
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2026/01/07 01:39 1h44m fix candidate upstream OK (0) job log

Sample crash report:
         option from the mount to silence this warning.
=======================================================
JBD2: Ignoring recovery information on journal
ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode.
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 4352 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3425 [inline]
RIP: 0010:ocfs2_prepare_dir_for_insert+0x2d5b/0x5240 fs/ocfs2/dir.c:4305
Code: e8 3a f2 61 fe e9 40 01 00 00 e8 30 f2 61 fe 49 bd 00 00 00 00 00 fc ff df 49 8d 7c 24 08 4d 8d 74 24 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 48 8b 5c 24 20 0f 85 e6 1f 00 00 48 2b 9c 24
RSP: 0018:ffffc90002f5f040 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88805c505e48 RCX: ffff888023a95940
RDX: 0000000000000000 RSI: ffff8880742a90c8 RDI: 0000000000000008
RBP: ffffc90002f5f770 R08: ffffc90002f5fa80 R09: 0000000000000002
R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000009 R15: ffff88805c505df8
FS:  0000555567351500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbca75f9000 CR3: 00000000691d5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __ocfs2_prepare_orphan_dir+0x142/0x2c0 fs/ocfs2/namei.c:2164
 ocfs2_prepare_orphan_dir+0xf6/0x3f0 fs/ocfs2/namei.c:2207
 ocfs2_unlink+0x8fa/0x17f0 fs/ocfs2/namei.c:959
 vfs_unlink+0x385/0x600 fs/namei.c:4288
 do_unlinkat+0x382/0x6f0 fs/namei.c:4356
 __do_sys_unlinkat fs/namei.c:4399 [inline]
 __se_sys_unlinkat fs/namei.c:4392 [inline]
 __x64_sys_unlinkat+0xd1/0xe0 fs/namei.c:4392
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f0950c4c749
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:00007ffc378baa08 EFLAGS: 00000246 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 00007f0950ea2fa0 RCX: 00007f0950c4c749
RDX: 0000000000000000 RSI: 0000200000000380 RDI: ffffffffffffff9c
RBP: 00007f0950cd0f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0950ea2fa0 R14: 00007f0950ea2fa0 R15: 0000000000000003
 </TASK>
Modules linked in:
---[ end trace 7f3397a5a75b2648 ]---
RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3425 [inline]
RIP: 0010:ocfs2_prepare_dir_for_insert+0x2d5b/0x5240 fs/ocfs2/dir.c:4305
Code: e8 3a f2 61 fe e9 40 01 00 00 e8 30 f2 61 fe 49 bd 00 00 00 00 00 fc ff df 49 8d 7c 24 08 4d 8d 74 24 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 48 8b 5c 24 20 0f 85 e6 1f 00 00 48 2b 9c 24
RSP: 0018:ffffc90002f5f040 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88805c505e48 RCX: ffff888023a95940
RDX: 0000000000000000 RSI: ffff8880742a90c8 RDI: 0000000000000008
RBP: ffffc90002f5f770 R08: ffffc90002f5fa80 R09: 0000000000000002
R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000009 R15: ffff88805c505df8
FS:  0000555567351500(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbca75f6000 CR3: 00000000691d5000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	e8 3a f2 61 fe       	call   0xfe61f23f
   5:	e9 40 01 00 00       	jmp    0x14a
   a:	e8 30 f2 61 fe       	call   0xfe61f23f
   f:	49 bd 00 00 00 00 00 	movabs $0xdffffc0000000000,%r13
  16:	fc ff df
  19:	49 8d 7c 24 08       	lea    0x8(%r12),%rdi
  1e:	4d 8d 74 24 09       	lea    0x9(%r12),%r14
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	48 8b 5c 24 20       	mov    0x20(%rsp),%rbx
  36:	0f 85 e6 1f 00 00    	jne    0x2022
  3c:	48                   	rex.W
  3d:	2b                   	.byte 0x2b
  3e:	9c                   	pushf
  3f:	24                   	.byte 0x24

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/18 19:48 linux-5.15.y 68efe5a6c16a d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-5-15-kasan general protection fault in ocfs2_prepare_dir_for_insert
2025/12/18 19:41 linux-5.15.y 68efe5a6c16a d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in ocfs2_prepare_dir_for_insert
2025/12/18 19:23 linux-5.15.y 68efe5a6c16a d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in ocfs2_prepare_dir_for_insert
2025/12/18 19:21 linux-5.15.y 68efe5a6c16a d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in ocfs2_prepare_dir_for_insert
* Struck through repros no longer work on HEAD.