------------[ cut here ]------------ WARNING: CPU: 1 PID: 6564 at mm/page_table_check.c:207 page_table_check_pte_flags mm/page_table_check.c:207 [inline] WARNING: CPU: 1 PID: 6564 at mm/page_table_check.c:207 __page_table_check_ptes_set+0x2fa/0x3e0 mm/page_table_check.c:220 Modules linked in: CPU: 1 UID: 0 PID: 6564 Comm: syz.3.170 Not tainted 6.12.0-rc6-syzkaller-00077-g2e1b3cc9d7f7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:page_table_check_pte_flags mm/page_table_check.c:207 [inline] RIP: 0010:__page_table_check_ptes_set+0x2fa/0x3e0 mm/page_table_check.c:220 Code: e9 91 fe ff ff e8 06 62 92 ff 48 8b 2c 24 31 ff 83 e5 02 48 89 ee e8 65 64 92 ff 48 85 ed 0f 84 85 00 00 00 e8 e7 61 92 ff 90 <0f> 0b 90 e9 e9 fd ff ff e8 d9 61 92 ff eb 69 cc cc cc e8 cf 61 92 RSP: 0018:ffffc9000347f938 EFLAGS: 00010283 RAX: 0000000000019e02 RBX: ffff88803154d980 RCX: ffffc9000cd74000 RDX: 0000000000040000 RSI: ffffffff81fb1969 RDI: 0000000000000007 RBP: 0000000000000002 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000000001 R13: ffff88801b072f80 R14: 0000000000000001 R15: 1ffff9200068ff29 FS: 00007f0b39cc16c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9ffd4656c0 CR3: 000000007adee000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: page_table_check_ptes_set include/linux/page_table_check.h:74 [inline] set_ptes include/linux/pgtable.h:267 [inline] __ptep_modify_prot_commit include/linux/pgtable.h:1308 [inline] ptep_modify_prot_commit include/linux/pgtable.h:1341 [inline] change_pte_range mm/mprotect.c:195 [inline] change_pmd_range mm/mprotect.c:415 [inline] change_pud_range mm/mprotect.c:478 [inline] change_p4d_range mm/mprotect.c:504 [inline] change_protection_range mm/mprotect.c:532 [inline] change_protection+0x1c90/0x35b0 mm/mprotect.c:566 mprotect_fixup+0x5e6/0xbe0 mm/mprotect.c:682 do_mprotect_pkey+0x98e/0xd00 mm/mprotect.c:838 __do_sys_mprotect mm/mprotect.c:859 [inline] __se_sys_mprotect mm/mprotect.c:856 [inline] __x64_sys_mprotect+0x78/0xc0 mm/mprotect.c:856 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0b38f7e719 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0b39cc1038 EFLAGS: 00000246 ORIG_RAX: 000000000000000a RAX: ffffffffffffffda RBX: 00007f0b39136058 RCX: 00007f0b38f7e719 RDX: 0000000000000006 RSI: 0000000000800000 RDI: 0000000020000000 RBP: 00007f0b38ff139e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f0b39136058 R15: 00007ffe9f128f98