Merge tag 'for-linus-4.15-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux] / arch / x86 / entry / vdso / vma.c
index a77fd3c..5b8b556 100644 (file)
@@ -114,10 +114,11 @@ static int vvar_fault(const struct vm_special_mapping *sm,
                struct pvclock_vsyscall_time_info *pvti =
                        pvclock_get_pvti_cpu0_va();
                if (pvti && vclock_was_used(VCLOCK_PVCLOCK)) {
-                       ret = vm_insert_pfn(
+                       ret = vm_insert_pfn_prot(
                                vma,
                                vmf->address,
-                               __pa(pvti) >> PAGE_SHIFT);
+                               __pa(pvti) >> PAGE_SHIFT,
+                               pgprot_decrypted(vma->vm_page_prot));
                }
        } else if (sym_offset == image->sym_hvclock_page) {
                struct ms_hyperv_tsc_page *tsc_pg = hv_get_tsc_page();