syzbot


BUG: unable to handle kernel paging request in hfsplus_rename_cat

Status: upstream: reported C repro on 2024/11/09 17:58
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+751ecf7838e3d4ecb4a7@syzkaller.appspotmail.com
First crash: 34d, last: 34d
Bug presence (1)
Date Name Commit Repro Result
2024/11/15 upstream (ToT) cfaaa7d010d1 C [report] BUG: unable to handle kernel paging request in hfsplus_rename_cat
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in hfsplus_rename_cat hfs C inconclusive 639 17h36m 429d 0/28 upstream: reported C repro on 2023/10/11 11:48

Sample crash report:
hfsplus: bad catalog entry type
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: 0 PID: 4288 Comm: syz-executor217 Not tainted 6.1.116-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : hfsplus_rename_cat+0x3e4/0xf30 fs/hfsplus/catalog.c:480
lr : hfsplus_rename_cat+0x3a0/0xf30 fs/hfsplus/catalog.c:474
sp : ffff800020fb7540
x29: ffff800020fb79a0 x28: ffff0000d8b81cd8 x27: ffff0000cf1937d8
x26: 0000000000000040 x25: 1fffe0001b17039b x24: ffff0000d0c03000
x23: ffff7000041f6ec0 x22: ffff800020fb76e0 x21: dfff800000000000
x20: 00000000000000f8 x19: ffff800020fb7620 x18: ffff800020fb6fa0
x17: ffff800018abc000 x16: ffff8000121e6200 x15: 0000000000000000
x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000ff0100 x10: 0000000000000000 x9 : 0000000000000200
x8 : 0000000000000008 x7 : 0000000000000000 x6 : 0000000000000000
x5 : ffff800020fb77d8 x4 : ffff0000dfb3c1d4 x3 : ffff800020fb7760
x2 : ffffffffffffffe8 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 hfsplus_rename_cat+0x3e4/0xf30 fs/hfsplus/catalog.c:480
 hfsplus_unlink+0x278/0x6a0 fs/hfsplus/dir.c:376
 vfs_unlink+0x2f0/0x508 fs/namei.c:4322
 do_unlinkat+0x4cc/0x70c fs/namei.c:4390
 __do_sys_unlinkat fs/namei.c:4433 [inline]
 __se_sys_unlinkat fs/namei.c:4426 [inline]
 __arm64_sys_unlinkat+0xcc/0xfc fs/namei.c:4426
 __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:140
 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:204
 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: f940a3f8 9101011a d343ff48 f9001fe8 (38756908) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	f940a3f8 	ldr	x24, [sp, #320]
   4:	9101011a 	add	x26, x8, #0x40
   8:	d343ff48 	lsr	x8, x26, #3
   c:	f9001fe8 	str	x8, [sp, #56]
* 10:	38756908 	ldrb	w8, [x8, x21] <-- trapping instruction

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/10 04:51 linux-6.1.y d7039b844a1c 6b856513 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfsplus_rename_cat
2024/11/09 23:43 linux-6.1.y d7039b844a1c 6b856513 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfsplus_rename_cat
2024/11/09 22:41 linux-6.1.y d7039b844a1c 6b856513 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfsplus_rename_cat
2024/11/09 21:05 linux-6.1.y d7039b844a1c 6b856513 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfsplus_rename_cat
2024/11/09 19:25 linux-6.1.y d7039b844a1c 6b856513 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfsplus_rename_cat
2024/11/09 17:57 linux-6.1.y d7039b844a1c 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in hfsplus_rename_cat
* Struck through repros no longer work on HEAD.