syzbot


BUG: unable to handle kernel paging request in ocfs2_prepare_dir_for_insert

Status: upstream: reported C repro on 2025/02/16 16:33
Reported-by: syzbot+1c1295145200bdc7a89c@syzkaller.appspotmail.com
First crash: 6d20h, last: 10h11m
Bug presence (1)
Date Name Commit Repro Result
2025/02/16 upstream (ToT) 0ad2507d5d93 C Failed due to an error; will retry later
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 BUG: unable to handle kernel paging request in ocfs2_prepare_dir_for_insert origin:upstream C 13 3d12h 95d 0/3 upstream: reported C repro on 2024/11/19 13:12
upstream general protection fault in ocfs2_prepare_dir_for_insert ocfs2 C inconclusive 1066 34d 187d 27/28 upstream: reported C repro on 2024/08/20 07:58

Sample crash report:
         option from the mount to silence this warning.
=======================================================
ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode.
Unable to handle kernel paging request at virtual address dfff800000000001
Mem abort info:
  ESR = 0x0000000096000006
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x06: level 2 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000006
  CM = 0, WnR = 0
[dfff800000000001] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4026 Comm: syz-executor327 Not tainted 5.15.178-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ocfs2_find_dir_space_id fs/ocfs2/dir.c:3408 [inline]
pc : ocfs2_prepare_dir_for_insert+0x2c08/0x5090 fs/ocfs2/dir.c:4288
lr : ocfs2_find_dir_space_id fs/ocfs2/dir.c:3371 [inline]
lr : ocfs2_prepare_dir_for_insert+0x23f8/0x5090 fs/ocfs2/dir.c:4288
sp : ffff80001fa067a0
x29: ffff80001fa07040 x28: 1fffe0001baf20ef x27: ffff0000dd790878
x26: ffff700003f40d30 x25: ffff80001fa06980 x24: dfff800000000000
x23: ffff80001fa06f80 x22: 0000000000000014 x21: 00000001000001c0
x20: 0000000000000009 x19: 0000000000000000 x18: 0000000000000000
x17: 0000000000000000 x16: ffff800009e3ffa0 x15: 0000000000000002
x14: ffff0000cb66d1c0 x13: 0000000000ff0100 x12: ffffffffffffffff
x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000cb66d1c0
x8 : 0000000000000001 x7 : 0000000000000000 x6 : ffff80001fa06ec0
x5 : ffff80001fa072f0 x4 : 0000000000000000 x3 : 0000000000000020
x2 : 0000000000000000 x1 : 0000000000000400 x0 : 0000000000000008
Call trace:
 ocfs2_find_dir_space_id fs/ocfs2/dir.c:3408 [inline]
 ocfs2_prepare_dir_for_insert+0x2c08/0x5090 fs/ocfs2/dir.c:4288
 ocfs2_mknod+0x854/0x24f8 fs/ocfs2/namei.c:294
 ocfs2_create+0x184/0x4c8 fs/ocfs2/namei.c:674
 lookup_open fs/namei.c:3462 [inline]
 open_last_lookups fs/namei.c:3532 [inline]
 path_openat+0xf18/0x26cc fs/namei.c:3739
 do_filp_open+0x1a8/0x3b4 fs/namei.c:3769
 do_sys_openat2+0x128/0x3e0 fs/open.c:1253
 do_sys_open fs/open.c:1269 [inline]
 __do_sys_openat fs/open.c:1285 [inline]
 __se_sys_openat fs/open.c:1280 [inline]
 __arm64_sys_openat+0x1f0/0x240 fs/open.c:1280
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
Code: cb150295 d343fc08 91002674 f9409bfa (38f86908) 
---[ end trace 563b983354647ed8 ]---
----------------
Code disassembly (best guess):
   0:	cb150295 	sub	x21, x20, x21
   4:	d343fc08 	lsr	x8, x0, #3
   8:	91002674 	add	x20, x19, #0x9
   c:	f9409bfa 	ldr	x26, [sp, #304]
* 10:	38f86908 	ldrsb	w8, [x8, x24] <-- trapping instruction

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/16 16:54 linux-5.15.y c16c81c81336 40a34ec9 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ocfs2_prepare_dir_for_insert
2025/02/19 21:10 linux-5.15.y c16c81c81336 b257a9b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ocfs2_prepare_dir_for_insert
2025/02/19 21:10 linux-5.15.y c16c81c81336 b257a9b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ocfs2_prepare_dir_for_insert
2025/02/16 16:56 linux-5.15.y c16c81c81336 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ocfs2_prepare_dir_for_insert
2025/02/16 16:32 linux-5.15.y c16c81c81336 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ocfs2_prepare_dir_for_insert
2025/02/23 02:50 linux-5.15.y c16c81c81336 d34966d1 .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/02/23 02:50 linux-5.15.y c16c81c81336 d34966d1 .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/02/22 10:45 linux-5.15.y c16c81c81336 d34966d1 .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/02/16 18:48 linux-5.15.y c16c81c81336 40a34ec9 .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/02/16 18:47 linux-5.15.y c16c81c81336 40a34ec9 .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.