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 A4570C38145 for ; Fri, 2 Sep 2022 11:34:00 +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=cErYKBuT1gS1IBrssrax63fOj9IS9QG1AKrbzcc0fjw=; b=EnCJuGbQ6RIGWNjAh+uRmFGSkn zjAQOMPi+USMWjQJl6QH+hjcbg3G6OfWnVCPtjAgliEOh+W2/JEEow0QzPsYKybLBecEX1OiYThjO NB/UoYXwysk+Ln4WR1q8SSgGhmKdIY5m3OU2zdrt0S49+IopX4JVuXXi9Aey99pImLha6vA8nDKU4 RFY7wKeVJm2Pf0hSfmwa4P3GbAUevdNoYyLmPOG5l3gq8ZV03JCVNtOmdRoQ24/aW4USGISajkBZv +r4Se5Mbv4kdGqE/cvuHGKnbSG72kMjUf2Hp2bRzEHMFgmukTxv0XHWlaz7ouEOS23nOGne5U5MNW i4hf+Rjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oU4v2-0044P5-Ey; Fri, 02 Sep 2022 11:33:04 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oU4uy-0044N1-VY for linux-arm-kernel@lists.infradead.org; Fri, 02 Sep 2022 11:33:02 +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 408A16206C; Fri, 2 Sep 2022 11:32:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64834C433D7; Fri, 2 Sep 2022 11:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662118378; bh=0QIR6P2u3rAyDvG/xqPnUFBvybSRELaIKXdeDWTDruM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gYyunQugJHnHsXYGa1bkw0PeMNBXGFzS1dGJAGONDoT5fUcJ2jOpGvgxVubSJH/Uo lkZ/2eOkbAxNQDUeiX7mciJ8ThbUpAxuBKVRV2nv0ENQAHqCLnTJVyuKyNlDkWQumW 7fmaq+JMVxk4YysZQkXfDwlc7i0N0zdUTduH0dGVnfep999QezW0mNaP2K2CjE2/Rp u9zoF3WPBu0UeaKZcd7c3+VSeNqFgXunEikboXsL7dZq2vV+Hph3rVyCiAEN0W9/Sm CKhCvfW6u8HkATaLyBfFMPVL2BtephZbl2fx4ECk/x5mxt4NnnQU998O7bgCScahpH 5HQoSmKI68hUg== Date: Fri, 2 Sep 2022 12:32:53 +0100 From: Mark Brown To: D Scott Phillips Cc: linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , patches@amperecomputing.com Subject: Re: [PATCH v3 2/2] arm64: Work around missing `bti c` in modules Message-ID: References: <20220902001551.2349544-1-scott@os.amperecomputing.com> <20220902001551.2349544-3-scott@os.amperecomputing.com> MIME-Version: 1.0 In-Reply-To: <20220902001551.2349544-3-scott@os.amperecomputing.com> X-Cookie: I doubt, therefore I might be. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220902_043301_070457_B8CD2F0A X-CRM114-Status: GOOD ( 14.08 ) 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="===============4150940041466186224==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============4150940041466186224== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XNd/yldBJKqx+Nox" Content-Disposition: inline --XNd/yldBJKqx+Nox Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 01, 2022 at 05:15:51PM -0700, D Scott Phillips wrote: > GCC does not insert a `bti c` instruction at the beginning of a function > when all callers reach the function through a direct branch[1]. In the case > of cross-section calls (like __init to non __init), a thunk may be inserted > which uses an indirect branch. If that happens, the first instruction in > the callee function will result in a Branch Target Exception due to the > missing `bti c`. Reviewed-by: Mark Brown --XNd/yldBJKqx+Nox Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmMR6eUACgkQJNaLcl1U h9B6sgf/ZvBcPkfCV/jldYtbkj4BcQy8m5yvYt5k/hCXwRfrEKWZ+MU0YGwfdEMo JrkH790nkU3K96bsBYn7Jja96g63sl3Z1504+Holm/Ima14YwYX0XMAJg6a6/vRP L3GTkamBi87KGDuAiLA2nsSa9JHvcj4anYx6FFffWHuNLytXTPnrLJ4QNQ+vqgFN j42ept1Xvg+p8PMNNmyJpvnMPnfGVmWMb+ClIeh2NwKU/aJUQSU7LcpBTY6LM/PC +i7NW5xnx0FzClHA7XSNwdN0NhQExiydDeYXuFkegouYzarp1xqkcqiUZR+esgtz 6Bh6s2/h7DICFAGDXtL9w5pmx3gufQ== =7O79 -----END PGP SIGNATURE----- --XNd/yldBJKqx+Nox-- --===============4150940041466186224== 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 --===============4150940041466186224==--