Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5342284pxb; Mon, 28 Mar 2022 11:10:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZ7wEM7MfB8w7uha6GHoU6AAceAQ0xv1ICs9B/vY5BYQYrjrhhhMdQGkjMJKIUT+R+cQ6v X-Received: by 2002:a63:3854:0:b0:398:f37:f95e with SMTP id h20-20020a633854000000b003980f37f95emr10992240pgn.130.1648491028718; Mon, 28 Mar 2022 11:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648491028; cv=none; d=google.com; s=arc-20160816; b=I1umdl7AHk7wDIE1xnsHwTRemWFiHlrM+iamPfNMJhzuZtLcZylEdxBynfNmx+4390 zpEb/H7OPWJdxWFComB9DpzQl0ILXLi1npdx8vdrRSgMC0V1FOJxCUQWrHjbcT7uWvP1 wMPVd54kkMIpQ8b54qpgNQDhkMorhmEqDJzYpFUKTk2wFHvKLi7uETAFiqRr1IUdIJny zFsitqaQXnqK/wkMZ0hZOelbdCfDWzrsZ+VyZ5V6w/PS9mRwzVZaKrrK7D7DSwTF+z4A Ng50/cK6+ccJDBEHBUh7QW35Gu+YKThFPGNekkM8TITrtQoyDgbwZ8R0IQcvMYn6lkbP qlwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=8GQmHGscZ05cuhGO07M21gP7xUZ24TsBpwn2TucyxOM=; b=yyZMa///pKmk/CfluwKW3Pd88K/dCysF606UJtIGRNFRwZMHWsisY7Z1TY8GIbDjkZ XedFMcaaRRwR1WanVbJRg0IMEN38DthhKuVQO8tmmJB5qXAQDC9IOkF7ufPC78kK7idP lG/f/dDfonjrlAMGL0hhmFdAHQXf/Z4wVW0TInMYG40nXQh3+NKxCX0RfgQAnU5ro9gm XnGBNaO3guCML6BUNESTwNc/kbd1q1k7R0KD3zuA3hU6uxONhlhJkcdtXA7voWRYej1T RyWuCiY5lLiZi83CJsM2sz2NVkgHC6YPcwJdGu3igB4UD6vucAxQ2/EYk4nrCaKBe1us /R9Q== 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 u5-20020a170902e80500b00153b2d16507si15315598plg.271.2022.03.28.11.10.12; Mon, 28 Mar 2022 11:10:27 -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 S234930AbiCZUQn (ORCPT + 99 others); Sat, 26 Mar 2022 16:16:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233000AbiCZUQm (ORCPT ); Sat, 26 Mar 2022 16:16:42 -0400 Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC56164FF; Sat, 26 Mar 2022 13:15:05 -0700 (PDT) Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nYCoJ-0006pu-6P; Sat, 26 Mar 2022 16:14:55 -0400 Message-ID: <5b734809fef4d76944490d5ac3ea816f0756b90a.camel@surriel.com> Subject: Re: [PATCH] mm,hwpoison: unmap poisoned page before invalidation From: Rik van Riel To: Miaohe Lin Cc: linux-mm@kvack.org, kernel-team@fb.com, Oscar Salvador , Naoya Horiguchi , Mel Gorman , Johannes Weiner , Andrew Morton , stable@vger.kernel.org, linux-kernel Date: Sat, 26 Mar 2022 16:14:54 -0400 In-Reply-To: References: <20220325161428.5068d97e@imladris.surriel.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-yyEVjlUEaZO5whgwVvNZ" User-Agent: Evolution 3.42.4 (3.42.4-1.fc35) MIME-Version: 1.0 Sender: riel@shelob.surriel.com X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 --=-yyEVjlUEaZO5whgwVvNZ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 T24gU2F0LCAyMDIyLTAzLTI2IGF0IDE1OjQ4ICswODAwLCBNaWFvaGUgTGluIHdyb3RlOgo+IE9u IDIwMjIvMy8yNiA0OjE0LCBSaWsgdmFuIFJpZWwgd3JvdGU6Cj4gPiAKPiA+ICsrKyBiL21tL21l bW9yeS5jCj4gPiBAQCAtMzkxOCwxNCArMzkxOCwxOCBAQCBzdGF0aWMgdm1fZmF1bHRfdCBfX2Rv X2ZhdWx0KHN0cnVjdAo+ID4gdm1fZmF1bHQgKnZtZikKPiA+IMKgwqDCoMKgwqDCoMKgwqDCoMKg wqDCoMKgwqDCoMKgcmV0dXJuIHJldDsKPiA+IMKgCj4gPiDCoMKgwqDCoMKgwqDCoMKgaWYgKHVu bGlrZWx5KFBhZ2VIV1BvaXNvbih2bWYtPnBhZ2UpKSkgewo+ID4gK8KgwqDCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoHN0cnVjdCBwY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KgwqDCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqBwdXRfcGFnZSh2bWYtPnBhZ2UpOwo+ID4gK8KgwqDCoMKgwqDCoMKgwqDCoMKg wqDCoMKgwqDCoHB1dF9wYWdlKHBhZ2UpOwo+IAo+IERvIHdlIHVzZSBwYWdlIGluc3RlYWQgb2Yg dm1mLT5wYWdlIGp1c3QgZm9yIHNpbXBsaWNpdHk/IE9yIHRoZXJlIGlzCj4gc29tZSBvdGhlciBj b25jZXJuPwo+IAoKSnVzdCBhIHNpbXBsaWZpY2F0aW9uLCBhbmQgbm90IGRlcmVmZXJlbmNpbmcg dGhlIHNhbWUgdGhpbmcKNiB0aW1lcy4KCj4gPiDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg wqDCoHZtZi0+cGFnZSA9IE5VTEw7Cj4gCj4gV2UgcmV0dXJuIGVpdGhlciBWTV9GQVVMVF9OT1BB R0Ugb3IgVk1fRkFVTFRfSFdQT0lTT04gd2l0aCB2bWYtPnBhZ2UKPiA9IE5VTEwuIElmIGFueSBj YXNlLAo+IGZpbmlzaF9mYXVsdCB3b24ndCBiZSBjYWxsZWQgbGF0ZXIuIFNvIEkgdGhpbmsgeW91 ciBmaXggaXMgcmlnaHQuCgpXYW50IHRvIHNlbmQgaW4gYSBSZXZpZXdlZC1ieSBvciBBY2tlZC1i eT8gOikKCi0tIApBbGwgUmlnaHRzIFJldmVyc2VkLgo= --=-yyEVjlUEaZO5whgwVvNZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAmI/dD4ACgkQznnekoTE 3oPIOQf/YksPhwQYLGaGg3PSw+xwuRhx8LNWH32ckzlyrCGtFpCmiuojp3+S4Kb8 SSIVV+gkEPyageY6Mapntzp1IPLSlEMSmZ2Xg/82oWLPNtaKljDHnzalS/IJjtIK ENDXyP2IaV0DFcoEgVkLp/64z3YRWjgpKDOPoDusopYBMqNITKy10I1LdaEqwOt9 idBYBC7/YNIZvQPe5QL2CTR0k4Mbggp/3MUdyhZYxeEKp05c3D3VRRotcokGVgQ3 WLuqS+OCoZ18KPpDz9BQOygcmOHcXPMtODkS9F/vjNYDO9gxJMTUFo/zLKwlglrb rOKQebP5m9IIRcKxLvgFN3WyA+IMTQ== =xICT -----END PGP SIGNATURE----- --=-yyEVjlUEaZO5whgwVvNZ--