diff options
author | Andy Lutomirski <luto@amacapital.net> | 2014-07-25 19:27:01 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-07-25 19:32:53 -0400 |
commit | ac379835e820de27429b5c4eadf4c1b40320cff4 (patch) | |
tree | a3946752e7667cde6bf12b4921b6d095d3a7724a /arch/x86 | |
parent | da861e18ecccb5c126b9eb95ff720ce082a46286 (diff) |
x86/vdso: Set VM_MAYREAD for the vvar vma
The VVAR area can, obviously, be read; that is kind of the point.
AFAIK this has no effect whatsoever unless x86 suddenly turns into a
nommu architecture. Nonetheless, not setting it is suspicious.
Reported-by: Nathan Lynch <Nathan_Lynch@mentor.com>
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Link: http://lkml.kernel.org/r/e4c8bf4bc2725bda22c4a4b7d0c82adcd8f8d9b8.1406330779.git.luto@amacapital.net
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/vdso/vma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/vdso/vma.c b/arch/x86/vdso/vma.c index dbef622bb5af..970463b566cf 100644 --- a/arch/x86/vdso/vma.c +++ b/arch/x86/vdso/vma.c | |||
@@ -138,7 +138,7 @@ static int map_vdso(const struct vdso_image *image, bool calculate_addr) | |||
138 | vma = _install_special_mapping(mm, | 138 | vma = _install_special_mapping(mm, |
139 | addr, | 139 | addr, |
140 | -image->sym_vvar_start, | 140 | -image->sym_vvar_start, |
141 | VM_READ, | 141 | VM_READ|VM_MAYREAD, |
142 | &vvar_mapping); | 142 | &vvar_mapping); |
143 | 143 | ||
144 | if (IS_ERR(vma)) { | 144 | if (IS_ERR(vma)) { |