x86/vdso: Only enable vDSO retpolines when enabled and supported
authorAndy Lutomirski <luto@kernel.org>
Wed, 3 Oct 2018 04:26:50 +0000 (21:26 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Oct 2018 06:26:14 +0000 (08:26 +0200)
commit4f166564014aba65ad6f15b612f6711fd0f117ee
tree66714053c5f673c64734080d8162f05231bf42fb
parent2647c43c7f3ba4b752bfce261d53b16e2f5bc9e3
x86/vdso: Only enable vDSO retpolines when enabled and supported

When I fixed the vDSO build to use inline retpolines, I messed up
the Makefile logic and made it unconditional.  It should have
depended on CONFIG_RETPOLINE and on the availability of compiler
support.  This broke the build on some older compilers.

Reported-by: nikola.ciprich@linuxbox.cz
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Rickard <matt@softrans.com.au>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: jason.vas.dias@gmail.com
Cc: stable@vger.kernel.org
Fixes: 2e549b2ee0e3 ("x86/vdso: Fix vDSO build if a retpoline is emitted")
Link: http://lkml.kernel.org/r/08a1f29f2c238dd1f493945e702a521f8a5aa3ae.1538540801.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/entry/vdso/Makefile