syzbot


general protection fault in ocfs2_buffer_cached

Status: upstream: reported C repro on 2024/08/15 10:47
Subsystems: ocfs2
[Documentation on labels]
Reported-by: syzbot+adfd64e93c46b99c957e@syzkaller.appspotmail.com
First crash: 112d, last: 62d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] ocfs2: bug fix when bh is null 3 (3) 2024/09/09 02:27
[syzbot] [ocfs2?] general protection fault in ocfs2_buffer_cached 0 (3) 2024/09/06 21:25
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 BUG: unable to handle kernel paging request in ocfs2_buffer_cached origin:lts-only C error 9 60d 69d 0/3 upstream: reported C repro on 2024/09/27 03:51
linux-6.1 general protection fault in ocfs2_buffer_cached origin:lts-only C error 10 59d 69d 0/3 upstream: reported C repro on 2024/09/27 08:16
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/10/18 14:38 21m retest repro upstream OK log
2024/09/06 21:25 19m ghanshyam1898@gmail.com patch upstream OK log
2024/09/06 20:13 14m ghanshyam1898@gmail.com patch upstream report log

Sample crash report:
loop0: detected capacity change from 0 to 32768
=======================================================
WARNING: The mand mount option has been deprecated and
         and is ignored by this kernel. Remove the mand
         option from the mount to silence this warning.
=======================================================
(syz.0.0,5104,0):ocfs2_read_blocks:240 ERROR: status = -12
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 0 UID: 0 PID: 5104 Comm: syz.0.0 Not tainted 6.11.0-syzkaller-05442-g932d2d1fcb2b #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:ocfs2_buffer_cached+0xcb/0x840 fs/ocfs2/uptodate.c:237
Code: 8b 38 63 fe 4c 89 7c 24 20 4c 8b 5d 00 48 89 5c 24 08 48 89 df 41 ff d3 66 90 48 89 44 24 18 49 83 c5 18 4d 89 ec 49 c1 ec 03 <43> 80 3c 34 00 74 08 4c 89 ef e8 56 38 63 fe 49 8b 55 00 48 8b 44
RSP: 0018:ffffc90002f8e620 EFLAGS: 00010206
RAX: 0000000000000042 RBX: ffff888000539670 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff888000539670
RBP: ffffffff8c494ec0 R08: 0000000000000003 R09: fffff520005f1cb4
R10: dffffc0000000000 R11: ffffffff8388e030 R12: 0000000000000003
R13: 0000000000000018 R14: dffffc0000000000 R15: 1ffff110000a72ce
FS:  00007ff4c92e76c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7a219af5eb CR3: 000000003c874000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ocfs2_set_buffer_uptodate+0xa1/0x1350 fs/ocfs2/uptodate.c:474
 ocfs2_read_blocks+0x103e/0x1620 fs/ocfs2/buffer_head_io.c:392
 ocfs2_read_virt_blocks+0x4c8/0xa50 fs/ocfs2/extent_map.c:1010
 ocfs2_read_dir_block fs/ocfs2/dir.c:508 [inline]
 ocfs2_find_entry_el fs/ocfs2/dir.c:715 [inline]
 ocfs2_find_entry+0x43b/0x2780 fs/ocfs2/dir.c:1080
 ocfs2_find_files_on_disk+0xff/0x360 fs/ocfs2/dir.c:1981
 ocfs2_lookup_ino_from_name+0xb1/0x1e0 fs/ocfs2/dir.c:2003
 _ocfs2_get_system_file_inode fs/ocfs2/sysfile.c:136 [inline]
 ocfs2_get_system_file_inode+0x305/0x7b0 fs/ocfs2/sysfile.c:112
 ocfs2_init_global_system_inodes+0x32c/0x730 fs/ocfs2/super.c:457
 ocfs2_initialize_super fs/ocfs2/super.c:2250 [inline]
 ocfs2_fill_super+0x3068/0x5880 fs/ocfs2/super.c:994
 mount_bdev+0x20a/0x2d0 fs/super.c:1679
 legacy_get_tree+0xee/0x190 fs/fs_context.c:662
 vfs_get_tree+0x90/0x2b0 fs/super.c:1800
 do_new_mount+0x2be/0xb40 fs/namespace.c:3507
 do_mount fs/namespace.c:3847 [inline]
 __do_sys_mount fs/namespace.c:4055 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4032
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff4c857f69a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007ff4c92e6e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ff4c92e6ef0 RCX: 00007ff4c857f69a
RDX: 0000000020004440 RSI: 0000000020000040 RDI: 00007ff4c92e6eb0
RBP: 0000000020004440 R08: 00007ff4c92e6ef0 R09: 00000000000008c0
R10: 00000000000008c0 R11: 0000000000000246 R12: 0000000020000040
R13: 00007ff4c92e6eb0 R14: 0000000000004443 R15: 0000000020000180
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_buffer_cached+0xcb/0x840 fs/ocfs2/uptodate.c:237
Code: 8b 38 63 fe 4c 89 7c 24 20 4c 8b 5d 00 48 89 5c 24 08 48 89 df 41 ff d3 66 90 48 89 44 24 18 49 83 c5 18 4d 89 ec 49 c1 ec 03 <43> 80 3c 34 00 74 08 4c 89 ef e8 56 38 63 fe 49 8b 55 00 48 8b 44
RSP: 0018:ffffc90002f8e620 EFLAGS: 00010206
RAX: 0000000000000042 RBX: ffff888000539670 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff888000539670
RBP: ffffffff8c494ec0 R08: 0000000000000003 R09: fffff520005f1cb4
R10: dffffc0000000000 R11: ffffffff8388e030 R12: 0000000000000003
R13: 0000000000000018 R14: dffffc0000000000 R15: 1ffff110000a72ce
FS:  00007ff4c92e76c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7a219af5eb CR3: 000000003c874000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	8b 38                	mov    (%rax),%edi
   2:	63 fe                	movsxd %esi,%edi
   4:	4c 89 7c 24 20       	mov    %r15,0x20(%rsp)
   9:	4c 8b 5d 00          	mov    0x0(%rbp),%r11
   d:	48 89 5c 24 08       	mov    %rbx,0x8(%rsp)
  12:	48 89 df             	mov    %rbx,%rdi
  15:	41 ff d3             	call   *%r11
  18:	66 90                	xchg   %ax,%ax
  1a:	48 89 44 24 18       	mov    %rax,0x18(%rsp)
  1f:	49 83 c5 18          	add    $0x18,%r13
  23:	4d 89 ec             	mov    %r13,%r12
  26:	49 c1 ec 03          	shr    $0x3,%r12
* 2a:	43 80 3c 34 00       	cmpb   $0x0,(%r12,%r14,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 ef             	mov    %r13,%rdi
  34:	e8 56 38 63 fe       	call   0xfe63388f
  39:	49 8b 55 00          	mov    0x0(%r13),%rdx
  3d:	48                   	rex.W
  3e:	8b                   	.byte 0x8b
  3f:	44                   	rex.R

Crashes (27):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/19 16:09 upstream 932d2d1fcb2b 6f888b75 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/09/18 10:18 upstream 2f27fce67173 c673ca06 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/09/18 02:42 upstream a940d9a43e62 c673ca06 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/09/18 01:26 upstream a940d9a43e62 c673ca06 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/09/16 20:38 upstream adfc3ded5c33 49cf0773 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/09/16 16:55 upstream adfc3ded5c33 49cf0773 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/09/15 22:06 upstream d42f7708e27c 08d8a733 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/09/12 15:08 upstream 77f587896757 60e1a995 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/09/12 02:32 upstream 7c6a3a65ace7 d94c83d8 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/09/08 01:58 upstream d1f2d51b711a 9750182a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/09/07 11:40 upstream b31c44928842 9750182a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/09/03 18:04 upstream 67784a74e258 8045124c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/09/01 20:04 upstream 431c1646e1f8 1eda0d14 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/08/31 09:04 upstream fb24560f31f9 1eda0d14 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/08/29 17:19 upstream d5d547aa7b51 9bd464fc .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/08/21 00:38 upstream 521b1e7f4cf0 9f0ab3fb .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/08/19 20:33 upstream b0da640826ba 9f0ab3fb .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/08/18 21:26 upstream c3f2d783a459 e1c76ab2 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/08/16 02:12 upstream d7a5aa4b3c00 e4bacdaf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/08/15 10:34 upstream d07b43284ab3 e4bacdaf .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/08/15 10:09 upstream d07b43284ab3 e4bacdaf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/08/15 09:43 upstream d07b43284ab3 e4bacdaf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in ocfs2_buffer_cached
2024/10/04 14:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ocfs2_buffer_cached
2024/10/04 14:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ocfs2_buffer_cached
2024/09/27 06:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ocfs2_buffer_cached
2024/09/27 06:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ocfs2_buffer_cached
2024/09/17 21:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ocfs2_buffer_cached
* Struck through repros no longer work on HEAD.