syzbot


BUG: unable to handle kernel NULL pointer dereference in reiserfs_set_acl

Status: upstream: reported on 2022/10/04 15:06
Reported-by: syzbot+27d15e986992eff93cd9@syzkaller.appspotmail.com
First crash: 55d, last: 17d

Sample crash report:
loop0: detected capacity change from 0 to 32768
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000068
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
user pgtable: 4k pages, 48-bit VAs, pgdp=000000013c899000
[0000000000000068] pgd=080000010413f003, p4d=080000010413f003, pud=080000013c756003, pmd=0000000000000000
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4592 Comm: syz-executor.0 Not tainted 6.1.0-rc4-syzkaller-31872-g1621b6eaebf7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : d_really_is_negative include/linux/dcache.h:466 [inline]
pc : reiserfs_xattr_jcreate_nblocks fs/reiserfs/xattr.h:79 [inline]
pc : reiserfs_set_acl+0xd0/0x2c0 fs/reiserfs/xattr_acl.c:36
lr : reiserfs_xattr_jcreate_nblocks fs/reiserfs/xattr.h:78 [inline]
lr : reiserfs_set_acl+0xc0/0x2c0 fs/reiserfs/xattr_acl.c:36
sp : ffff80001fd8b990
x29: ffff80001fd8b9e0
 x28: ffff0000feff9c00
 x27: 0000000000000002

x26: 0000000000000000
 x25: 0000000000000036
 x24: 000000000000002b

x23: 0000000000000000
 x22: ffff0000fbf3d000 x21: ffff0000fc17a900
x20: 0000000000008000 x19: ffff0000ff818190 x18: 00000000000000c0
x17: ffff80000dcdc198
 x16: 0000000000000000 x15: 0000000000000000
x14: 0000000000000002 x13: 0000000000000020 x12: 0000000000040000
x11: 000000000000264c x10: 000000000000006c x9 : 00000000000001c0
x8 : 0000000000000000 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 00000000ffffffff x4 : 0000000000000c40 x3 : 0000000000008000
x2 : ffff0000fc17a900 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 reiserfs_xattr_jcreate_nblocks fs/reiserfs/xattr.h:78 [inline]
 reiserfs_set_acl+0xd0/0x2c0 fs/reiserfs/xattr_acl.c:36
 set_posix_acl fs/posix_acl.c:1160 [inline]
 posix_acl_xattr_set+0x1e0/0x240 fs/posix_acl.c:1189
 __vfs_setxattr+0x250/0x260 fs/xattr.c:182
 __vfs_setxattr_noperm+0xcc/0x320 fs/xattr.c:216
 __vfs_setxattr_locked+0x16c/0x194 fs/xattr.c:277
 vfs_setxattr+0xf4/0x1f4 fs/xattr.c:309
 do_setxattr fs/xattr.c:594 [inline]
 setxattr fs/xattr.c:617 [inline]
 path_setxattr+0x354/0x414 fs/xattr.c:636
 __do_sys_lsetxattr fs/xattr.c:659 [inline]
 __se_sys_lsetxattr fs/xattr.c:655 [inline]
 __arm64_sys_lsetxattr+0x2c/0x40 fs/xattr.c:655
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584
Code: f942d388 f10002ff 52803809 52800d8a (f9403508) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	f942d388 	ldr	x8, [x28, #1440]
   4:	f10002ff 	cmp	x23, #0x0
   8:	52803809 	mov	w9, #0x1c0                 	// #448
   c:	52800d8a 	mov	w10, #0x6c                  	// #108
* 10:	f9403508 	ldr	x8, [x8, #104] <-- trapping instruction

Crashes (8):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-arm64 2022/11/11 17:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 3ead01ad .config log report info BUG: unable to handle kernel NULL pointer dereference in reiserfs_set_acl
ci-upstream-gce-arm64 2022/11/06 11:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info BUG: unable to handle kernel NULL pointer dereference in reiserfs_set_acl
ci-upstream-gce-arm64 2022/11/06 02:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info BUG: unable to handle kernel NULL pointer dereference in reiserfs_set_acl
ci-upstream-gce-arm64 2022/10/23 22:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 23bf86af .config log report info BUG: unable to handle kernel NULL pointer dereference in reiserfs_set_acl
ci-upstream-gce-arm64 2022/10/18 16:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 b31320fc .config log report info BUG: unable to handle kernel NULL pointer dereference in reiserfs_set_acl
ci-upstream-gce-arm64 2022/10/15 18:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config log report info BUG: unable to handle kernel NULL pointer dereference in reiserfs_set_acl
ci-upstream-gce-arm64 2022/10/14 04:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 4954e4b2 .config log report info BUG: unable to handle kernel NULL pointer dereference in reiserfs_set_acl
ci-upstream-gce-arm64 2022/10/04 14:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 eab8f949 .config log report info BUG: unable to handle kernel NULL pointer dereference in reiserfs_set_acl
* Struck through repros no longer work on HEAD.