syzbot


BUG: unable to handle kernel paging request in free_unref_page

Status: upstream: reported syz repro on 2024/06/01 11:28
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+e2402985c6e53d251f8c@syzkaller.appspotmail.com
First crash: 26d, last: 12d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] BUG: unable to handle kernel paging request in free_unref_page 0 (1) 2024/06/01 11:28
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/06/13 23:04 12m retest repro upstream report log

Sample crash report:
Unable to handle kernel paging request at virtual address fef0000006705000
Mem abort info:
  ESR = 0x0000000096000047
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x07: level 3 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000047, ISS2 = 0x00000000
  CM = 0, WnR = 1, TnD = 0, TagAccess = 0
  GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
swapper pgtable: 4k pages, 52-bit VAs, pgdp=0000000042650000
[fef0000006705000] pgd=18000000bfdff003, p4d=18000000bfdfe003, pud=18000000bfdfd003, pmd=18000000bfdda003, pte=0068000046705406
Internal error: Oops: 0000000096000047 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 3644 Comm: syz-executor.0 Not tainted 6.10.0-rc1-syzkaller-00027-g4a4be1ad3a6e #0
Hardware name: linux,dummy-virt (DT)
pstate: 21400009 (nzCv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--)
pc : __stg_post arch/arm64/include/asm/mte-kasan.h:120 [inline]
pc : mte_set_mem_tag_range arch/arm64/include/asm/mte-kasan.h:196 [inline]
pc : kasan_poison.constprop.0+0x80/0x104 mm/kasan/kasan.h:478
lr : __kasan_poison_pages+0x50/0x80 mm/kasan/common.c:141
sp : ffff800089163b10
x29: ffff800089163b10 x28: 0000000000000000 x27: 0000000000100dc2
x26: 0000000000100cc2 x25: 0000000000000000 x24: faf0000006decbb8
x23: 00000000000000f9 x22: 0000000040000000 x21: 0000000000000000
x20: 0000000000000000 x19: ffffc1ffc019c140 x18: 0000000000000001
x17: 0000000000000000 x16: 1e9e000000c8e3c1 x15: 0000000000000001
x14: 0000000000000002 x13: 0000000000000000 x12: 00000000000702d1
x11: 0000000000000000 x10: ffff800081e3d1e8 x9 : 00000000000000f9
x8 : 0000000000000038 x7 : 0000000000000000 x6 : fef0000006706000
x5 : fef000000670503f x4 : 0000000000000040 x3 : fef0000006706000
x2 : 0000000000000000 x1 : 0000000000001000 x0 : fef0000006705000
Call trace:
 mte_set_mem_tag_range arch/arm64/include/asm/mte-kasan.h:196 [inline]
 kasan_poison.constprop.0+0x80/0x104 mm/kasan/kasan.h:478
 kasan_poison_pages include/linux/kasan.h:114 [inline]
 free_pages_prepare mm/page_alloc.c:1110 [inline]
 free_unref_page+0x10c/0x488 mm/page_alloc.c:2565
 __folio_put+0xb0/0x104 mm/swap.c:129
 folio_put include/linux/mm.h:1508 [inline]
 secretmem_fault+0x1e8/0x23c mm/secretmem.c:87
 __do_fault+0x3c/0x214 mm/memory.c:4562
 do_read_fault mm/memory.c:4926 [inline]
 do_fault+0x310/0x650 mm/memory.c:5056
 do_pte_missing mm/memory.c:3903 [inline]
 handle_pte_fault mm/memory.c:5380 [inline]
 __handle_mm_fault+0x4d0/0xc20 mm/memory.c:5523
 handle_mm_fault+0x68/0x27c mm/memory.c:5688
 do_page_fault+0x168/0x480 arch/arm64/mm/fault.c:613
 do_translation_fault+0xac/0xbc arch/arm64/mm/fault.c:690
 do_mem_abort+0x44/0x94 arch/arm64/mm/fault.c:826
 el0_da+0x6c/0xb8 arch/arm64/kernel/entry-common.c:580
 el0t_64_sync_handler+0xb8/0x12c arch/arm64/kernel/entry-common.c:733
 el0t_64_sync+0x19c/0x1a0 arch/arm64/kernel/entry.S:598
Code: b5000247 eb04043f 54000203 d503201f (d9201400) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	b5000247 	cbnz	x7, 0x48
   4:	eb04043f 	cmp	x1, x4, lsl #1
   8:	54000203 	b.cc	0x48  // b.lo, b.ul, b.last
   c:	d503201f 	nop
* 10:	d9201400 	stg	x0, [x0], #16 <-- trapping instruction

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