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 44FDBC433F5 for ; Thu, 3 Mar 2022 16:00:40 +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=5nPPUUq7O3QuipqaNzoVPBGPdn46IvjfyonXT9hQ21g=; b=y1HoQZHFmIrLWP/saS/KIy5b3Y 3EWl+Bay+CS8HnYjzNRrhyJWBkXLYEuuewGXuAOc3ve4ausr/JYfBFiczVNEBC1ES6dN56aDCpZE2 Eut03wwr0tuh1tiDs2a8Ag3/lm81n+VM7RET+N4xel66GhPjTHtisrST66RKPp8cxE2muy8LN7zdQ Hl5x57BJx6wPpCnrfw0E9f9TlkmLf9X64idjwGPkzuxdSXjGvzsiZGOKz4A3xVuZbZDLM4rFzqalR eACXcd+vggaeNy7hbFwPDQMt0c1auMM4Saacf7yrl1d3DZ0pw9ICl68VDtNIIHzbn6+VYCCMtFig1 k5AFdH0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPnr2-006zQE-Vp; Thu, 03 Mar 2022 15:59:01 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPndI-006uXr-2p for linux-arm-kernel@lists.infradead.org; Thu, 03 Mar 2022 15:44:49 +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 ams.source.kernel.org (Postfix) with ESMTPS id A80E6B82542; Thu, 3 Mar 2022 15:44:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D8E4C004E1; Thu, 3 Mar 2022 15:44:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646322285; bh=oLuyx1/SgV9fFtyeRWxF4X0buWPZcQqIesQGMih5zNc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XGIkRo1JFseS/ZcDMv+W4xkt4qf5lRBTiqcs6xRm0GFbQ8U2e9r8CcIjWUOgpjDpE KNZ11mCJgSEw6qHN5UOgLQYh+ACH69M8bJOQIstfNqmovRrUBxl0FeifuVsEYz+fwk DTDCoh3yrNQe5xGLNnyq5gkO8y4OvMnshn0RfoAl7Tx2qbHdjHkdhW+yc/xMp+Lzrp OZSyCFK5DE+OZ3L9d46IG5EZfuUalsXYCrC6UsV9K4LjMaQ9pBSpL9gBCuKGBmnbxT VXcz5o2SDbDxlSgvrejMv5HfLwvffU4YMVX4oofOg6kgwz+XQWYYBqbfCpt/cRazde ZF8byCwEToLLA== Date: Thu, 3 Mar 2022 15:44:40 +0000 From: Mark Brown To: Catalin Marinas Cc: Evgenii Stepanov , Will Deacon , Joey Gouly , Branislav Rankov , Linux ARM Subject: Re: [PATCH v1 4/4] arm64/mte: Add userspace interface for enabling asymmetric mode Message-ID: References: <20220127195712.748150-1-broonie@kernel.org> <20220127195712.748150-5-broonie@kernel.org> MIME-Version: 1.0 In-Reply-To: X-Cookie: Password: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220303_074448_317554_DC3F94B5 X-CRM114-Status: GOOD ( 19.58 ) 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="===============2950578567661559008==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============2950578567661559008== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IL1L6slFB41ZvW0d" Content-Disposition: inline --IL1L6slFB41ZvW0d Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 03, 2022 at 10:34:34AM +0000, Catalin Marinas wrote: > On Wed, Mar 02, 2022 at 12:58:48PM -0800, Evgenii Stepanov wrote: > > One option would be to introduce a new, future-proofed prctl with a > > wider mask, and throw in a few extra reserved bits just in case. Then > > have the legacy prctl always clear MTE_CTRL_TCF_ASYMM. > If this problem is real, we can easily tweak the current proposal so the > that ASYMM can only be set *if* both ASYNC and SYNC are set. IOW, it's > not a specific mode an app requests on its own but rather something the > kernel may choose via the preferred mode if the app opted in. We still > introduce a new bit for ASYMM but not change the mask. That would work for the normal usage case but it would mean that the only way to guarantee you actually end up with asymmetric mode would be to force it on as the system default which might be annoying if you're trying to test that userspace code works with all the modes. It's not the end of the world I think but I can see testsuites running into issues. --IL1L6slFB41ZvW0d Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmIg4mgACgkQJNaLcl1U h9A5kgf+LC2I9+thhz5v3jOubIiKNSiFzsJ++5WtXrbBsJvWuP14XYyqEAC0wSoL Abjp/LeuS/eFbVo3a1PegBt/KzH89H/szak8ZWfKHHY7hDTzJQX5hAw/P6ES599K nj8uCIcVtdJGB4YSsTIonQowmyxzDS4IbgcFzMLmhjGNwU09RZMS+2TWMivgW++Q MmUvbsot29GpMMhj15gLk58GgvqMJvmF6c+bk+BTB8DxejVORgP57jjvO7F7oQyF 4VyPJ12mSVSHVEOloyBj2U1Kd8PDefiDkJFQVNGY8WLgTKnUj+2yS+fRbkDSsmpm dB0BL6eqCiQTk73S4XqmzanhftPmkQ== =t0hM -----END PGP SIGNATURE----- --IL1L6slFB41ZvW0d-- --===============2950578567661559008== 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 --===============2950578567661559008==--