syzbot


BUG: unable to handle kernel paging request in mas_walk

Status: upstream: reported C repro on 2024/06/04 02:23
Subsystems: maple-tree
[Documentation on labels]
Reported-by: syzbot+c67d06ab25a9bc4adf35@syzkaller.appspotmail.com
First crash: 18d, last: 18d
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] [maple-tree?] BUG: unable to handle kernel paging request in mas_walk 4 (6) 2024/06/13 19:02
1 (1) 2024/06/04 15:49
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/06/14 02:18 26m retest repro upstream OK log
2024/06/04 15:06 11m liam.howlett@oracle.com git://git.infradead.org/users/jedix/linux-maple.git syz_20240603 report log

Sample crash report:
Unable to handle kernel paging request at virtual address 00700000077b9b78
Mem abort info:
  ESR = 0x0000000096000004
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x04: level 0 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
  CM = 0, WnR = 0, TnD = 0, TagAccess = 0
  GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[00700000077b9b78] address between user and kernel address ranges
Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 3186 Comm: syz-executor162 Not tainted 6.10.0-rc1-syzkaller-00027-g4a4be1ad3a6e #0
Hardware name: linux,dummy-virt (DT)
pstate: 81400009 (Nzcv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--)
pc : ma_data_end lib/maple_tree.c:1419 [inline]
pc : mtree_range_walk lib/maple_tree.c:2771 [inline]
pc : mas_state_walk lib/maple_tree.c:3678 [inline]
pc : mas_walk+0x194/0x328 lib/maple_tree.c:4909
lr : lock_vma_under_rcu+0x58/0x134 mm/memory.c:5840
sp : ffff800088cabd50
x29: ffff800088cabd50 x28: f2f0000005e50000 x27: 0000000000000000
x26: 0000000000000004 x25: f7f0000005c03900 x24: 0000000082000007
x23: 0000ffff82687800 x22: 0000000000000354 x21: 0000ffff82687800
x20: 0000ffff82687800 x19: ffff800088cabeb0 x18: ff7ffffffffffbff
x17: 0000aaaadab2dc00 x16: 1e4e000000ef7371 x15: 0000000000000001
x14: ffffffffffffffff x13: 0000000000000000 x12: ffff800081e3d1e8
x11: 0000000000000001 x10: f2700000077b9b8c x9 : f2700000077b9b00
x8 : 0000ffff82687800 x7 : 0000000000000001 x6 : 000000000000000e
x5 : 0000000000000001 x4 : ffff800088cabd78 x3 : 0000aaaadab2dc00
x2 : 000000000000000e x1 : 000000000000000f x0 : f2700000077b9b08
Call trace:
 ma_data_end lib/maple_tree.c:1418 [inline]
 mtree_range_walk lib/maple_tree.c:2771 [inline]
 mas_state_walk lib/maple_tree.c:3678 [inline]
 mas_walk+0x194/0x328 lib/maple_tree.c:4909
 do_page_fault+0xd4/0x480 arch/arm64/mm/fault.c:567
 do_translation_fault+0xac/0xbc arch/arm64/mm/fault.c:690
 do_mem_abort+0x44/0x94 arch/arm64/mm/fault.c:826
 el0_ia+0xa4/0x118 arch/arm64/kernel/entry-common.c:598
 el0t_64_sync_handler+0xd0/0x12c arch/arm64/kernel/entry-common.c:736
 el0t_64_sync+0x19c/0x1a0 arch/arm64/kernel/entry.S:598
Code: 91002120 51000426 92401cc2 12001cc6 (f8627802) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	91002120 	add	x0, x9, #0x8
   4:	51000426 	sub	w6, w1, #0x1
   8:	92401cc2 	and	x2, x6, #0xff
   c:	12001cc6 	and	w6, w6, #0xff
* 10:	f8627802 	ldr	x2, [x0, x2, lsl #3] <-- trapping instruction

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/31 02:16 upstream 4a4be1ad3a6e 34889ee3 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte BUG: unable to handle kernel paging request in mas_walk
* Struck through repros no longer work on HEAD.