Message ID | 20191120023924.13130-1-mpe@ellerman.id.au (mailing list archive) |
---|---|
State | Accepted |
Commit | bf9c95e23324cbaf2e58fc3f0cbdc73137f2d1ca |
Headers | show |
Series | selftests/powerpc: spectre_v2 test must be built 64-bit | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch powerpc/merge (784eee1cc44801366d4f197e0ade7739ee8e1e83) |
snowpatch_ozlabs/build-ppc64le | success | Build succeeded |
snowpatch_ozlabs/build-ppc64be | success | Build succeeded |
snowpatch_ozlabs/build-ppc64e | success | Build succeeded |
snowpatch_ozlabs/build-pmac32 | success | Build succeeded |
snowpatch_ozlabs/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 6 lines checked |
snowpatch_ozlabs/needsstable | warning | Please consider tagging this patch for stable! |
On Wed, 2019-11-20 at 02:39:24 UTC, Michael Ellerman wrote: > 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 <mpe@ellerman.id.au> Applied to powerpc next. https://git.kernel.org/powerpc/c/bf9c95e23324cbaf2e58fc3f0cbdc73137f2d1ca cheers
diff --git a/tools/testing/selftests/powerpc/security/Makefile b/tools/testing/selftests/powerpc/security/Makefile index d68e6031695c..eadbbff50be6 100644 --- a/tools/testing/selftests/powerpc/security/Makefile +++ b/tools/testing/selftests/powerpc/security/Makefile @@ -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
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 <mpe@ellerman.id.au> --- tools/testing/selftests/powerpc/security/Makefile | 2 ++ 1 file changed, 2 insertions(+)