syzbot


BUG: unable to handle kernel paging request in reiserfs_get_block

Status: upstream: reported C repro on 2024/05/20 22:59
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+1c65fc19961d9c5eff47@syzkaller.appspotmail.com
First crash: 29d, last: 29d
Bug presence (1)
Date Name Commit Repro Result
2024/05/21 upstream (ToT) 8f6a15f095a6 C [report] BUG: unable to handle kernel paging request in reiserfs_get_block
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in reiserfs_get_block reiserfs 2 529d 526d 0/27 auto-obsoleted due to no activity on 2023/05/06 14:40

Sample crash report:
REISERFS (device loop0): checking transaction log (loop0)
REISERFS (device loop0): Using tea hash to sort names
REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.
Unable to handle kernel paging request at virtual address dfff800000000001
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
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: 4231 Comm: syz-executor276 Not tainted 6.1.91-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : reiserfs_get_block+0x1440/0x45d8 fs/reiserfs/inode.c:1052
lr : reiserfs_get_block+0x13fc/0x45d8 fs/reiserfs/inode.c:1047
sp : ffff80001dd66c20
x29: ffff80001dd672a0 x28: 1fffe0001c57c814 x27: ffffffffffffffff
x26: 00000000000003f4 x25: 000000000000000c x24: 000000000000000c
x23: 0000000000000000 x22: 0000000000000010 x21: 000000000000021e
x20: ffff0000e2403d58 x19: dfff800000000000 x18: 0000000000000010
x17: ffff8000188df000 x16: ffff8000120adcc0 x15: 0000000000000000
x14: 00000000fffffffd x13: ffff0000d8303780 x12: 0000000000000004
x11: 0000000000ff0100 x10: 0000000000000000 x9 : 0000000000000003
x8 : 0000000000000001 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000001 x4 : 0000000000000000 x3 : 0000000000000020
x2 : 0000000000000000 x1 : 00000000000003f4 x0 : 0000000000000000
Call trace:
 reiserfs_get_block+0x1440/0x45d8 fs/reiserfs/inode.c:1052
 __block_write_begin_int+0x340/0x13b4 fs/buffer.c:1991
 __block_write_begin+0x7c/0xa0 fs/buffer.c:2041
 __reiserfs_write_begin+0x348/0x56c fs/reiserfs/inode.c:2835
 reiserfs_xattr_set_handle+0x46c/0xe90 fs/reiserfs/xattr.c:571
 reiserfs_xattr_set+0x398/0x4b0 fs/reiserfs/xattr.c:633
 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:309
 do_setxattr fs/xattr.c:594 [inline]
 setxattr+0x230/0x294 fs/xattr.c:617
 __do_sys_fsetxattr fs/xattr.c:673 [inline]
 __se_sys_fsetxattr fs/xattr.c:662 [inline]
 __arm64_sys_fsetxattr+0x1a8/0x224 fs/xattr.c:662
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Code: 350071a8 8b1b0ad9 b94483f5 d343ff28 (38f36908) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	350071a8 	cbnz	w8, 0xe34
   4:	8b1b0ad9 	add	x25, x22, x27, lsl #2
   8:	b94483f5 	ldr	w21, [sp, #1152]
   c:	d343ff28 	lsr	x8, x25, #3
* 10:	38f36908 	ldrsb	w8, [x8, x19] <-- trapping instruction

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/20 23:54 linux-6.1.y 4078fa637fcd c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in reiserfs_get_block
2024/05/20 22:58 linux-6.1.y 4078fa637fcd c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in reiserfs_get_block
* Struck through repros no longer work on HEAD.