BUG: unable to handle kernel paging request in open_xa_dir

Status: upstream: reported C repro on 2024/04/21 09:30
Bug presence: origin:upstream
[Documentation on labels]
First crash: 27d, last: 26d
Bug presence (1)
Date Name Commit Repro Result
2024/04/21 upstream (ToT) 977b1ef51866 C [report] BUG: unable to handle kernel paging request in open_xa_dir
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in open_xa_dir reiserfs C 82 394d 621d 0/26 auto-obsoleted due to no activity on 2023/08/18 00:17
upstream general protection fault in open_xa_dir (2) reiserfs 1 773d 769d 0/26 auto-closed as invalid on 2022/07/04 17:03

Sample crash report:
Unable to handle kernel paging request at virtual address dfff80000000000d
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
[dfff80000000000d] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 3959 Comm: syz-executor283 Not tainted 5.15.156-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
pstate: 00401005 (nzcv daif +PAN -UAO -TCO -DIT +SSBS BTYPE=--)
pc : d_really_is_negative include/linux/dcache.h:476 [inline]
pc : open_xa_root fs/reiserfs/xattr.c:124 [inline]
pc : open_xa_dir+0xf8/0x578 fs/reiserfs/xattr.c:152
lr : open_xa_dir+0x9c/0x578 fs/reiserfs/xattr.c:150
sp : ffff80001afc72c0
x29: ffff80001afc7340 x28: 000000000000000d x27: dfff800000000000
x26: ffff7000035f8e58 x25: 0000000000000000 x24: 1fffe00018f4f0cf
x23: 0000000000000068 x22: ffff0000de8f8ed0 x21: ffff80001afc72e0
x20: 0000000000000002 x19: ffff0000c7a78678 x18: ffff80001afc7480
x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
x14: 0000000000000000 x13: 0000000000000000 x12: ffff7000035f8e5e
x11: 1ffff000035f8e5c x10: 0000000000000001 x9 : 0000000000000001
x8 : 0000000000000000 x7 : 0000000000000000 x6 : ffff800008d0bca8
x5 : ffff80001afc7480 x4 : 0000000000000000 x3 : 0000000000000010
x2 : 0000000000000001 x1 : 0000000000000000 x0 : ffff80001afc72e0
Call trace:
 d_really_is_negative include/linux/dcache.h:476 [inline]
 open_xa_root fs/reiserfs/xattr.c:124 [inline]
 open_xa_dir+0xf8/0x578 fs/reiserfs/xattr.c:152
 reiserfs_for_each_xattr+0x16c/0x8d8 fs/reiserfs/xattr.c:252
 reiserfs_delete_xattrs+0x2c/0xa4 fs/reiserfs/xattr.c:364
 reiserfs_evict_inode+0x1dc/0x3f0 fs/reiserfs/inode.c:53
 evict+0x260/0x68c fs/inode.c:587
 iput_final fs/inode.c:1705 [inline]
 iput+0x744/0x824 fs/inode.c:1731
 hook_sb_delete+0x688/0xa14 security/landlock/fs.c:479
 security_sb_delete+0x50/0x94 security/security.c:921
 generic_shutdown_super+0xac/0x29c fs/super.c:461
 kill_block_super+0x70/0xdc fs/super.c:1414
 reiserfs_kill_sb+0x134/0x14c fs/reiserfs/super.c:570
 deactivate_locked_super+0xb8/0x13c fs/super.c:335
 deactivate_super+0x108/0x128 fs/super.c:366
 cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1150
 task_work_run+0x130/0x1e4 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
 el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
 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: 97ef0a54 f94002e8 9101a117 d343fefc (387b6b88) 
---[ end trace 038cba525c49e8bb ]---
Code disassembly (best guess):
   0:	97ef0a54 	bl	0xffffffffffbc2950
   4:	f94002e8 	ldr	x8, [x23]
   8:	9101a117 	add	x23, x8, #0x68
   c:	d343fefc 	lsr	x28, x23, #3
* 10:	387b6b88 	ldrb	w8, [x28, x27] <-- trapping instruction

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/21 10:25 linux-5.15.y c52b9710c83d af24b050 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in open_xa_dir
2024/04/21 09:29 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in open_xa_dir
* Struck through repros no longer work on HEAD.