Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BC20C432C0 for ; Wed, 20 Nov 2019 03:06:52 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BACCC2240E for ; Wed, 20 Nov 2019 03:06:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b="Yn8LrFN5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BACCC2240E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 47HnfK4zDVzDqbv for ; Wed, 20 Nov 2019 14:06:49 +1100 (AEDT) Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 47Hn2m4FtWzDqWm for ; Wed, 20 Nov 2019 13:39:28 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ellerman.id.au header.i=@ellerman.id.au header.b="Yn8LrFN5"; dkim-atps=neutral Received: by ozlabs.org (Postfix) id 47Hn2l5fkfz9sPK; Wed, 20 Nov 2019 13:39:27 +1100 (AEDT) Received: by ozlabs.org (Postfix, from userid 1034) id 47Hn2l4QV2z9sPf; Wed, 20 Nov 2019 13:39:27 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1574217567; bh=R13lQDuBUR2OEy8NEOLEIjk5ZrkEfScjE68tSvyNq7w=; h=From:To:Subject:Date:From; b=Yn8LrFN5mfwNrsvwswsbI+h5fywbB0a5MTw80RgPbRtcLwF65BOsz190NVx2KS4o8 ugSWE65/fGrWMx+WLzCQcw/QfOvgl7M5q7r2UkiwqyyIeC2LCr7AtghyJ/lc8g/vRt ra6VjXNCzCaoAqebNSlBsD0ovBZkaxVSzg9eY8qzcl9eGSMs4TLfRtRaHvrvEs8Yqc VdIXH1kGMOao/c12xj2hescJApc6kbI+K/dpoxcN+RQhwGhKlz9vA3Aa6E8DdeLaW7 xxX5AHA2+OAmwiqebvJPtgbNaizes+epI56cTNf2o3jRCBpGzx4wCuGIMMXdaidrc7 OHCn0JsgyEv6w== From: Michael Ellerman To: linuxppc-dev@ozlabs.org Subject: [PATCH] selftests/powerpc: spectre_v2 test must be built 64-bit Date: Wed, 20 Nov 2019 13:39:24 +1100 Message-Id: <20191120023924.13130-1-mpe@ellerman.id.au> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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 --- tools/testing/selftests/powerpc/security/Makefile | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.21.0