------------[ cut here ]------------ kernel BUG at [] mm/page_table_check.c:118! Kernel BUG [#1] Modules linked in: CPU: 1 UID: 0 PID: 3897 Comm: syz.0.12 Not tainted syzkaller #0 PREEMPT Hardware name: riscv-virtio,qemu (DT) epc : page_table_check_set+0xa74/0xd30 mm/page_table_check.c:118 ra : page_table_check_set+0xa74/0xd30 mm/page_table_check.c:118 epc : ffffffff80bfcb7c ra : ffffffff80bfcb7c sp : ffff8f800ad17520 gp : ffffffff89f9df20 tp : ffffaf801b0cb500 t0 : ffff8f800ad17d50 t1 : fffff5ef0269cc09 t2 : ffffffff86806d68 s0 : ffff8f800ad175a0 s1 : 0000000000000001 a0 : 0000000000000001 a1 : 0000000000000000 a2 : 0000000000080000 a3 : ffffffff80bfcb7c a4 : ffff8f8004a0c4a0 a5 : 00000000000374a0 a6 : 0000000000000003 a7 : ffffaf80134e604b s2 : 00000000000b2e00 s3 : 0000000000000000 s4 : ffffaf80134e6000 s5 : 0000000000000200 s6 : 0000000000000001 s7 : dfffffff00000000 s8 : 0000000000007fff s9 : ffffffff88825fa0 s10: 0000000000000000 s11: ffffffff8a0b5d80 t3 : 0000000000000001 t4 : fffff5ef0269cc09 t5 : fffff5ef0269cc0a t6 : 0000000000000002 ssp : 0000000000000000 status: 0000000200000120 badaddr: ffffffff80bfcb7c cause: 0000000000000003 [] page_table_check_set+0xa74/0xd30 mm/page_table_check.c:118 [] __page_table_check_ptes_set+0x264/0x47c mm/page_table_check.c:212 [] page_table_check_ptes_set include/linux/page_table_check.h:76 [inline] [] set_ptes arch/riscv/include/asm/pgtable.h:640 [inline] [] __split_huge_pmd_locked mm/huge_memory.c:3252 [inline] [] split_huge_pmd_locked+0x2b0a/0x326c mm/huge_memory.c:3270 [] __split_huge_pmd+0x2ba/0x3e4 mm/huge_memory.c:3284 [] move_pages+0x19d4/0x55c0 mm/userfaultfd.c:1877 [] userfaultfd_move fs/userfaultfd.c:1942 [inline] [] userfaultfd_ioctl+0x10c6/0x44e0 fs/userfaultfd.c:2065 [] vfs_ioctl fs/ioctl.c:51 [inline] [] __do_sys_ioctl fs/ioctl.c:597 [inline] [] __se_sys_ioctl fs/ioctl.c:583 [inline] [] __riscv_sys_ioctl+0x17c/0x1e4 fs/ioctl.c:583 [] syscall_handler+0x92/0x114 arch/riscv/include/asm/syscall.h:112 [] do_trap_ecall_u+0x3d2/0x58c arch/riscv/kernel/traps.c:344 [] handle_exception+0x15e/0x16a arch/riscv/kernel/entry.S:232 Code: 7097 ff90 80e7 4580 81e3 e004 8097 ff90 80e7 9380 (9002) 8097 ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: ff907097 auipc ra,0xff907 4: 458080e7 jalr 1112(ra) # 0xff907458 8: e00481e3 beqz s1,0xfffffffffffffe0a c: ff908097 auipc ra,0xff908 10: 938080e7 jalr -1736(ra) # 0xff907944 * 14: 9002 ebreak <-- trapping instruction 16: 9780 .short 0x8097