------------[ cut here ]------------ WARNING: CPU: 1 PID: 4164 at include/linux/swapops.h:309 change_pte_range+0x940/0x1280 mm/mprotect.c:224 Modules linked in: CPU: 1 PID: 4164 Comm: syz-executor.0 Not tainted 5.18.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:make_pte_marker_entry include/linux/swapops.h:309 [inline] RIP: 0010:make_pte_marker include/linux/swapops.h:332 [inline] RIP: 0010:change_pte_range+0x940/0x1280 mm/mprotect.c:232 Code: ff ff 4c 8b bc 24 a0 00 00 00 4c 89 f8 48 c1 e8 03 42 80 3c 30 00 74 08 4c 89 ff e8 ca 7b 0d 00 49 83 3f 00 0f 84 50 fa ff ff <0f> 0b 48 8d bc 24 e0 00 00 00 49 89 ff 49 c1 ef 03 43 80 3c 37 00 RSP: 0018:ffffc90002dbf5a0 EFLAGS: 00010282 RAX: 1ffff110047a0a54 RBX: ffff8880702ce1e8 RCX: ffffc90002dbf9b8 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880796a0d00 RBP: ffffc90002dbf728 R08: dffffc0000000000 R09: ffffed100f2d41a1 R10: ffffed100f2d41a1 R11: 1ffff1100f2d41a0 R12: 000000002063d000 R13: ffff8880702ce1e8 R14: dffffc0000000000 R15: ffff888023d052a0 FS: 00007fb64f8dd700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000000 CR3: 0000000023dac000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: change_pmd_range mm/mprotect.c:370 [inline] change_pud_range mm/mprotect.c:399 [inline] change_p4d_range mm/mprotect.c:420 [inline] change_protection_range mm/mprotect.c:444 [inline] change_protection+0x4a1/0xca0 mm/mprotect.c:466 mwriteprotect_range+0x369/0x440 mm/userfaultfd.c:756 userfaultfd_writeprotect fs/userfaultfd.c:1821 [inline] userfaultfd_ioctl+0x95b/0x2850 fs/userfaultfd.c:1995 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xa7/0xf0 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fb64e68a5a9 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb64f8dd168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fb64e7abf80 RCX: 00007fb64e68a5a9 RDX: 00000000200000c0 RSI: 00000000c018aa06 RDI: 0000000000000003 RBP: 00007fb64e6e5580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffff0e9148f R14: 00007fb64f8dd300 R15: 0000000000022000