tip:x86/entry: fix vdso build restructuring fallout
Status from this message: The following commit has been merged into the x86/entry branch of tip:
Get series with b4
b4 am [email protected]Versions newest first
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | x86/entry/vdso: update the object paths for "make vdso_install"arch/ | +3 | 0 replies | |
| 2/3 | x86/entry/vdso: fix filtering of vdso compiler flagsarch/ | +3 | 1 reply | |
| 3/3 | x86/entry/vdso, selftest: update location of vgetrandom-chacha.Stools/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/3] tip:x86/entry: fix vdso build restructuring fallout
After integration in linux-next, the movement of files from the vdso restructuring broke "make vdso_install" and one of the kernel self tests. [Thorsten Leemhuis, kernel test robot]
It also contained an incorrect filtering pattern which although non-manifest at this point, is a forward compatibility bug [Chris Mason]
x86/entry/vdso, selftest: update location of vgetrandom-chacha.S x86/entry/vdso: x86/entry/vdso: fix filtering of compiler flags x86/entry/vdso: update the object paths for "make vdso_install"
---
arch/x86/Makefile | 6 +++--- arch/x86/entry/vdso/common/Makefile.include | 6 +++--- tools/testing/selftests/vDSO/vgetrandom-chacha.S | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-)
arch/x86/Makefile +3 -3
@@ -318,9 +318,9 @@ PHONY += install install: $(call cmd,install) -vdso-install-$(CONFIG_X86_64) += arch/x86/entry/vdso/vdso64.so.dbg -vdso-install-$(CONFIG_X86_X32_ABI) += arch/x86/entry/vdso/vdsox32.so.dbg -vdso-install-$(CONFIG_COMPAT_32) += arch/x86/entry/vdso/vdso32.so.dbg +vdso-install-$(CONFIG_X86_64) += arch/x86/entry/vdso/vdso64/vdso64.so.dbg +vdso-install-$(CONFIG_X86_X32_ABI) += arch/x86/entry/vdso/vdso64/vdsox32.so.dbg +vdso-install-$(CONFIG_COMPAT_32) += arch/x86/entry/vdso/vdso32/vdso32.so.dbg archprepare: checkbin checkbin:
arch/x86/entry/vdso/common/Makefile.include +3 -3
@@ -23,9 +23,9 @@ $(obj)/%.lds : KBUILD_CPPFLAGS += $(CPPFLAGS_VDSO_LDS) # flags-remove-y += \ -D__KERNEL__ -mcmodel=kernel -mregparm=3 \ - -fno-pic -fno-PIC -fno-pie fno-PIE \ + -fno-pic -fno-PIC -fno-pie -fno-PIE \ -mfentry -pg \ - $(RANDSTRUCT_CFLAGS) $(GCC_PLUGIN_CFLAGS) $(KSTACK_ERASE_CFLAGS) \ + $(RANDSTRUCT_CFLAGS) $(GCC_PLUGINS_CFLAGS) $(KSTACK_ERASE_CFLAGS) \ $(RETPOLINE_CFLAGS) $(CC_FLAGS_LTO) $(CC_FLAGS_CFI) \ $(PADDING_CFLAGS)
@@ -45,7 +45,7 @@ flags-y += -fasynchronous-unwind-tables # Reset cf protections enabled by compiler default flags-y += $(call cc-option, -fcf-protection=none) -flags-$(X86_USER_SHADOW_STACK) += $(call cc-option, -fcf-protection=return) +flags-$(CONFIG_X86_USER_SHADOW_STACK) += $(call cc-option, -fcf-protection=return) # When user space IBT is supported, enable this. # flags-$(CONFIG_USER_IBT) += $(call cc-option, -fcf-protection=branch)
tools/testing/selftests/vDSO/vgetrandom-chacha.S +1 -1
@@ -16,5 +16,5 @@ #elif defined(__s390x__) #include "../../../../arch/s390/kernel/vdso64/vgetrandom-chacha.S" #elif defined(__x86_64__) -#include "../../../../arch/x86/entry/vdso/vgetrandom-chacha.S" +#include "../../../../arch/x86/entry/vdso/vdso64/vgetrandom-chacha.S" #endif