syzbot
BUG: unable to handle kernel paging request in open_xa_dir
Status:
upstream: reported C repro on 2024/12/10 20:35
Bug presence:
origin:lts-only
[Documentation on labels]
Reported-by: syzbot+33ebeba6aa23f90003e0@syzkaller.appspotmail.com
First crash: 709d, last: 14d
▶
▼
Bug presence (2)
| Date |
Name |
Commit |
Repro |
Result |
| 2024/12/10 |
linux-6.1.y (ToT) |
e4d90d63d385 |
C
|
[report] BUG: unable to handle kernel paging request in open_xa_dir
|
| 2024/12/10 |
upstream (ToT) |
7cb1b4663150 |
C
|
Didn't crash |
▶
▼
Fix bisection attempts (4)
Sample crash report:
Unable to handle kernel paging request at virtual address dfff80000000000d
KASAN: null-ptr-deref in range [0x0000000000000068-0x000000000000006f]
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: 0 PID: 4458 Comm: syz-executor Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2026
pstate: 02400005 (nzcv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--)
pc : d_really_is_negative include/linux/dcache.h:466 [inline]
pc : open_xa_root fs/reiserfs/xattr.c:124 [inline]
pc : open_xa_dir+0x100/0x5ec fs/reiserfs/xattr.c:152
lr : open_xa_dir+0xa4/0x5ec fs/reiserfs/xattr.c:150
sp : ffff8000221c72c0
x29: ffff8000221c7340 x28: 000000000000000d x27: ffff8000221c72c0
x26: dfff800000000000 x25: ffff700004438e58 x24: 0000000000000000
x23: 1fffe0001985d8cf x22: 0000000000000068 x21: ffff0000ecf58ed0
x20: 0000000000000002 x19: ffff0000cc2ec678 x18: 1fffe00033c2177e
x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
x14: ffff700004438e5e x13: 1ffff00004438e5c x12: 0000000000000001
x11: ffffffffffffffff x10: dfff800000000000 x9 : 0000000000000001
x8 : 0000000000000000 x7 : 0000000000000000 x6 : ffff800008d1dc58
x5 : ffff8000221c7460 x4 : 0000000000000000 x3 : 0000000000000010
x2 : 0000000000000001 x1 : 0000000000000000 x0 : ffff8000221c72e0
Call trace:
d_really_is_negative include/linux/dcache.h:466 [inline]
open_xa_root fs/reiserfs/xattr.c:124 [inline]
open_xa_dir+0x100/0x5ec fs/reiserfs/xattr.c:152
reiserfs_for_each_xattr+0x18c/0x6f8 fs/reiserfs/xattr.c:252
reiserfs_delete_xattrs+0x2c/0xa4 fs/reiserfs/xattr.c:364
reiserfs_evict_inode+0x1f0/0x408 fs/reiserfs/inode.c:53
evict+0x3d8/0x81c fs/inode.c:703
iput_final fs/inode.c:1832 [inline]
iput+0x728/0x7e8 fs/inode.c:1858
hook_sb_delete+0x6e8/0xa4c security/landlock/fs.c:1060
security_sb_delete+0x54/0x98 security/security.c:940
generic_shutdown_super+0xb4/0x32c fs/super.c:487
kill_block_super+0x78/0xe0 fs/super.c:1481
reiserfs_kill_sb+0x124/0x13c fs/reiserfs/super.c:570
deactivate_locked_super+0xb4/0x128 fs/super.c:332
deactivate_super+0xe4/0x104 fs/super.c:363
cleanup_mnt+0x3a8/0x430 fs/namespace.c:1191
__cleanup_mnt+0x20/0x30 fs/namespace.c:1198
task_work_run+0x1f4/0x280 kernel/task_work.c:203
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x20f8/0x2c84 arch/arm64/kernel/signal.c:1166
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x12c arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589
Code: 97ef7d20 f94002c8 9101a116 d343fedc (387a6b88)
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
0: 97ef7d20 bl 0xffffffffffbdf480
4: f94002c8 ldr x8, [x22]
8: 9101a116 add x22, x8, #0x68
c: d343fedc lsr x28, x22, #3
* 10: 387a6b88 ldrb w8, [x28, x26] <-- trapping instruction
* Struck through repros no longer work on HEAD.