]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/x86/entry/vsyscall/vsyscall_64.c
x86/vsyscall/64: Use proper accessor to update P4D entry
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / entry / vsyscall / vsyscall_64.c
index 577fa8adb785baf5ea1c993a2bbc88adf43fbbcc..542392b6aab6a3d19d1a2a418f43a147f9e705dd 100644 (file)
@@ -355,7 +355,7 @@ void __init set_vsyscall_pgtable_user_bits(pgd_t *root)
        set_pgd(pgd, __pgd(pgd_val(*pgd) | _PAGE_USER));
        p4d = p4d_offset(pgd, VSYSCALL_ADDR);
 #if CONFIG_PGTABLE_LEVELS >= 5
-       p4d->p4d |= _PAGE_USER;
+       set_p4d(p4d, __p4d(p4d_val(*p4d) | _PAGE_USER));
 #endif
        pud = pud_offset(p4d, VSYSCALL_ADDR);
        set_pud(pud, __pud(pud_val(*pud) | _PAGE_USER));