x86 vDSO: consolidate vdso32
This makes x86_64's ia32 emulation support share the sources used in the 32-bit kernel for the 32-bit vDSO and much of its setup code. The 32-bit vDSO mapping now behaves the same on x86_64 as on native 32-bit. The abi.syscall32 sysctl on x86_64 now takes the same values that vm.vdso_enabled takes on the 32-bit kernel. That is, 1 means a randomized vDSO location, 2 means the fixed old address. The CONFIG_COMPAT_VDSO option is now available to make this the default setting, the same meaning it has for the 32-bit kernel. (This does not affect the 64-bit vDSO.) The argument vdso32=[012] can be used on both 32-bit and 64-bit kernels to set this paramter at boot time. The vdso=[012] argument still does this same thing on the 32-bit kernel. Signed-off-by:Roland McGrath <roland@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de> Signed-off-by:
Ingo Molnar <mingo@elte.hu> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
Showing
- Documentation/kernel-parameters.txt 5 additions, 0 deletionsDocumentation/kernel-parameters.txt
- arch/x86/Kconfig 2 additions, 2 deletionsarch/x86/Kconfig
- arch/x86/ia32/Makefile 1 addition, 1 deletionarch/x86/ia32/Makefile
- arch/x86/ia32/ia32_binfmt.c 4 additions, 5 deletionsarch/x86/ia32/ia32_binfmt.c
- arch/x86/ia32/ia32_signal.c 14 additions, 8 deletionsarch/x86/ia32/ia32_signal.c
- arch/x86/vdso/Makefile 1 addition, 1 deletionarch/x86/vdso/Makefile
- arch/x86/vdso/vdso32-setup.c 93 additions, 26 deletionsarch/x86/vdso/vdso32-setup.c
- arch/x86/vdso/vdso32.S 10 additions, 6 deletionsarch/x86/vdso/vdso32.S
- arch/x86/xen/setup.c 2 additions, 2 deletionsarch/x86/xen/setup.c
- include/asm-x86/elf.h 14 additions, 9 deletionsinclude/asm-x86/elf.h
Please register or sign in to comment