Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1291570pxp; Thu, 17 Mar 2022 06:46:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYVaCxMWTg6BPR+M8zOP1tlZSwM6qW6UWPWPy43SRARKrtcrRfQCMkAep4RA6rsqtFvi/0 X-Received: by 2002:a17:90a:1197:b0:1bf:65ff:f542 with SMTP id e23-20020a17090a119700b001bf65fff542mr15739866pja.5.1647524766193; Thu, 17 Mar 2022 06:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647524766; cv=none; d=google.com; s=arc-20160816; b=q0L+ZfXS3cn2g6aHzM8TSSGqyPjGymGTJ8C1m+FQ0sRUyomGJI7+m01tP79jPonv8H E1kzvtoll5btBcdwWaqIdlJarIxHF5TaLDvbG3yBd6G7JG19ESqEth7WkmUJsCkrHU9D 5FpibCLgFkGd0F6nqNqN73bXEimf6MHLkzuaWkFZ7yThAKZJ/X0GOF5pamq1h4EVgwEv cFqwrP4aVDdPr8hJWHadVXz8BPS9ZbWoq9HD/Ilb7caGN20c89hw3fAtnA6uMg5thZfH Ktz1gq0YLUmGqCipmY05EXMvSt8qqU8UkQZAEwaLwFlAmVZCULHduAuQsJbO5tX3UF6q sm6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=o0MsMk2iEQ8cnWRlSY2WtMWCbfX4xyrXbTwZ+YJF7Ag=; b=s8tq/rBNxNUabfOOl96sHP3Gl/8afK9zXliVnmECgiQWCtoQM18JfbXKnzUnblawWR jCDdj5PyMuJkiaA3wuPlLy8yz7z1WZoSBrZu+eQGUAbJbWROnZxWOOHYTizfsusS5QwA vCZTyaETbn+73lQX2xcc/fx4yBgCLnBTz+iSDuFGa9r4YVSthIWtndrujayJVlGev6Ej WJ4yZ/zmCQVdcCHf0bXWf7858ZNOZ8rwcitJCVYkxt4HH/Zxhzfcd0kTpClx57Jawxlw V0nvx5xC+3rET3kmkbfIK6qbGBFLGNe/qXo5P8zOVQJ8BKyXoG0gpJUaALfs9ulMYlU6 xAyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z6-20020a056a00240600b004f1151f1919si5327425pfh.57.2022.03.17.06.45.52; Thu, 17 Mar 2022 06:46:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231295AbiCQLO3 (ORCPT + 99 others); Thu, 17 Mar 2022 07:14:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230417AbiCQLO0 (ORCPT ); Thu, 17 Mar 2022 07:14:26 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 565F7A6E2A for ; Thu, 17 Mar 2022 04:13:08 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id C41DF1C0B7F; Thu, 17 Mar 2022 12:13:06 +0100 (CET) Date: Thu, 17 Mar 2022 12:13:05 +0100 From: Pavel Machek To: Tony Luck Cc: Thomas Gleixner , Fenghua Yu , x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH v2 1/2] x86/split_lock: Make life miserable for split lockers Message-ID: <20220317111305.GB2237@amd> References: <20220217012721.9694-1-tony.luck@intel.com> <20220310204854.31752-1-tony.luck@intel.com> <20220310204854.31752-2-tony.luck@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6sX45UoQRIJXqkqR" Content-Disposition: inline In-Reply-To: <20220310204854.31752-2-tony.luck@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NEUTRAL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6sX45UoQRIJXqkqR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > In https://lore.kernel.org/all/87y22uujkm.ffs@tglx/ Thomas > said: >=20 > Its's simply wishful thinking that stuff gets fixed because of a > WARN_ONCE(). This has never worked. The only thing which works is to > make stuff fail hard or slow it down in a way which makes it annoying > enough to users to complain. >=20 > He was talking about WBINVD. But it made me think about how we > use the split lock detection feature in Linux. >=20 > Existing code has three options for applications: > 1) Don't enable split lock detection (allow arbitrary split locks) > 2) Warn once when a process uses split lock, but let the process > keep running with split lock detection disabled > 3) Kill process that use split locks I'm not sure what split locks are, and if you want applications to stop doing that maybe documentation would help. Anyway, you can't really introduce regressions to userspace to "get stuff fixed" in applications. Pavel --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --6sX45UoQRIJXqkqR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmIzF8EACgkQMOfwapXb+vLXtgCgu8hgn9uzvyozj3rvbJXWngQE huUAn2kdrz3cZJ4I3rLkm+d3qORv5dd+ =nuYL -----END PGP SIGNATURE----- --6sX45UoQRIJXqkqR--