From patchwork Mon May 16 18:22:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12851339 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B01CC433EF for ; Mon, 16 May 2022 18:23:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8O38SNT9wMmmz+qiJhbCw9Kpc35D9qCuMJ9H8fODCuw=; b=o4HzJ/3S6YxP+I lHYM0bLqgL1d0Syc2yrCKURFP2JsWjcsi/ODt9Y8R+/z0bGDmzositAD4I3gyFwJeR56k2U6+CPnM MlXty+9/9Gi/RzV7bob84mgNvG8mirCf/kPtaH9bY9lbpRXLfBp0FUVB/l2e64pAQygcGqs9n6PBG Kovyn/xKWayLaXgDBhdFcncyL07ZQMtaus7I6k9sN1Wl03kuGUvA6BzfV9XhgtVv32i7Q16xn68RM vbLWiWDHqGmWllLwC5g04SoQrIhnr1BVmNn1ecA3oEteoq183DlI1bdX2ft/NrluFVjLLDhpBIpnc 2KGpzLHIRQfDWdTvgflg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqfMN-009WFB-Nx; Mon, 16 May 2022 18:22:23 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqfMK-009WED-8q for linux-arm-kernel@lists.infradead.org; Mon, 16 May 2022 18:22:21 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 07A96613EF; Mon, 16 May 2022 18:22:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D543FC34100; Mon, 16 May 2022 18:22:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652725338; bh=h1UKXVDVZHoKYKAEdvbohaOWVujO4anm+OwgwbTJU/M=; h=From:To:Cc:Subject:Date:From; b=S7lWXq/kBitZMD8C5SQcwRC2wJLtv27tdKKE27iyuFUFsjAcDS4hstFk/5+ERwsbQ /urf1DK26BQbH0OQ4apBaIvYafA2kXf17JDhxJb2U8RUYVS2rfVO0/x2nxvFYMUsni EDz0/mayqWNQco55HSHm2RUYaURVBdxrLoUZ61MiE8PtqgGnvkldDbEeC7UDXwOHub i42LAGcxuLZ66MY8UcGCiSKpQMauuPoxku4lO2gqW4lRNe44WsTpJPa5YW7HW2XFay ZDtcrS18q6xXhtxmXGITuXpNg0PyavB0EHZ4CObsJipgCkc6kPoozYbvkKWPLB2Xlk o1/87bfIMBeIA== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v2] kselftest/arm64: Explicitly build no BTI tests with BTI disabled Date: Mon, 16 May 2022 19:22:13 +0100 Message-Id: <20220516182213.727589-1-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1040; h=from:subject; bh=h1UKXVDVZHoKYKAEdvbohaOWVujO4anm+OwgwbTJU/M=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBigpXoGhDxPoLVEnKcG99ISoCPOyr7aY5fUoDGyoMe z/4z5n+JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYoKV6AAKCRAk1otyXVSH0PRYCA CDXprQEokLbp4i1AlReFTvA60xF9/Ci1pnWGdMwFwXr1BTRiGPyhbvwTrpT3d4OrR5with0F3nGC0Q Inj8ClgijyXg1Vhr5ZB/u3idUP7xRoPEeMiTg/mEDZH1fNwY7PE1XKBbF/HCLSV+irZQNa0yCYTnIE yk8Ie4WBTrjUf6Bhewgj5G78l12d43UVPQxEmYjF5YUuNjfqmg/GALZA/KOby2eSdR6B+0kOc9Vvkj OHJMkqWBtgldIo7FRnWYqoKmG59BoB/HPzB0hBbiU+yHyCZtvOqNmj6Vor1WzF0pCmdXklG8X7fo8r O0QWGdAjfVKJKw3hNoOmfjCUIbl1rx X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220516_112220_383736_067C2D23 X-CRM114-Status: GOOD ( 11.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In case a distribution enables branch protection by default do as we do for the main kernel and explicitly disable branch protection when building the test case for having BTI disabled to ensure it doesn't get turned on by the toolchain defaults. Signed-off-by: Mark Brown --- v2: - Rebase on -next tools/testing/selftests/arm64/bti/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/arm64/bti/Makefile b/tools/testing/selftests/arm64/bti/Makefile index 73e013c082a6..25c66e622b86 100644 --- a/tools/testing/selftests/arm64/bti/Makefile +++ b/tools/testing/selftests/arm64/bti/Makefile @@ -10,7 +10,7 @@ PROGS := $(patsubst %,gen/%,$(TEST_GEN_PROGS)) # cases for statically linked and dynamically lined binaries are # slightly different. -CFLAGS_NOBTI = -DBTI=0 +CFLAGS_NOBTI = -mbranch-protection=none -DBTI=0 CFLAGS_BTI = -mbranch-protection=standard -DBTI=1 CFLAGS_COMMON = -ffreestanding -Wall -Wextra $(CFLAGS)