Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2808462pxb; Mon, 19 Apr 2021 14:42:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfXrK0c1miYdpzkwWrqC+mkPaCYoBMo/jPSVaisP7/0+UMIwlyUS+7kZjiX6zK4ObCrpx7 X-Received: by 2002:a17:906:94d2:: with SMTP id d18mr24302822ejy.531.1618868574868; Mon, 19 Apr 2021 14:42:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618868574; cv=none; d=google.com; s=arc-20160816; b=vbGwsQ9XBFl42TFP8BMAZfOMsq1HEYswTgsecGC2inlJsnNYkuCsB5t+cKaHJSGs53 /HL9ncuRxVTVX/2GKUlpdhWamGSsNTz0pdCjxgLSQ6DFMe/dNgDzDPwZPHNTzDGD2ZrE Cf2cg9JbMk0kzf7ZGHfysMsPsZ84XJHwhIjGDqqqACqw/8l74VY8gsQ02J4PhWmiuDJe LFTyRNDgy0e73ENh9uWzooI92MFPAIZnkcTEcTKPgJgSOxt2BxNgyx8XGmSACLPRw0DN gA0HO5uxJ7Nv93j8LLZJHgtCvgLTX79j/sKRuI+URZYllVB20nFpvp+T8mURZ4+lu+tY 2ffg== 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:cc:to:from:ironport-sdr:ironport-sdr; bh=dGRmmtMLdKQKpjvCxa2WmCdcpCQGqB8qFHMNAW8hYbk=; b=LH2LLExiZJrhZMDGIxhKkx6rICQ5qPAeASt0Z3ZJzW0uLVnn/A3oUwws8FWXgNi8yq I2lzUUrWYqreUm1jdHItRyTM6va/gzbM/IRZd+7xLD0WLXr/ext33OF16SsX7KrI11G1 ia6THDHDFGuKsKtFj8m8x1kmD8jO+k5JY3IcWROMxEhG9z3eOwDtMBYtA4YktXZJYsX2 7murm3F5sNtPufBPs4Bw4i2rnbfNtNVNHjVbUnjEJB3hxRwqKRGRKIiY5biECMtxbRjN GSkVhh2Zz7fbGqmH22P2as+bPUOkjt2m5qppd+v8UWbIHBt/TTWCByYJocqoeffwQKaO KLNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw6si7991270ejb.548.2021.04.19.14.42.31; Mon, 19 Apr 2021 14:42:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232432AbhDSVmH (ORCPT + 99 others); Mon, 19 Apr 2021 17:42:07 -0400 Received: from mga09.intel.com ([134.134.136.24]:56056 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229730AbhDSVmH (ORCPT ); Mon, 19 Apr 2021 17:42:07 -0400 IronPort-SDR: zTCKSNs6jnDwEOexzO975KZ30GGrbF+OQzflbNtC5tFpkpQ2fc4ECLmtKN96zDWEby3EiPapDp XarMYa4EDFSw== X-IronPort-AV: E=McAfee;i="6200,9189,9959"; a="195517144" X-IronPort-AV: E=Sophos;i="5.82,235,1613462400"; d="scan'208";a="195517144" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2021 14:41:36 -0700 IronPort-SDR: 2OaWIEUTmIJ3M608awv7e3D6e1gst7R6pksFyVlL4qqweW8Y1OCkGrw8ATD4OMHBwlC52A7tRv rrgPYaIlslEg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,235,1613462400"; d="scan'208";a="454483187" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga002.fm.intel.com with ESMTP; 19 Apr 2021 14:41:35 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) 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.2106.2; Mon, 19 Apr 2021 14:41:34 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Mon, 19 Apr 2021 14:41:34 -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.2106.013; Mon, 19 Apr 2021 14:41:34 -0700 From: "Luck, Tony" To: Jue Wang CC: "bp@alien8.de" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "luto@kernel.org" , "naoya.horiguchi@nec.com" , "x86@kernel.org" , "yaoaili@kingsoft.com" Subject: RE: [PATCH 4/4] x86/mce: Avoid infinite loop for copy from user recovery Thread-Topic: [PATCH 4/4] x86/mce: Avoid infinite loop for copy from user recovery Thread-Index: AQHXNWL5puxasW7m1UqRuKa2ceHC8qq8XBRA Date: Mon, 19 Apr 2021 21:41:33 +0000 Message-ID: References: In-Reply-To: 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.5.1.3 x-originating-ip: [10.1.200.100] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pj4gQnV0IHRoZXJlIGFyZSBwbGFjZXMgaW4gdGhlIGtlcm5lbCB3aGVyZSB0aGUgY29kZSBhc3N1 bWVzIHRoYXQgdGhpcw0KPj4gRUZBVUxUIHJldHVybiB3YXMgc2ltcGx5IGJlY2F1c2Ugb2YgYSBw YWdlIGZhdWx0LiBUaGUgY29kZSB0YWtlcyBzb21lDQo+PiBhY3Rpb24gdG8gZml4IHRoYXQsIGFu ZCB0aGVuIHJldHJpZXMgdGhlIGFjY2Vzcy4gVGhpcyByZXN1bHRzIGluIGEgc2Vjb25kDQo+PiBt YWNoaW5lIGNoZWNrLg0KPg0KPiBXaGF0IGFib3V0IHJldHVybiBFSFdQT0lTT04gaW5zdGVhZCBv ZiBFRkFVTFQgYW5kIHVwZGF0ZSB0aGUgY2FsbGVycw0KPiB0byBoYW5kbGUgRUhXUE9JU09OIGV4 cGxpY2l0bHk6IGkuZS4sIG5vdCByZXRyeSBidXQgZ2l2ZSB1cCBvbiB0aGUgcGFnZT8NCg0KVGhh dCBzZWVtcyBsaWtlIGEgZ29vZCBpZGVhIHRvIG1lLiBCdXQgSSBnb3Qgc29tZSBwdXNoYmFjayB3 aGVuIEkgc3RhcnRlZA0Kb24gdGhpcyBwYXRoIGVhcmxpZXIgd2l0aCBzb21lIHBhdGNoZXMgdG8g dGhlIGZ1dGV4IGNvZGUuICBCdXQgYmFjayB0aGVuIEkNCndhc24ndCB1c2luZyBlcnJvciByZXR1 cm4gb2YgRUhXUE9JU09OIC4uLiBwb3NzaWJseSB0aGUgY29kZSB3b3VsZCBsb29rDQpsZXNzIGhh Y2t5IHdpdGggdGhhdCBleHBsaWNpdGx5IGNhbGxlZCBvdXQuDQoNClRoZSBmdXRleCBjYXNlIHdh cyBzcGVjaWZpY2FsbHkgZm9yIGNvZGUgdXNpbmcgcGFnZWZhdWx0X2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