syzbot


BUG: unable to handle kernel paging request in reiserfs_xattr_set

Status: upstream: reported C repro on 2024/07/22 01:24
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+6251af60b5fda595f08a@syzkaller.appspotmail.com
First crash: 47d, last: 47d
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2024/07/22 upstream (ToT) 527eff227d43 C [report] BUG: unable to handle kernel paging request in reiserfs_xattr_set
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in reiserfs_xattr_set reiserfs C unreliable done 3 237d 249d 0/27 auto-obsoleted due to no activity on 2024/04/23 21:19

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: 0 PID: 3993 Comm: syz-executor153 Not tainted 5.15.163-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : d_really_is_negative include/linux/dcache.h:476 [inline]
pc : reiserfs_xattr_jcreate_nblocks fs/reiserfs/xattr.h:79 [inline]
pc : reiserfs_xattr_set+0x2cc/0x4b0 fs/reiserfs/xattr.c:631
lr : reiserfs_xattr_jcreate_nblocks fs/reiserfs/xattr.h:78 [inline]
lr : reiserfs_xattr_set+0x298/0x4b0 fs/reiserfs/xattr.c:631
sp : ffff80001cbd76c0
x29: ffff80001cbd77b0 x28: 0000000000000000 x27: ffff0000c8c04000
x26: 0000000000000000 x25: 0000000000000036 x24: ffff70000397aee0
x23: 0000000000000068 x22: ffff0000df269598 x21: 1fffe0001be4d2b3
x20: dfff800000000000 x19: 000000000000006c x18: 0000000000000000
x17: 0000000000000000 x16: ffff80000a69a720 x15: 0000000000000003
x14: 0000000000000000 x13: ffffffffffffffff x12: 0000000000000007
x11: 0000000000000000 x10: 000000000000006c x9 : 00000000000001c0
x8 : 000000000000000d x7 : 0000000000000000 x6 : 0000000000000002
x5 : ffff0000d25b3c00 x4 : 0000000000000000 x3 : 0000000000000030
x2 : 0000000000000008 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 d_really_is_negative include/linux/dcache.h:476 [inline]
 reiserfs_xattr_jcreate_nblocks fs/reiserfs/xattr.h:79 [inline]
 reiserfs_xattr_set+0x2cc/0x4b0 fs/reiserfs/xattr.c:631
 security_set+0x9c/0xd8 fs/reiserfs/xattr_security.c:32
 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182
 __vfs_setxattr_noperm+0x110/0x528 fs/xattr.c:216
 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277
 vfs_setxattr+0x1a8/0x344 fs/xattr.c:303
 do_setxattr fs/xattr.c:588 [inline]
 setxattr+0x250/0x2b4 fs/xattr.c:611
 __do_sys_fsetxattr fs/xattr.c:667 [inline]
 __se_sys_fsetxattr fs/xattr.c:656 [inline]
 __arm64_sys_fsetxattr+0x1a8/0x224 fs/xattr.c:656
 __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: 97ef0d7c f94002e8 9101a117 d343fee8 (38746908) 
---[ end trace 73846433d1a29d4d ]---
----------------
Code disassembly (best guess):
   0:	97ef0d7c 	bl	0xffffffffffbc35f0
   4:	f94002e8 	ldr	x8, [x23]
   8:	9101a117 	add	x23, x8, #0x68
   c:	d343fee8 	lsr	x8, x23, #3
* 10:	38746908 	ldrb	w8, [x8, x20] <-- trapping instruction

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/22 01:23 linux-5.15.y 7c6d66f0266f b88348e9 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in reiserfs_xattr_set
* Struck through repros no longer work on HEAD.