Skip to content

Commit 1d6fad7

Browse files
hcahcaakpm00
authored andcommitted
mseal sysmap: generic vdso vvar mapping
With the introduction of the generic vdso data storage the VM_SEALED_SYSMAP vm flag must be moved from the architecture specific _install_special_mapping() call [1] [2] which maps the vvar mapping to generic code. [1] https://lkml.kernel.org/r/[email protected] [2] https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Heiko Carstens <[email protected]> Reviewed-by: Lorenzo Stoakes <[email protected]> Cc: Alexander Gordeev <[email protected]> Cc: Christian Borntraeger <[email protected]> Cc: Jeff Xu <[email protected]> Cc: Liam Howlett <[email protected]> Cc: Sven Schnelle <[email protected]> Cc: Thomas Weißschuh <[email protected]> Cc: Vasily Gorbik <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 7b0141d commit 1d6fad7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/vdso/datastore.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ const struct vm_special_mapping vdso_vvar_mapping = {
9999
struct vm_area_struct *vdso_install_vvar_mapping(struct mm_struct *mm, unsigned long addr)
100100
{
101101
return _install_special_mapping(mm, addr, VDSO_NR_PAGES * PAGE_SIZE,
102-
VM_READ | VM_MAYREAD | VM_IO | VM_DONTDUMP | VM_PFNMAP,
102+
VM_READ | VM_MAYREAD | VM_IO | VM_DONTDUMP |
103+
VM_PFNMAP | VM_SEALED_SYSMAP,
103104
&vdso_vvar_mapping);
104105
}
105106

0 commit comments

Comments
 (0)