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 CCA82C433FE for ; Mon, 29 Nov 2021 17:50:10 +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-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc: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=11BxkAVEu6Y4ChDpWqIbQV0Ts23zLeztI6qImk0FTsg=; b=NrfTHFhnw75QwfJnMwu2R6gqfE 3m4/ntu0bRTBjOISK85r6jTU1w/C84ZBALR5cJf7Gm8Fco12kKHDmh7A9zjrd7nXGfnBtBrmqsHKS EgFfmf59dtFLtCPCZak31dyeE0j0PzULmR/hNGkaGkOKYKBcBH/1fy+hi67uMB94udh181ipcqGvq /wKOW7uC6vv70LKc4jPnsiwx7kJnXoAW65Pzi+IBmgjrJ1WMJJHSit0mGpkQ3JKoLSq52x35O7wK6 qfTNF/FaVgL7NqQr6R9CKkmc4yNYXfq9ZSqfRgTUAgpfV53s5L3H+Zg8hvp4qejFPEZBjGlQjt7v+ 2rpeZIWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrklu-001dLy-82; Mon, 29 Nov 2021 17:48:58 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrklq-001dLR-BN for linux-arm-kernel@lists.infradead.org; Mon, 29 Nov 2021 17:48:55 +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 sin.source.kernel.org (Postfix) with ESMTPS id 9B6F8CE13BF; Mon, 29 Nov 2021 17:48:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE867C53FAD; Mon, 29 Nov 2021 17:48:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638208130; bh=oYYPjLpCk/GRAwYXwSWgi6Pp8Dj9XuIhpTsds4MMkVo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cfvwrk/1g6p33y/Au7mNfqYEiPqn9Ops2DcJFOzxlENiHqUBmOGSzs8bXszTBYZgu IVTPbiOSvhauZn0+ENIs3ixJdai33mAR2T0jJsU5QZ7K96q8iFlTjk36lsmCMB8t+X MZ2W5EqX4R+6lX1n7c97GdzZxoWtO2lgEjLk0aqdyUpi4NEVA2jBgF1deyPHhmMc+G 5FzuWy6UOpX3ZirzfwOX1RsMSw+PsA746fEdWufUNE6LNuJeZmW3wGl4SSdoKb2srX QKHlx7xwTneJwEwuRI3W3fZy5GAB4mOiUcMXVJPP00+/A0nOOvJ529vnBbHruLDDhr kneFg2gp1R0Vg== Date: Mon, 29 Nov 2021 17:48:46 +0000 From: Mark Brown To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, will@kernel.org Subject: Re: [PATCH] arm64: ftrace: add missing BTIs Message-ID: References: <20211129135709.2274019-1-mark.rutland@arm.com> MIME-Version: 1.0 In-Reply-To: X-Cookie: Thank god!! ... It's HENNY YOUNGMAN!! X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211129_094854_624575_C86AE0B7 X-CRM114-Status: GOOD ( 20.73 ) 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: , Content-Type: multipart/mixed; boundary="===============3350022624186957035==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============3350022624186957035== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="QJZzuLWhjxjLZFkx" Content-Disposition: inline --QJZzuLWhjxjLZFkx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Nov 29, 2021 at 05:37:51PM +0000, Mark Rutland wrote: > On Mon, Nov 29, 2021 at 04:50:39PM +0000, Mark Brown wrote: > > > +#ifdef BTI_C > > > + BTI_C > > > +#endif > > The ifdefs here feel ugly enough that it might be worth doing that right > > now TBH. I'm trying to think of any cases where we might also need a > > BTI J but nothing springs to mind right now. > Agreed on the ugliness -- I'd like to revisit that with some related > cleanup/improvement to our existing SYM_*() macros. I just didn't want to do > that as a prerequisite for the fix as it'd make backports painful, e.g. by > creating a dependency on commit: > 1cbdf60bd1b74e39 ("kasan: arm64: support specialized outlined tag mismatch checks") > ... which uses the ifdef pattern above. Ugh, that's not great. But yes, backporting was why I did the Reviwed-by. If we knew the names we were going for it'd be easy enough to add a new SYM_CODE_ varaint without introducing dependencies but that might be getting ahead of things. > I'm also not sure what naming/structure we'd like, or whether it's simpler to > unconditionally define BTI_C. The unconditional definition seems like it might be neater as a minimally intrusive thing for backporting, we can always refactor later. --QJZzuLWhjxjLZFkx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmGlEn0ACgkQJNaLcl1U h9BVNgf5ATU01oX7vADUxBLCPR4jZiZMThYKSKLjkEQSvgQFyo4hba6BACGkvlzb 5Ep/ojZgl13DYgfcgMZUQTrJ48zlynA/gBcF6Hz7EWbl1XQQcxE9njqghNym+bWX Fku4phHPDo3wAXt169V2zCKK0B6Hgzr7yK51w5XwIde+dfuKNZQrG2LN8HRNdA1v zA90S4yRnFs5jtIza3wV7lPiCj+T86VeWjzjgrlXOU9RsW1qt9hIF+17cwMu3IBv YZQeV6gqsZJ/Hr3shLY1CUYHenyQCQPPfFO2W12Sc8BxCxDD9d3a/Vt8Y3WG5kWS AU/G0pgZgE1r8DKiQ9Oj7GCC63fxkQ== =PGXA -----END PGP SIGNATURE----- --QJZzuLWhjxjLZFkx-- --===============3350022624186957035== 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 --===============3350022624186957035==--