syzbot


general protection fault in ocfs2_assure_trans_credits

Status: upstream: reported C repro on 2025/04/07 20:33
Subsystems: ocfs2
[Documentation on labels]
Reported-by: syzbot+8497452549365f8d1c37@syzkaller.appspotmail.com
First crash: 161d, last: 57m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ocfs2?] general protection fault in ocfs2_assure_trans_credits 0 (1) 2025/04/07 20:33
Last patch testing requests (3)
Created Duration User Patch Repo Result
2025/09/09 15:07 19m retest repro upstream OK log
2025/07/01 14:46 14m retest repro upstream report log
2025/04/22 14:23 14m retest repro upstream report log

Sample crash report:
(syz.0.1613,10338,0):ocfs2_extend_trans:438 ERROR: status = -30
(syz.0.1613,10338,0):ocfs2_try_to_merge_extent:3817 ERROR: status = -30
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 UID: 0 PID: 10338 Comm: syz.0.1613 Not tainted 6.15.0-rc1-syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:jbd2_handle_buffer_credits include/linux/jbd2.h:-1 [inline]
RIP: 0010:ocfs2_assure_trans_credits+0x80/0x3a0 fs/ocfs2/journal.c:457
Code: 89 e0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 e7 e8 b5 e3 64 fe 49 8b 1c 24 eb 08 e8 8a ba fa fd 4c 89 e3 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 91 e3 64 fe 48 8b 2b 49 8d 7c 24
RSP: 0018:ffffc9001ce0eb48 EFLAGS: 00010256
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc9000bac9000 RSI: 000000000001ee36 RDI: 000000000001ee37
RBP: ffff888077e7b3ec R08: ffffffff83c89a6b R09: ffffffff83bd4463
R10: 0000000000000006 R11: ffff8880284cbc00 R12: ffff888077e7b3c8
R13: dffffc0000000000 R14: 000000000000000a R15: ffff8880291b6100
FS:  00007ffb462cf6c0(0000) GS:ffff888124f96000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdd2c0d56c0 CR3: 0000000047982000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 ocfs2_dio_end_io_write fs/ocfs2/aops.c:2342 [inline]
 ocfs2_dio_end_io+0xc36/0x1330 fs/ocfs2/aops.c:2401
 dio_complete+0x252/0x720 fs/direct-io.c:281
 __blockdev_direct_IO+0x3baf/0x4540 fs/direct-io.c:1303
 ocfs2_direct_IO+0x255/0x2c0 fs/ocfs2/aops.c:2438
 generic_file_direct_write+0x1ea/0x400 mm/filemap.c:4036
 __generic_file_write_iter+0x126/0x230 mm/filemap.c:4205
 ocfs2_file_write_iter+0x190f/0x20d0 fs/ocfs2/file.c:2469
 iter_file_splice_write+0xbe1/0x1530 fs/splice.c:738
 do_splice_from fs/splice.c:935 [inline]
 direct_splice_actor+0x11d/0x220 fs/splice.c:1158
 splice_direct_to_actor+0x597/0xc90 fs/splice.c:1102
 do_splice_direct_actor fs/splice.c:1201 [inline]
 do_splice_direct+0x281/0x3d0 fs/splice.c:1227
 do_sendfile+0x582/0x8c0 fs/read_write.c:1368
 __do_sys_sendfile64 fs/read_write.c:1429 [inline]
 __se_sys_sendfile64+0x17e/0x1e0 fs/read_write.c:1415
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ffb4538d169
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:00007ffb462cf038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007ffb455a5fa0 RCX: 00007ffb4538d169
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007ffb4540e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000fffe82 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007ffb455a5fa0 R15: 00007fffa4174be8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:jbd2_handle_buffer_credits include/linux/jbd2.h:-1 [inline]
RIP: 0010:ocfs2_assure_trans_credits+0x80/0x3a0 fs/ocfs2/journal.c:457
Code: 89 e0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 e7 e8 b5 e3 64 fe 49 8b 1c 24 eb 08 e8 8a ba fa fd 4c 89 e3 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 91 e3 64 fe 48 8b 2b 49 8d 7c 24
RSP: 0018:ffffc9001ce0eb48 EFLAGS: 00010256
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc9000bac9000 RSI: 000000000001ee36 RDI: 000000000001ee37
RBP: ffff888077e7b3ec R08: ffffffff83c89a6b R09: ffffffff83bd4463
R10: 0000000000000006 R11: ffff8880284cbc00 R12: ffff888077e7b3c8
R13: dffffc0000000000 R14: 000000000000000a R15: ffff8880291b6100
FS:  00007ffb462cf6c0(0000) GS:ffff888124f96000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa7cff38068 CR3: 0000000047982000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	89 e0                	mov    %esp,%eax
   2:	48 c1 e8 03          	shr    $0x3,%rax
   6:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1)
   b:	74 08                	je     0x15
   d:	4c 89 e7             	mov    %r12,%rdi
  10:	e8 b5 e3 64 fe       	call   0xfe64e3ca
  15:	49 8b 1c 24          	mov    (%r12),%rbx
  19:	eb 08                	jmp    0x23
  1b:	e8 8a ba fa fd       	call   0xfdfabaaa
  20:	4c 89 e3             	mov    %r12,%rbx
  23:	48 89 d8             	mov    %rbx,%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:	48 89 df             	mov    %rbx,%rdi
  34:	e8 91 e3 64 fe       	call   0xfe64e3ca
  39:	48 8b 2b             	mov    (%rbx),%rbp
  3c:	49                   	rex.WB
  3d:	8d                   	.byte 0x8d
  3e:	7c 24                	jl     0x64

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/08 14:14 upstream 0af2f6be1b42 a775275d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ocfs2_assure_trans_credits
2025/09/12 09:01 upstream 320475fbd590 e2beed91 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/08/06 18:56 upstream 479058002c32 4bd24a3e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/08/06 18:54 upstream 479058002c32 4bd24a3e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/07/26 23:41 upstream 302f88ff3584 fb8f743d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/07/12 16:54 upstream 379f604cc3dc 3cda49cf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/07/05 20:43 upstream a79a588fc176 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/06/10 22:48 upstream f09079bd04a9 5d7e17ca .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/05/25 19:34 upstream d0c22de9995b 2d4582d0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/05/02 04:57 upstream ebd297a2affa 51b137cd .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/04/29 02:13 upstream f15d97df5afa aeb6ec69 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/04/29 00:57 upstream f15d97df5afa aeb6ec69 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/04/28 00:55 upstream b4432656b36e c6b4fb39 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/04/27 04:29 upstream 5bc1018675ec c6b4fb39 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/04/25 12:58 upstream 02ddfb981de8 dea5c7e4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/04/25 12:52 upstream 02ddfb981de8 dea5c7e4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/04/25 12:50 upstream 02ddfb981de8 dea5c7e4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/04/25 11:02 upstream 02ddfb981de8 dea5c7e4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/04/24 08:23 upstream a79be02bba5c 9882047a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/04/24 04:11 upstream a79be02bba5c 9882047a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/04/03 23:27 upstream a2cc6ff5ec8f d7ae3a11 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
2025/04/03 20:30 upstream a2cc6ff5ec8f d7ae3a11 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_assure_trans_credits
* Struck through repros no longer work on HEAD.