]> err.no Git - linux-2.6/commit
x86 vDSO: don't map 32-bit vdso when disabled
authorRoland McGrath <roland@redhat.com>
Wed, 9 Apr 2008 08:30:06 +0000 (01:30 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:40:45 +0000 (17:40 +0200)
commit5de253cc5b1f565f7aeb5bacd67bac37e943ceef
tree656d3742a361916deeb989ff8d4bdf346c1ee6ec
parent1a3e4ca41c5a38975023a6e8831c309d3322889c
x86 vDSO: don't map 32-bit vdso when disabled

We map a VMA for the 32-bit vDSO even when it's disabled, which is stupid.
For the 32-bit kernel it's the vdso_enabled boot parameter/sysctl
and for the 64-bit kernel it's the vdso32 boot parameter/syscall32 sysctl.

When it's disabled, we don't pass AT_SYSINFO_EHDR so processes don't use
the vDSO for anything, but we still map it.  For the non-compat vDSO,
this means we're always putting an extra VMA somewhere, maybe lousing
up the control of the address space the user was hoping for.

Honor the setting by doing nothing in arch_setup_additional_pages.

[ also see: "x86 vDSO: don't use disabled vDSO for signal trampoline" ]

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/vdso/vdso32-setup.c