syzbot


general protection fault in ocfs2_handle_error

Status: upstream: reported C repro on 2024/10/28 05:09
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+05107c8f44a6f9b272e6@syzkaller.appspotmail.com
First crash: 307d, last: 9h59m
Fix bisection: the issue occurs on the latest tested release (bisect log)
Crash: BUG: unable to handle kernel NULL pointer dereference in ocfs2_handle_error (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2025/03/25 linux-6.1.y (ToT) 344a09659766 C [report] general protection fault in ocfs2_handle_error
2024/11/01 upstream (ToT) 6c52d4da1c74 C [report] INFO: task hung in flush_delayed_work
2025/03/25 upstream (ToT) 2df0c02dab82 C Didn't crash
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2025/07/05 19:33 2h50m fix candidate upstream OK (0) job log
2025/07/01 17:12 2h41m bisect fix linux-6.1.y OK (0) job log log
2025/03/17 01:54 1h49m bisect fix linux-6.1.y OK (0) job log log
2025/02/13 12:49 2h09m bisect fix linux-6.1.y OK (0) job log log
2025/01/10 08:55 1h26m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
(jbd2/loop0-29,4418,0):ocfs2_abort_trigger:596 ERROR: ocfs2_abort_trigger called by JBD2.  bh = 0xffff888070eb4ae0, bh->b_blocknr = 16953
OCFS2: ERROR (device (efault)): void ocfs2_abort_trigger(struct jbd2_buffer_trigger_type *, struct buffer_head *): JBD2 has aborted our journal, ocfs2 cannot continue
general protection fault, probably for non-canonical address 0xdffffc00000000cf: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000678-0x000000000000067f]
CPU: 0 PID: 4418 Comm: jbd2/loop0-29 Not tainted 6.1.147-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:ocfs2_handle_error+0x2a/0x250 fs/ocfs2/super.c:2532
Code: 55 41 57 41 56 41 55 41 54 53 48 89 fb 49 bd 00 00 00 00 00 fc ff df e8 04 33 74 f7 4c 8d b3 78 06 00 00 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 f7 e8 67 4f c4 f7 4d 8b 26 4d 8d b4 24
RSP: 0018:ffffc90003457748 EFLAGS: 00010206
RAX: 00000000000000cf RBX: 0000000000000000 RCX: ffff88802c7ad940
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90003457890 R08: dffffc0000000000 R09: fffff5200068ae91
R10: fffff5200068ae91 R11: 1ffff9200068ae90 R12: ffffffff8acc3a80
R13: dffffc0000000000 R14: 0000000000000678 R15: 1ffff9200068aef8
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff2f6dcd24 CR3: 000000007e79f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __ocfs2_error+0x124/0x170 fs/ocfs2/super.c:2575
 ocfs2_abort_trigger+0xfc/0x130 fs/ocfs2/journal.c:598
 jbd2_journal_commit_transaction+0x1314/0x60e0 fs/jbd2/commit.c:623
 kjournald2+0x412/0x810 fs/jbd2/journal.c:210
 kthread+0x29d/0x330 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_handle_error+0x2a/0x250 fs/ocfs2/super.c:2532
Code: 55 41 57 41 56 41 55 41 54 53 48 89 fb 49 bd 00 00 00 00 00 fc ff df e8 04 33 74 f7 4c 8d b3 78 06 00 00 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 f7 e8 67 4f c4 f7 4d 8b 26 4d 8d b4 24
RSP: 0018:ffffc90003457748 EFLAGS: 00010206

RAX: 00000000000000cf RBX: 0000000000000000 RCX: ffff88802c7ad940
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90003457890 R08: dffffc0000000000 R09: fffff5200068ae91
R10: fffff5200068ae91 R11: 1ffff9200068ae90 R12: ffffffff8acc3a80
R13: dffffc0000000000 R14: 0000000000000678 R15: 1ffff9200068aef8
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff2f6dcd24 CR3: 0000000031319000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	55                   	push   %rbp
   1:	41 57                	push   %r15
   3:	41 56                	push   %r14
   5:	41 55                	push   %r13
   7:	41 54                	push   %r12
   9:	53                   	push   %rbx
   a:	48 89 fb             	mov    %rdi,%rbx
   d:	49 bd 00 00 00 00 00 	movabs $0xdffffc0000000000,%r13
  14:	fc ff df
  17:	e8 04 33 74 f7       	call   0xf7743320
  1c:	4c 8d b3 78 06 00 00 	lea    0x678(%rbx),%r14
  23:	4c 89 f0             	mov    %r14,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 f7             	mov    %r14,%rdi
  34:	e8 67 4f c4 f7       	call   0xf7c44fa0
  39:	4d 8b 26             	mov    (%r14),%r12
  3c:	4d                   	rex.WRB
  3d:	8d                   	.byte 0x8d
  3e:	b4 24                	mov    $0x24,%ah

Crashes (27):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/09 06:40 linux-6.1.y 3594f306da12 32a0e5ed .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2024/10/28 09:03 linux-6.1.y 7ec6f9fa3d97 65e8686b .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2024/10/28 08:11 linux-6.1.y 7ec6f9fa3d97 65e8686b .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2024/10/28 07:11 linux-6.1.y 7ec6f9fa3d97 65e8686b .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2024/10/28 06:03 linux-6.1.y 7ec6f9fa3d97 65e8686b .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2025/08/31 02:40 linux-6.1.y f89b6e15694c 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2025/08/31 02:40 linux-6.1.y f89b6e15694c 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2025/08/13 15:02 linux-6.1.y 3594f306da12 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2025/08/13 15:00 linux-6.1.y 3594f306da12 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2025/08/09 04:12 linux-6.1.y 3594f306da12 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2025/08/07 07:44 linux-6.1.y 3594f306da12 9a42d6b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2025/08/07 07:43 linux-6.1.y 3594f306da12 9a42d6b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2025/08/07 07:42 linux-6.1.y 3594f306da12 9a42d6b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2025/06/01 16:19 linux-6.1.y da3c5173c55f 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2025/05/24 03:08 linux-6.1.y da3c5173c55f f8cc0c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2025/05/24 03:08 linux-6.1.y da3c5173c55f f8cc0c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2025/04/26 20:39 linux-6.1.y 535ec20c5027 c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2025/04/13 04:53 linux-6.1.y 420102835862 0bd6db41 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2025/03/30 01:37 linux-6.1.y 8e60a714ba3b d3999433 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2024/11/16 05:07 linux-6.1.y 59d7b1a7104a cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2024/11/16 05:07 linux-6.1.y 59d7b1a7104a cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2024/10/31 15:27 linux-6.1.y 7ec6f9fa3d97 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2024/10/28 05:08 linux-6.1.y 7ec6f9fa3d97 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in ocfs2_handle_error
2025/07/02 20:17 linux-6.1.y 7e69c33e4858 bc80e4f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in ocfs2_handle_error
2025/03/31 21:03 linux-6.1.y 8e60a714ba3b d3999433 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in ocfs2_handle_error
2024/11/21 17:32 linux-6.1.y b67dc5c9ade9 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in ocfs2_handle_error
2024/11/21 17:31 linux-6.1.y b67dc5c9ade9 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in ocfs2_handle_error
* Struck through repros no longer work on HEAD.