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=-2.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 C36F3C3F2D2 for ; Mon, 2 Mar 2020 13:16:54 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9417B2064A for ; Mon, 2 Mar 2020 13:16:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Pedn1G3y" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9417B2064A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/HeJSfYOHS7S98cGrNDd2zSGiEbyU8ryeV2jqHp0eh0=; b=Pedn1G3yGMj54hdx3EHRR2FCq P/wlEfDdIDbt3oXW3n2QyWWz27Keq2kqfO4do8NGGO6kJxmN2Lx+E8QUx95hDtsfeD7f26+PhnLLA ZB/G6apdWmVd3oXH7t3d/qdvNOrakj6ZWltE3S7nhEZFL1Gbk3vLcj1UH29FL+PbDLVpP6YKL5GIs 1ye1f/J/Y6Kk3t7y6ioo6cGDlU3FIj75+rF0rjYAazejxVPiLnS9STPrBmOcSLIAtfJKJhb+v9NU/ jIWyJAKN4nYAZ3nKKHr9eO09uR3D1v/gDtny5NRcS35bWsZtNcphjPwBCBixSd6YRiJzew8r58pGR QnSIV8smw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j8kwI-0002WD-4a; Mon, 02 Mar 2020 13:16:54 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j8kwF-0002Vi-Dl for linux-arm-kernel@lists.infradead.org; Mon, 02 Mar 2020 13:16:52 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AA9F62F; Mon, 2 Mar 2020 05:16:50 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2E1EC3F534; Mon, 2 Mar 2020 05:16:50 -0800 (PST) Date: Mon, 2 Mar 2020 13:16:48 +0000 From: Mark Brown To: Catalin Marinas Subject: Re: [PATCH v5 16/17] arm64: compile the kernel with ptrauth return address signing Message-ID: <20200302131648.GE4166@sirena.org.uk> References: <1581931668-11559-1-git-send-email-amit.kachhap@arm.com> <1581931668-11559-17-git-send-email-amit.kachhap@arm.com> <20200228182337.GK4019108@arrakis.emea.arm.com> MIME-Version: 1.0 In-Reply-To: <20200228182337.GK4019108@arrakis.emea.arm.com> X-Cookie: Whistler's mother is off her rocker. User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200302_051651_508621_845B3FBD X-CRM114-Status: GOOD ( 13.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Kees Cook , Suzuki K Poulose , Kristina Martsenko , Dave Martin , Masahiro Yamada , James Morse , Ramana Radhakrishnan , Amit Daniel Kachhap , Vincenzo Frascino , Will Deacon , Ard Biesheuvel , linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============6442202103567026463==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============6442202103567026463== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="o0ZfoUVt4BxPQnbU" Content-Disposition: inline --o0ZfoUVt4BxPQnbU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Feb 28, 2020 at 06:23:37PM +0000, Catalin Marinas wrote: > On Mon, Feb 17, 2020 at 02:57:47PM +0530, Amit Daniel Kachhap wrote: > > +# only to the assembler when clang is selected as a compiler. For the GNU toolchain > > +# this option is not used. > > +branch-prot-flags-$(CONFIG_AS_HAS_PAC) += -Wa,-march=armv8.3-a > > +KBUILD_CFLAGS += $(branch-prot-flags-y) > > +endif > Does this work with the clang integrated assembler? AFAIK it ignores the > -Wa, though it may be fine with the instructions generated by the > compiler. (while we don't officially support it, we merged patches to > facilitate it). If the assembler integrated into the compiler doesn't cope with instructions emitted by the compiler that seems like something we should push to get fixed on the compiler side. --o0ZfoUVt4BxPQnbU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl5dBz8ACgkQJNaLcl1U h9Dxdwf+LdJqTdUT87xU39KaQgDpRPcD0PsjqA/P+Xbw5Kx9axMbvWJrF7aOD8cX lDYc/KIJijBUbF5g71KBx4l0drmbh8kegKbzIYGNHyefhWI2CD3I4ZwHdNDmVL6t F6jWCRgV614HDZJ6OIpXkpz/LLHh68MpWeFd0xktGx0Ol+oxIK0v8A4C4tbzx9Bg yVRP/AahKHhG4cof0WRQ9DX98Eg3oippsHmfBxSsrfcnXKLyREAbFynx5OVX4NNm navAkjrfbBWzZ4AgpYc9XHCOBT1NDIMY2sTM2bnmQsvGMmp3SF668L3S+RFGFsOu /kPaG2QdrF6SWW0aF2lrd56MUWaeBw== =TdO+ -----END PGP SIGNATURE----- --o0ZfoUVt4BxPQnbU-- --===============6442202103567026463== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============6442202103567026463==--