selftests/powerpc: spectre_v2 test must be built 64-bit
Michael Ellerman
reviewerPATCH 1/1 selftests/powerpc: spectre_v2 test must be built 64-bit
The spectre_v2 test must be built 64-bit, it includes hand-written asm that is 64-bit only, and segfaults if built 32-bit.
Fixes c790c3d2b0ec ("selftests/powerpc: Add a test of spectre_v2 mitigations")
Signed-off-by Michael Ellerman <[email protected]>
--- tools/testing/selftests/powerpc/security/Makefile | 2 ++ 1 file changed, 2 insertions(+)
tools/testing/selftests/powerpc/security/Makefile +2 -0
@@ -8,4 +8,6 @@ CFLAGS += -I../../../../../usr/include include ../../lib.mk $(TEST_GEN_PROGS): ../harness.c ../utils.c + +$(OUTPUT)/spectre_v2: CFLAGS += -m64 $(OUTPUT)/spectre_v2: ../pmu/event.c branch_loops.S
Signature · 1 line
2.21.0
Michael Ellerman
AppliedQuoted 5 lines · Michael Ellerman
The
spectre_v2test must be built 64-bit, it includes hand-written asm that is 64-bit only, and segfaults if built 32-bit.Fixes c790c3d2b0ec ("selftests/powerpc: Add a test of spectre_v2 mitigations")Signed-off-by Michael Ellerman <[email protected]>
Applied to powerpc next.
https://git.kernel.org/powerpc/c/bf9c95e23324cbaf2e58fc3f0cbdc73137f2d1ca
cheers