syzbot


BUG: unable to handle kernel paging request in __xfs_free_extent

Status: upstream: reported C repro on 2023/05/28 08:56
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+ab7fe58a24a6451d7ca7@syzkaller.appspotmail.com
First crash: 332d, last: 62d
Fix bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2023/05/28 linux-5.15.y (ToT) 1fe619a7d252 C [report] BUG: unable to handle kernel paging request in __xfs_free_extent
2023/05/28 upstream (ToT) 7877cb91f108 C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in __xfs_free_extent xfs C error done 17 374d 493d 22/26 fixed on 2023/06/08 14:41
linux-6.1 general protection fault in __xfs_free_extent origin:lts-only C done 21 62d 332d 0/3 upstream: reported C repro on 2023/05/28 08:42
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2024/03/22 13:55 0m fix candidate upstream error job log (0)
2024/01/02 11:25 2m fix candidate upstream error job log (0)
2023/11/23 23:06 0m fix candidate upstream error job log (0)
2023/09/24 05:17 6m bisect fix linux-5.15.y error job log (0)

Sample crash report:
loop0: detected capacity change from 0 to 32768
XFS (loop0): Mounting V5 Filesystem
XFS (loop0): Ending clean mount
XFS (loop0): Quotacheck needed: Please wait.
XFS (loop0): Quotacheck: Done.
Unable to handle kernel paging request at virtual address dfff800000000001
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: 96000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 3960 Comm: syz-executor329 Not tainted 5.15.113-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
pstate: 40400005 (nZcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : xfs_free_extent_fix_freelist fs/xfs/libxfs/xfs_alloc.c:3304 [inline]
pc : __xfs_free_extent+0x180/0x500 fs/xfs/libxfs/xfs_alloc.c:3353
lr : xfs_free_extent_fix_freelist fs/xfs/libxfs/xfs_alloc.c:3301 [inline]
lr : __xfs_free_extent+0x12c/0x500 fs/xfs/libxfs/xfs_alloc.c:3353
sp : ffff80001afa7220
x29: ffff80001afa7380 x28: 000000000000000c x27: 0000000000000001
x26: dfff800000000000 x25: 0000000000000000 x24: ffff0000c9afa000
x23: ffff0000c9afa000 x22: ffff80001afa7290 x21: ffff80001afa7280
x20: 0000000000000008 x19: ffff7000035f4e4c x18: ffff80001afa6e60
x17: ff80800009a58930 x16: ffff800011950fac x15: ffff8000089ba408
x14: 1ffff0000291c06a x13: ffffffffffffffff x12: 0000000000000010
x11: 1ffff000035f4e52 x10: 0000000000000000 x9 : 0000000000000000
x8 : 0000000000000001 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : fffffffffffffff0 x3 : 0000000000000010
x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff80001afa7288
Call trace:
 xfs_free_extent_fix_freelist fs/xfs/libxfs/xfs_alloc.c:3304 [inline]
 __xfs_free_extent+0x180/0x500 fs/xfs/libxfs/xfs_alloc.c:3353
 xfs_free_extent fs/xfs/libxfs/xfs_alloc.h:186 [inline]
 xfs_ag_extend_space+0x304/0x490 fs/xfs/libxfs/xfs_ag.c:931
 xfs_resizefs_init_new_ags+0x29c/0x328 fs/xfs/xfs_fsops.c:75
 xfs_growfs_data_private fs/xfs/xfs_fsops.c:148 [inline]
 xfs_growfs_data+0x7e8/0xe3c fs/xfs/xfs_fsops.c:295
 xfs_file_ioctl+0x1b98/0x297c fs/xfs/xfs_ioctl.c:2131
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860
 __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:596
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
Code: 97bd8f4e 91002334 f90037f7 d343fe88 (38fa6908) 
---[ end trace 763fbe1b9da09273 ]---
----------------
Code disassembly (best guess):
   0:	97bd8f4e 	bl	0xfffffffffef63d38
   4:	91002334 	add	x20, x25, #0x8
   8:	f90037f7 	str	x23, [sp, #104]
   c:	d343fe88 	lsr	x8, x20, #3
* 10:	38fa6908 	ldrsb	w8, [x8, x26] <-- trapping instruction

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/28 11:45 linux-5.15.y 1fe619a7d252 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in __xfs_free_extent
2023/05/28 23:52 linux-5.15.y 1fe619a7d252 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in __xfs_free_extent
2023/05/28 09:35 linux-5.15.y 1fe619a7d252 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in __xfs_free_extent
2023/05/28 09:14 linux-5.15.y 1fe619a7d252 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in __xfs_free_extent
2024/02/22 13:09 linux-5.15.y 6139f2a02fe0 345111b5 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan general protection fault in __xfs_free_extent
2023/06/23 05:31 linux-5.15.y f67653019430 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan general protection fault in __xfs_free_extent
2023/06/23 01:05 linux-5.15.y f67653019430 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan general protection fault in __xfs_free_extent
2023/06/23 00:34 linux-5.15.y f67653019430 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan general protection fault in __xfs_free_extent
2023/06/23 00:20 linux-5.15.y f67653019430 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan general protection fault in __xfs_free_extent
2023/07/15 10:31 linux-5.15.y d54cfc420586 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in __xfs_free_extent
2023/06/20 10:23 linux-5.15.y 471e639e59d1 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in __xfs_free_extent
2023/06/20 10:15 linux-5.15.y 471e639e59d1 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in __xfs_free_extent
2023/06/20 10:10 linux-5.15.y 471e639e59d1 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in __xfs_free_extent
2023/06/20 08:53 linux-5.15.y 471e639e59d1 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in __xfs_free_extent
2023/06/02 08:46 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in __xfs_free_extent
2023/05/28 16:16 linux-5.15.y 1fe619a7d252 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in __xfs_free_extent
2023/05/28 08:56 linux-5.15.y 1fe619a7d252 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in __xfs_free_extent
2024/02/22 07:49 linux-5.15.y 6139f2a02fe0 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in __xfs_free_extent
2023/07/15 10:10 linux-5.15.y d54cfc420586 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in __xfs_free_extent
2023/06/20 10:35 linux-5.15.y 471e639e59d1 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in __xfs_free_extent
2023/06/20 10:17 linux-5.15.y 471e639e59d1 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in __xfs_free_extent
2023/06/20 10:13 linux-5.15.y 471e639e59d1 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in __xfs_free_extent
2023/06/20 10:09 linux-5.15.y 471e639e59d1 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in __xfs_free_extent
2023/05/30 04:55 linux-5.15.y 1fe619a7d252 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in __xfs_free_extent
2023/05/30 03:25 linux-5.15.y 1fe619a7d252 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in __xfs_free_extent
2023/05/28 15:55 linux-5.15.y 1fe619a7d252 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in __xfs_free_extent
* Struck through repros no longer work on HEAD.