syzbot


BUG: unable to handle kernel paging request in hfs_find_init

Status: upstream: reported C repro on 2023/03/13 10:13
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+7c669e7491fdbacd64b2@syzkaller.appspotmail.com
First crash: 606d, last: 13d
Bug presence (1)
Date Name Commit Repro Result
2023/06/18 upstream (ToT) 1b29d271614a C [report] BUG: unable to handle kernel paging request in hfs_find_init
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 BUG: unable to handle kernel paging request in hfs_find_init origin:upstream C error 22 32d 583d 0/3 upstream: reported C repro on 2023/04/05 08:29
upstream general protection fault in hfs_find_init hfs C done 839 17h45m 2414d 0/28 upstream: reported C repro on 2018/03/31 20:47
linux-4.14 general protection fault in hfs_find_init hfs C 3 616d 706d 0/1 upstream: reported C repro on 2022/12/03 11:10
linux-4.19 general protection fault in hfs_find_init hfs C 12 617d 713d 0/1 upstream: reported C repro on 2022/11/26 21:41
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2024/10/25 23:38 1h39m bisect fix linux-6.1.y OK (0) job log log
2024/09/24 07:02 2h04m bisect fix linux-6.1.y OK (0) job log log
2024/08/19 03:52 2h52m bisect fix linux-6.1.y OK (0) job log log
2024/07/07 07:54 1h26m bisect fix linux-6.1.y OK (0) job log log
2024/05/29 14:42 1h32m bisect fix linux-6.1.y OK (0) job log log
2024/01/30 06:29 1h29m bisect fix linux-6.1.y OK (0) job log log
2023/12/06 22:08 1h02m bisect fix linux-6.1.y OK (0) job log log
2023/10/20 01:23 1h34m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
loop0: detected capacity change from 0 to 64
Unable to handle kernel paging request at virtual address dfff800000000008
KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047]
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
[dfff800000000008] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4227 Comm: syz-executor207 Not tainted 6.1.87-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
pstate: 80401005 (Nzcv daif +PAN -UAO -TCO -DIT +SSBS BTYPE=--)
pc : hfs_find_init+0x6c/0x1c8 fs/hfs/bfind.c:21
lr : hfs_find_init+0x30/0x1c8 fs/hfs/bfind.c:16
sp : ffff80001dde6ff0
x29: ffff80001dde6ff0 x28: ffff700003bbce14 x27: 0000000000000004
x26: ffff0000de360180 x25: 0000000000000008 x24: dfff800000000000
x23: ffff0000de36014c x22: ffff80001dde70d8 x21: 0000000000000040
x20: ffff80001dde70c0 x19: 0000000000000000 x18: ffff80001dde6b60
x17: ffff8000188dd000 x16: ffff8000120aafc0 x15: ffff8000183c2f80
x14: 0000000016002719 x13: dfff800000000000 x12: 0000000000000007
x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff80000909b230
x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000000000
x5 : ffff800018a0a818 x4 : 0000000000000000 x3 : 0000000000000030
x2 : 0000000000000008 x1 : ffff80001dde70c0 x0 : ffff80001dde70d0
Call trace:
 hfs_find_init+0x6c/0x1c8 fs/hfs/bfind.c:21
 hfs_ext_read_extent fs/hfs/extent.c:200 [inline]
 hfs_get_block+0x29c/0x9e0 fs/hfs/extent.c:366
 block_read_full_folio+0x2f4/0x98c fs/buffer.c:2271
 hfs_read_folio+0x28/0x38 fs/hfs/inode.c:39
 filemap_read_folio+0x14c/0x39c mm/filemap.c:2461
 do_read_cache_folio+0x24c/0x544 mm/filemap.c:3598
 do_read_cache_page mm/filemap.c:3640 [inline]
 read_cache_page+0x6c/0x180 mm/filemap.c:3649
 read_mapping_page include/linux/pagemap.h:791 [inline]
 hfs_btree_open+0x440/0x1010 fs/hfs/btree.c:78
 hfs_mdb_get+0x10cc/0x1c2c fs/hfs/mdb.c:199
 hfs_fill_super+0xd64/0x13b4 fs/hfs/super.c:406
 mount_bdev+0x274/0x370 fs/super.c:1432
 hfs_mount+0x44/0x58 fs/hfs/super.c:456
 legacy_get_tree+0xd4/0x16c fs/fs_context.c:632
 vfs_get_tree+0x90/0x274 fs/super.c:1562
 do_new_mount+0x278/0x8fc fs/namespace.c:3051
 path_mount+0x590/0xe5c fs/namespace.c:3381
 do_mount fs/namespace.c:3394 [inline]
 __do_sys_mount fs/namespace.c:3602 [inline]
 __se_sys_mount fs/namespace.c:3579 [inline]
 __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3579
 __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: 97e36ff7 91010275 f90002df d343feb9 (38f86b28) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	97e36ff7 	bl	0xffffffffff8dbfdc
   4:	91010275 	add	x21, x19, #0x40
   8:	f90002df 	str	xzr, [x22]
   c:	d343feb9 	lsr	x25, x21, #3
* 10:	38f86b28 	ldrsb	w8, [x25, x24] <-- trapping instruction

Crashes (25):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/24 00:51 linux-6.1.y 6741e066ec76 21339d7b .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 hfs_find_init
2024/04/01 18:19 linux-6.1.y e5cd595e23c1 6baf5069 .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 hfs_find_init
2023/06/17 20:38 linux-6.1.y ca87e77a2ef8 f3921d4d .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 hfs_find_init
2023/12/28 04:25 linux-6.1.y 4aa6747d9352 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan general protection fault in hfs_find_init
2023/09/15 13:26 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan general protection fault in hfs_find_init
2024/04/10 00:05 linux-6.1.y 347385861c50 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfs_find_init
2024/03/30 14:24 linux-6.1.y e5cd595e23c1 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfs_find_init
2024/03/27 16:12 linux-6.1.y e5cd595e23c1 454571b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfs_find_init
2024/03/27 07:17 linux-6.1.y e5cd595e23c1 454571b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfs_find_init
2024/03/17 19:22 linux-6.1.y d7543167affd d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfs_find_init
2024/02/28 02:25 linux-6.1.y 81e1dc2f7001 d367cbe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfs_find_init
2023/11/06 18:53 linux-6.1.y 4a61839152cc 78fae24e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfs_find_init
2023/08/23 10:50 linux-6.1.y 6c44e13dc284 b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfs_find_init
2023/08/20 14:46 linux-6.1.y 6c44e13dc284 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfs_find_init
2023/07/21 13:16 linux-6.1.y a456e1743881 28847498 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfs_find_init
2023/06/30 23:06 linux-6.1.y a1c449d00ff8 af3053d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfs_find_init
2023/04/12 16:06 linux-6.1.y 543aff194ab6 1a1596b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfs_find_init
2023/04/03 02:59 linux-6.1.y 3b29299e5f60 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfs_find_init
2023/03/13 10:12 linux-6.1.y 1cc3fcf63192 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfs_find_init
2024/04/08 11:22 linux-6.1.y 347385861c50 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in hfs_find_init
2024/04/07 08:20 linux-6.1.y 347385861c50 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in hfs_find_init
2024/03/22 22:47 linux-6.1.y d7543167affd 4b6cdce6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in hfs_find_init
2024/02/20 14:27 linux-6.1.y 8b4118fabd6e 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in hfs_find_init
2023/12/28 01:45 linux-6.1.y 4aa6747d9352 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in hfs_find_init
2023/12/18 08:35 linux-6.1.y ba6f5fb46511 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in hfs_find_init
* Struck through repros no longer work on HEAD.