[syzbot] [mm?] BUG: unable to handle kernel paging request in free_unref_page
From: syzbot
Date: Sat Jun 01 2024 - 07:28:42 EST
Hello,
syzbot found the following issue on:
HEAD commit: 4a4be1ad3a6e Revert "vfs: Delete the associated dentry whe..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=15eb1026980000
kernel config: https://syzkaller.appspot.com/x/.config?x=bd6024aedb15e15c
dashboard link: https://syzkaller.appspot.com/bug?extid=e2402985c6e53d251f8c
compiler: aarch64-linux-gnu-gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=131db3ec980000
Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/384ffdcca292/non_bootable_disk-4a4be1ad.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/75957361122b/vmlinux-4a4be1ad.xz
kernel image: https://storage.googleapis.com/syzbot-assets/6c766b0ec377/Image-4a4be1ad.gz.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+e2402985c6e53d251f8c@xxxxxxxxxxxxxxxxxxxxxxxxx
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
---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@xxxxxxxxxxxxxxxx.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup