------------[ cut here ]------------ kernel BUG at [] mm/page_table_check.c:118! Kernel BUG [#1] Modules linked in: CPU: 0 UID: 0 PID: 3998 Comm: syz.1.63 Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: riscv-virtio,qemu (DT) epc : page_table_check_set+0x9ca/0xc72 mm/page_table_check.c:118 ra : page_table_check_set+0x9ca/0xc72 mm/page_table_check.c:118 epc : ffffffff80cbd16e ra : ffffffff80cbd16e sp : ffff8f800ae66fe0 gp : ffffffff8a6d9c00 tp : ffffaf801d03d040 t0 : 0000000000000070 t1 : fffff5ef02647409 t2 : ffffffff80acb032 s0 : ffff8f800ae67060 s1 : 0000000000000001 a0 : 0000000000000001 a1 : 0000000000000000 a2 : 0000000000080000 a3 : ffffffff80cbd16e a4 : ffff8f80049e0020 a5 : 0000000000086020 a6 : 0000000000000003 a7 : ffffaf801323a04b s2 : 000000000009f200 s3 : 0000000000000000 s4 : ffffaf801323a000 s5 : 0000000000000200 s6 : 0000000000000001 s7 : dfffffff00000000 s8 : ffffffff88e6d260 s9 : 0000000000007fff s10: 0000000000000000 s11: ffffffff8a7f9d60 t3 : 00000000000000c8 t4 : fffff5ef02647409 t5 : fffff5ef0264740a t6 : 0000000000000002 ssp : 0000000000000000 status: 0000000200000120 badaddr: ffffffff80cbd16e cause: 0000000000000003 [] page_table_check_set+0x9ca/0xc72 mm/page_table_check.c:118 [] __page_table_check_ptes_set+0x23c/0x4a4 mm/page_table_check.c:223 [] page_table_check_ptes_set include/linux/page_table_check.h:83 [inline] [] set_ptes arch/riscv/include/asm/pgtable.h:642 [inline] [] __split_huge_pmd_locked mm/huge_memory.c:3416 [inline] [] split_huge_pmd_locked+0x1f00/0x241e mm/huge_memory.c:3434 [] __split_huge_pmd+0x2aa/0x3d4 mm/huge_memory.c:3448 [] move_page_tables+0xa06/0x3e14 mm/mremap.c:867 [] copy_vma_and_data+0x286/0x640 mm/mremap.c:1292 [] move_vma+0x494/0x10d0 mm/mremap.c:1384 [] mremap_to+0x21c/0x474 mm/mremap.c:1508 [] remap_move mm/mremap.c:1964 [inline] [] do_mremap mm/mremap.c:2012 [inline] [] __do_sys_mremap+0x730/0x1490 mm/mremap.c:2076 [] __se_sys_mremap mm/mremap.c:2044 [inline] [] __riscv_sys_mremap+0xa0/0x15a mm/mremap.c:2044 [] syscall_handler+0x92/0x114 arch/riscv/include/asm/syscall.h:112 [] do_trap_ecall_u+0x4ca/0x658 arch/riscv/kernel/traps.c:341 [] handle_exception+0x168/0x174 arch/riscv/kernel/entry.S:237 Code: 3097 ff88 80e7 a900 82e3 e404 3097 ff88 80e7 f8e0 (9002) 3097 ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: ff883097 auipc ra,0xff883 4: a90080e7 jalr -1392(ra) # 0xff882a90 8: e40482e3 beqz s1,0xfffffffffffffe4c c: ff883097 auipc ra,0xff883 10: f8e080e7 jalr -114(ra) # 0xff882f9a * 14: 9002 ebreak <-- trapping instruction 16: 9730 .short 0x3097