------------[ cut here ]------------ kernel BUG at mm/page_table_check.c:118! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 1 UID: 0 PID: 7555 Comm: syz.3.186 Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 83400005 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : page_table_check_set+0x584/0x590 mm/page_table_check.c:118 lr : page_table_check_set+0x584/0x590 mm/page_table_check.c:118 sp : ffff8000a2b174c0 x29: ffff8000a2b174d0 x28: ffff80008fae0000 x27: 0000000000000002 x26: ffff0000c0840a80 x25: 0000000000000001 x24: 0000000000000001 x23: ffff0000c0840a80 x22: 0000000000140150 x21: 0000000000000001 x20: 0000000000000003 x19: 1ffff00012eb65b0 x18: 0000000000000000 x17: 0000000000000000 x16: ffff800080528a28 x15: 0000000000000001 x14: 1fffe00018108150 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 00000000000082ab x9 : ffff8000a573c000 x8 : 00000000000082ac x7 : ffff800080d16554 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800080d15b5c x2 : 0000000000000001 x1 : 0000000000000002 x0 : 0000000000000001 Call trace: page_table_check_set+0x584/0x590 mm/page_table_check.c:118 (P) __page_table_check_ptes_set+0x2a8/0x2e0 mm/page_table_check.c:209 page_table_check_ptes_set include/linux/page_table_check.h:76 [inline] __set_ptes_anysz arch/arm64/include/asm/pgtable.h:709 [inline] __set_ptes+0x4a0/0x504 arch/arm64/include/asm/pgtable.h:741 contpte_set_ptes+0x120/0x188 arch/arm64/mm/contpte.c:464 set_ptes arch/arm64/include/asm/pgtable.h:1794 [inline] modify_prot_commit_ptes+0x4e4/0x694 arch/arm64/mm/mmu.c:1556 prot_commit_flush_ptes mm/mprotect.c:197 [inline] commit_anon_folio_batch mm/mprotect.c:246 [inline] set_write_prot_commit_flush_ptes mm/mprotect.c:273 [inline] change_pte_range mm/mprotect.c:354 [inline] change_pmd_range mm/mprotect.c:570 [inline] change_pud_range mm/mprotect.c:633 [inline] change_p4d_range mm/mprotect.c:659 [inline] change_protection_range mm/mprotect.c:687 [inline] change_protection+0x1e84/0x3ff0 mm/mprotect.c:721 mprotect_fixup+0x504/0x744 mm/mprotect.c:837 do_mprotect_pkey+0x864/0xb30 mm/mprotect.c:993 __do_sys_mprotect mm/mprotect.c:1014 [inline] __se_sys_mprotect mm/mprotect.c:1011 [inline] __arm64_sys_mprotect+0x80/0x98 mm/mprotect.c:1011 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Code: d4210000 97e865fd d4210000 97e865fb (d4210000) ---[ end trace 0000000000000000 ]---