Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3696897imw; Mon, 18 Jul 2022 12:51:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s4h+IqkrCVrAvIahTL2bmi+O8fmB9NTo65MF00HhjUSeb+Sv+lJyOMEwFqCYztGxu9Lc5p X-Received: by 2002:a05:6a00:188e:b0:52a:b545:559f with SMTP id x14-20020a056a00188e00b0052ab545559fmr29758851pfh.18.1658173860623; Mon, 18 Jul 2022 12:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658173860; cv=none; d=google.com; s=arc-20160816; b=go1f9a5nbfEUcFF1b5uhH68sBgj/+ADOQsxCg3I3KKRkgtAj6Yvk3aR3rgKpiXQCaS 5Y7VNGYH5hQ1lQigK/YkjxEd0FpC+1uI2fJIuttK8vApSzL9vGQOUcXlkvFughGT7wpT gzawIxRFJ6iT8R1iw9n0pjsawQP0sFSRI8EDsFRKRnh4HI6FO25RwmVVv5vnLxbaaV5B P0/06zR2s4f9+IkB4Mx9ZEe9Mnh69eTXrM76tru6yJola6mFfaUoXATWqQdMgwp4ESnl XsHVWZ5haqkgfOh8s9ZDXLt/SLEPpBOadRskSoUG1wi9v3c/eBuLQLJzWEWNymBF9o+c p3Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :dlp-version:dlp-reaction:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:to:from:dkim-signature; bh=eo3D0aeBeJw2UIM3nA8YbDz/YEqpnZylI1xwFHzdsbc=; b=l3+JAlmjoHlLbH2/06fGM65Q5UhwuAZnVQzFD4vZMYawyk5gXKkmo2RP0gdiis6pWh ivZKyYusgmFH2GceJOmDwXVKWdVcvEiyV9LYNFxqLAv1CWhPvRznVKMlFUpV+t7HYubg u6li2yH4awQGsTXF7HFlPhZzGI1v6fLzt+OSB9pdyHJd0+pokbBU4rzoAc6wDVUY4vMm yBPZkhkgyWi/zuDFfbcngF6LOQbjK/LUspFCXN47sDiB8H+zOX52nBxrz9FS4r1s8UX/ yNc0u79hK/eV5JL3C/vhWcypSIleUg7MVr9gVpNKdkcLbubuiL8P0/izYvRjdIAqlBay Rocg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N8mkV01X; 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 lx4-20020a17090b4b0400b001ef839e735asi24131948pjb.72.2022.07.18.12.50.45; Mon, 18 Jul 2022 12:51:00 -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=pass header.i=@intel.com header.s=Intel header.b=N8mkV01X; 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 S235656AbiGRTW3 (ORCPT + 99 others); Mon, 18 Jul 2022 15:22:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231199AbiGRTW0 (ORCPT ); Mon, 18 Jul 2022 15:22:26 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B3E82F03A; Mon, 18 Jul 2022 12:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658172146; x=1689708146; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=eo3D0aeBeJw2UIM3nA8YbDz/YEqpnZylI1xwFHzdsbc=; b=N8mkV01X5dKmrHF1Gp72HLz6L73+MR7xuZybZQRIMYjHkbylW/MlL13s OkQUatI/4aeeFokFZuuGZWHieTRV5oFgl6dD51lJyqIF9rcO+lOmfxBeh AVqlPwL3zTWvCq2AurC8t4n3BtMwVWtlv8PuByvtHFqE+JZldG+aRAvhR 2hD9Skk+qU86sJ7LWVJ8TzD9eEm87N6VLXdxCwk6mGqB+XR7cH1quWF/R SsDJ9vTeK2UP3R9+j5cnDeeqgetAN/BtyRXFrU+ofkwUW8kDtZdLS5Dej 8S3wXg+3MMcokoeDrDPiKJwFK7Ctdc5QAEI5uHSaOzK1QB0cXDLmTUrFv Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10412"; a="266707821" X-IronPort-AV: E=Sophos;i="5.92,281,1650956400"; d="scan'208";a="266707821" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2022 12:22:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,281,1650956400"; d="scan'208";a="572540502" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga006.jf.intel.com with ESMTP; 18 Jul 2022 12:22:25 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Mon, 18 Jul 2022 12:22:25 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Mon, 18 Jul 2022 12:22:24 -0700 Received: from fmsmsx610.amr.corp.intel.com ([10.18.126.90]) by fmsmsx610.amr.corp.intel.com ([10.18.126.90]) with mapi id 15.01.2308.027; Mon, 18 Jul 2022 12:22:24 -0700 From: "Luck, Tony" To: "Williams, Dan J" , "chu, jane" , "bp@alien8.de" , "tglx@linutronix.de" , "mingo@redhat.com" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "hch@lst.de" , "nvdimm@lists.linux.dev" Subject: RE: [PATCH v3] x86/mce: retrieve poison range from hardware Thread-Topic: [PATCH v3] x86/mce: retrieve poison range from hardware Thread-Index: AQHYmje+5joA3gBAok2TIuU+DOldN62ETyBggACnK4D//4xNwA== Date: Mon, 18 Jul 2022 19:22:24 +0000 Message-ID: <797a2b64ed0949b6905b3c3e8f049a23@intel.com> References: <20220717234805.1084386-1-jane.chu@oracle.com> <41db4a4b17a848798e487a058a2bc237@intel.com> <62d5b13b2cf1a_9291929433@dwillia2-xfh.jf.intel.com.notmuch> In-Reply-To: <62d5b13b2cf1a_9291929433@dwillia2-xfh.jf.intel.com.notmuch> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.500.17 x-originating-ip: [10.22.254.132] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 > It appears the kernel is trusting that ->physical_addr_mask is non-zero > in other paths. So this is at least equally broken in the presence of a > broken BIOS. The impact is potentially larger though with this change, > so it might be a good follow-on patch to make sure that > ->physical_addr_mask gets fixed up to a minimum mask value. Agreed. Separate patch to sanitize early, so other kernel code can just use= it. -Tony