Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1742142rwb; Thu, 15 Dec 2022 13:55:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf7PAJW31Pe6LMv1YRqezqNaE0DjrEbFGjDcrZQDpGwwD6WMi6ovQ/Q5U1u7Iq6T28tBzWB8 X-Received: by 2002:a05:6a20:93a3:b0:ad:a277:eeee with SMTP id x35-20020a056a2093a300b000ada277eeeemr21316061pzh.45.1671141341836; Thu, 15 Dec 2022 13:55:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671141341; cv=none; d=google.com; s=arc-20160816; b=XBB1J87QqLvl455P1yyGcBZ/9XxhMuBjCZztkBGVevLhJBZGs5JTMxt8q/whTplopT cZiUtrkfh6K3GT3yf548j/zdlE62spd4v+v4Tw3gYyYJIrYhKmNPTbiBoKRiWrb5DAt+ 33psXvNDAbLa4rcdpqHXNKzapw2AuCiWohpIE2r1HDfKqWw4hCAfehT4SylJ7QDfothY XykziIB2xJT2FGptchfBec8ExnL0fsuD0BPuBSGGw7mkIF/XXIxFVwYzfqM2xxbcf98u N3eJz8Rah8A8OQtJ0wjU4xd2ykPPr2ccgvRGoxJ62nH5ANStHfUbdDBLXtV4EuFD3QKu RLFw== 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=k7NdwllA9AzNjJfYwTYIsksUdKCsWQGT8YWJUL5bTN0=; b=bwSwKleX4tIjeW5M+8TueiacbYdb+XlN06DTxIpqJP4ho6oCZaDRP+pxl6V9jcFilT MLKl/MXFLfXqsdaaTUr765vHIMg0raKCT/buBBEfup9RzYcbWwV/BH5Z/L2uqQMVxjBi xqxFVLPWvvn6gQ5ZY+Kaim5keRCUpBIFlfwkRi16g+/irJMAJj6Ci6He6O/qBYAN355t bolnqVWVcH1dZFYJs7VoIahrPLyRV0LRGE89qTCCkqATaRsGHkU+2DPHYnsNQEYO+50C fxJD2C8ORKr+mYG/fgRS7JxOzTFJqrmnhq9j4frTKfROru7CAg4IwgYLfeWFzDEy8Cdk +Rag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bATzdPHv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l185-20020a6391c2000000b0047923e93e6fsi496023pge.843.2022.12.15.13.55.32; Thu, 15 Dec 2022 13:55:41 -0800 (PST) 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=pass header.i=@intel.com header.s=Intel header.b=bATzdPHv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229785AbiLOVxK (ORCPT + 69 others); Thu, 15 Dec 2022 16:53:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229718AbiLOVxI (ORCPT ); Thu, 15 Dec 2022 16:53:08 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43145442F0 for ; Thu, 15 Dec 2022 13:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671141188; x=1702677188; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=8pcgn+j9HMqENHDmv+AJY3/OPMa3Dt1D1xbcDVZpPSU=; b=bATzdPHvyuxPGJuxkYkpZXEwUdRpeIWmHtdNu2q1gPNz1ULLUkUDAhlN s0jmVupMJifshRvTfAStlzgyMLSIQERree0/yWSHfu5rVwuAgXy8MX94n uZbpismrgqSDS386dsF0kUSO5bebL0A9DM93aVL2RNl1D+fuIEbOWv0j2 Fgfdz+VJYD3ZCVS3AuOPTJOgfePnExU/BrLQ59G/Q+AvuIQr73SwsnttV rMqJHJ7tEKuYr5+7tLo0KfHXBkZtI0UHbkGtrMM+NDxW4q7B+v5OFwWPe sej/Pne6s9A1ffir4gf3VO/mC5fn0E5saPx2CheagsrQdwzrz34gzFJkp g==; X-IronPort-AV: E=McAfee;i="6500,9779,10562"; a="319981720" X-IronPort-AV: E=Sophos;i="5.96,248,1665471600"; d="scan'208";a="319981720" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2022 13:53:07 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10562"; a="649575075" X-IronPort-AV: E=Sophos;i="5.96,248,1665471600"; d="scan'208";a="649575075" Received: from ajanssen-mobl.amr.corp.intel.com (HELO [10.209.22.168]) ([10.209.22.168]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2022 13:53:07 -0800 Message-ID: <242daeb2-b96b-d0dd-5597-ebf5fb2dfeca@intel.com> Date: Thu, 15 Dec 2022 13:53:07 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [GIT PULL] x86/mm for 6.2 Content-Language: en-US To: Linus Torvalds , kirill.shutemov@linux.intel.com Cc: Dave Hansen , linux-kernel@vger.kernel.org, x86@kernel.org, Andy Lutomirski , Thomas Gleixner , Borislav Petkov References: <20221213174234.688534-1-dave.hansen@linux.intel.com> <20221215123007.cagd7qiidehqd77k@box.shutemov.name> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE 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 12/15/22 09:26, Linus Torvalds wrote: > But if you feel like all threads have to share the same LAM state, it > does seem a lot simpler if you just say "you need to set that state > before you start any threads". No? That would be a lot simpler. I have one bit of hesitation there, though. Back in the MPX days, we had some users pop up and tell us that MPX wasn't working for them on certain threads. Those threads ended up having been clone()'d even _before_ MPX got enabled which was via some pre-main() startup code that the compiler inserted. Since these early threads' FPU state was copied before MPX setup was done, they never got MPX-enabled. Right or wrong, since then I've basically assumed that someone might be creating threads behind my back. Maybe we call those "early thread" folks too crazy to get LAM. Maybe I need to forget it ever happened, but they were actual users that got bitten and cared enough to report it. Or, heck, maybe I'm just delusional because I can't find any trace of this conversation in the list archives. LAM _is_ slightly different than what MPX hit, though, since instead of totally silent breakage the app can whine about the LAM prctl() having failed. Anyway, message heard loud and clear about the untagged_addr() races and the interfaces. We'll find some way to fix those up for the next merge window.