Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1091487rwb; Thu, 6 Oct 2022 08:20:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4nbAk6y/xEwn3QceRuZMr6X9BIBIIevNBGHDzB27nnKXEco5YeTl5H+D3PJBJVeQsRpTPC X-Received: by 2002:a17:907:843:b0:73a:5b0e:8352 with SMTP id ww3-20020a170907084300b0073a5b0e8352mr320979ejb.438.1665069641218; Thu, 06 Oct 2022 08:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665069641; cv=none; d=google.com; s=arc-20160816; b=MlsqfiFDGhAhvrhOUy1tSx+Ezv2/PI+LBkuW9tnZF4fEdj5mw9aFm7KZI3HPqKCUht yq4MvKASwVBIBnOhcFzZ/yNH4dWFuOupx4u14FoCppSRKb8iu8HIZqRFgb7iBwCeZre+ w+ZgdGUMaMxQ+xbD9cxXVJ8ekWvRIs4Jmjga7rHchwX0vIB1dkUTbVequ00/SKUYqGFm Jxbrceg5vQoRPc/hdHgDLlk3rjSoLyIFzgcABS3YoZCvknz5KBro/ITKwAUa2x9CKAae cXQwq3Py7CX6Qut6oz0zPyPM/6NeXr3XEMLJTGXTvQ/EvN2z5GXJ1ss0XAZLfAOkLBM2 xuyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Ct+ugeiGe5ZUJT05mSd4JWZvy7uxzMWXbOYbAxuOk9o=; b=qrdyDKnuUzxs8r2AT1UbjxLnDV8Qd++rZ1ha6CArtMrzU+MZFkngY8nvh2qOwfXBdy hArmggYfa3juaITFRdmjfCyBD70/ZrhE2NvI/N5IdtYq3Ij0CQCbkd2jXTnjkbmURJTT 7cr1jD/5DEISGZQguoeHVMZX8yjgh9NLOYNy94PvKW44OM2XPcHPz7kixuO4Wlv03s1a FclVqb6+ehSBDbDXw5xeTHSB2zebonHYXTImZ6feutf0tNwwiLcvObd1UQjitJxqR7Ya cca6Wahv6v1t+oCqp8ewcH0AEXE+u5HxkodI14WMPFcfk0lpCIgURNkrcIrOTTyWi0I7 QHag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=np18cOJR; 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 fj2-20020a1709069c8200b0077771b6d988si17003584ejc.558.2022.10.06.08.20.12; Thu, 06 Oct 2022 08:20:41 -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; dkim=fail header.i=@igalia.com header.s=20170329 header.b=np18cOJR; 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 S231384AbiJFPIM (ORCPT + 99 others); Thu, 6 Oct 2022 11:08:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbiJFPIK (ORCPT ); Thu, 6 Oct 2022 11:08:10 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8290B40F4 for ; Thu, 6 Oct 2022 08:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ct+ugeiGe5ZUJT05mSd4JWZvy7uxzMWXbOYbAxuOk9o=; b=np18cOJRqTPhA6MsKxQmImGmPz s6sI/bAv15k0BdCYeiadrSIczAZda+omLFa/85B/W7ItPJvHSFemZQ8S7k0MaTG26UdtTV4PVBNsy 5YCRfg03eocMHbNel+j1Ki5JqHuRhfpMTUCaqsW/0pKPSlM3ievu5LXdSUa8B21ITfmyCa1a1kzxO ksWkzzpSqPWn1ZMtcdKvSa0W6Yb2HAv+9HuPkvEPUqa+HnnT1/iBGK2Lt7MIcqpRYBsK9pc6A6STi 2c02DmQCfQQYQkzLUYIOafPHpSK/QrCwS8+o8wh6sAh9PvetYE9vZYfB2lXKZqsQUBnsmjpOsUGO8 plzwgKVg==; Received: from 201-43-120-40.dsl.telesp.net.br ([201.43.120.40] helo=[192.168.1.60]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1ogSTJ-00BcBW-04; Thu, 06 Oct 2022 17:07:37 +0200 Message-ID: <7403891b-c84c-d0e5-e6e6-caf1bd4fcf51@igalia.com> Date: Thu, 6 Oct 2022 12:07:16 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH] x86/split_lock: Restore warn mode (and add a new one) to avoid userspace regression Content-Language: en-US To: Pavel Machek , "Luck, Tony" , "x86@kernel.org" , "dave.hansen@linux.intel.com" Cc: "tglx@linutronix.de" , "linux-kernel@vger.kernel.org" , "mingo@redhat.com" , "bp@alien8.de" , "hpa@zytor.com" , "Lutomirski, Andy" , "kernel-dev@igalia.com" , "kernel@gpiccoli.net" , "Yu, Fenghua" , Joshua Ashton , Paul Gofman , Pierre-Loup Griffais , Melissa Wen References: <20220928142109.150263-1-gpiccoli@igalia.com> <20221006090418.GA14960@amd> From: "Guilherme G. Piccoli" In-Reply-To: <20221006090418.GA14960@amd> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 On 06/10/2022 06:04, Pavel Machek wrote: > [...] >> Why not just use the workaround suggested in that bug report: >> >> "so manual switching from default setting to split_lock_detect=off helps as workaround here" >> >> If you add this extra mode, I'm going to argue that the kernel default >> should be "seq" rather than "warn". So these game players will need >> to add a split_lock_detect=off (or warn) option. > > Kernel should not cause userland regressions, and this is one. That > should make it pretty clear what the solution is. > > And no, I don't like CONFIG option, either. Thanks for your opinion Pavel! Good thing is that seems everybody at least understands the problem exists and is affecting userspace. Now, about the action we should take: what if we go with a revert in this "misery factor" based on Dave's reasoning? I have a patch ready and tested, let me know otherwise or I'll submit it as a V2 by the end of this week. Cheers, Guilherme