syzbot


BUG: unable to handle kernel paging request in ext4_xattr_set_handle

Status: auto-obsoleted due to no activity on 2023/01/15 00:17
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+929dffecddfee88354d3@syzkaller.appspotmail.com
First crash: 555d, last: 555d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in ext4_xattr_set_handle (2) ext4 1 453d 449d 0/26 auto-obsoleted due to no activity on 2023/04/26 11:24

Sample crash report:
loop4: detected capacity change from 0 to 512
EXT4-fs (loop4): mounted filesystem without journal. Quota mode: none.
Unable to handle kernel paging request at virtual address 1fff800003550b30
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
[1fff800003550b30] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 24261 Comm: syz-executor.4 Not tainted 6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
pstate: 004000c5 (nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : generic_test_bit include/asm-generic/bitops/generic-non-atomic.h:128 [inline]
pc : __lock_acquire+0x654/0x30a4 kernel/locking/lockdep.c:5023
lr : mark_usage kernel/locking/lockdep.c:4553 [inline]
lr : __lock_acquire+0x630/0x30a4 kernel/locking/lockdep.c:5007
sp : ffff800013c7b6c0
x29: ffff800013c7b7a0 x28: 0000000000000002 x27: ffff00011d6c9ad0
x26: ffff00011d6ca4e0 x25: ffff00011d6ca500 x24: ffff00011d6ca500
x23: 00000000000000c0 x22: 0000000000000001 x21: 0000000000000000
x20: ffff00011d6c9a80 x19: 555554aaac22ccce x18: 00000000000000c0
x17: ffff80000dd0b198 x16: ffff80000db49158 x15: ffff00011d6c9a80
x14: 0000000000000055 x13: ffff80000819fab0 x12: 0000000000040000
x11: ffff80000dd0b198 x10: ffff80000dd0b198 x9 : 1ffffffff5845998
x8 : 0000000000000000 x7 : ffff800008846f1c x6 : ffff800008011548
x5 : 481501080080ffff x4 : ffff800008011548 x3 : 481501080080ffff
x2 : 0000000000000008 x1 : ffff00011d6ca4e0 x0 : 0000000000000001
Call trace:
 generic_test_bit include/asm-generic/bitops/generic-non-atomic.h:128 [inline]
 __lock_acquire+0x654/0x30a4 kernel/locking/lockdep.c:5023
 lock_acquire+0x100/0x1f8 kernel/locking/lockdep.c:5666
 down_write+0x5c/0xcc kernel/locking/rwsem.c:1552
 ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline]
 ext4_xattr_set_handle+0xd0/0x994 fs/ext4/xattr.c:2309
 ext4_xattr_set+0x100/0x1d0 fs/ext4/xattr.c:2495
 ext4_xattr_trusted_set+0x4c/0x64 fs/ext4/xattr_trusted.c:38
 __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+0x174/0x280 fs/xattr.c:313
 do_setxattr fs/xattr.c:600 [inline]
 setxattr fs/xattr.c:623 [inline]
 path_setxattr+0x354/0x414 fs/xattr.c:642
 __do_sys_setxattr fs/xattr.c:658 [inline]
 __se_sys_setxattr fs/xattr.c:654 [inline]
 __arm64_sys_setxattr+0x2c/0x40 fs/xattr.c:654
 __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:636
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: 350000e8 93407e69 d343fd29 927de529 (f8696949) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	350000e8 	cbnz	w8, 0x1c
   4:	93407e69 	sxtw	x9, w19
   8:	d343fd29 	lsr	x9, x9, #3
   c:	927de529 	and	x9, x9, #0x1ffffffffffffff8
* 10:	f8696949 	ldr	x9, [x10, x9] <-- trapping instruction

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/17 00:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ext4_xattr_set_handle
* Struck through repros no longer work on HEAD.