Received: by 2002:a05:6512:23a5:0:0:0:0 with SMTP id c37csp499796lfv; Tue, 15 Feb 2022 07:28:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJyl/sQC1NB57bupILPePZloPUJcODppnpCmZ/C3POdSpcV6+3cYKUM9/aUPiz0W67GhIDOT X-Received: by 2002:a17:906:c14d:: with SMTP id dp13mr3633473ejc.188.1644938919314; Tue, 15 Feb 2022 07:28:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644938919; cv=none; d=google.com; s=arc-20160816; b=W8+oT8a9acMKD1cDoFtzHgtrr0mb1N51dgzAHFMboRkNPE2mQ6iGLQZBuhcLIv1G4b LO/ISdfFNG1Marq8et3W1rhEW0Dq8OEWsIy+2mbJ4TAoQb3YaXO8SFgojW5lLUA+WJl+ P4zQysGOhXohP+jw1uL/P/WFMKtMZC1/D5zaxW9q18LxnxLZkQetQz0yGbGQ7BSGgKz2 6LP2vviScEuxZ98eJ6IV43KNgqbCInLcQ42SOCwyoT0sAUBmNph1Nwi5jePx6kjd+OAQ VEH3Lb5pSoRQu9e0qD7QcWfg1Aa5z+p0b+vtdwWIOvvs+QrOS0fs5CGx0Xd2+h8mQSEV gM4w== 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=BqfmWDICe4NymxfPPRE41PxeXbt7Abmygf1Mj65P5LI=; b=lFBPOlujkrRrUzrasy+Eb4qGZ69HERHUW1Bw1Y0hy98q0O/nRHX1+Y3qYosnnwwQAr sGAdnSTVED1+L403+uA8oJGaZheV5Vm1agds5pXVj+UJ679IKUmgVWc/g/CgRfn7GNHZ UMjBnISeLaZojTrVjhYLPsoI3OnyRFXdwzKLMtYVGsa1cvJfrn9xqmxd0383qqwigkcl 1WZaLIZj2VxQMt/+Su4+NqcagR5yhKku2rwS89ed2xNRtqR/Kah/CMmMmS5T4mxH5Khj 2tK1FhlOUYTD9FwaSDTaqGBWnTfvFxPCubcQXlBKze/5kpJkAvAk6Kwa3fDlyRF+Q3pa OfqQ== 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 go32si2999235ejc.784.2022.02.15.07.28.16; Tue, 15 Feb 2022 07:28:39 -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; 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 S239515AbiBOPBr (ORCPT + 99 others); Tue, 15 Feb 2022 10:01:47 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239506AbiBOPBn (ORCPT ); Tue, 15 Feb 2022 10:01:43 -0500 Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDDDC13CE5 for ; Tue, 15 Feb 2022 07:01:33 -0800 (PST) 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 1nJzKT-0001Wq-7a; Tue, 15 Feb 2022 10:01:21 -0500 Message-ID: <63f930e411655a6ad37d4818d0ae19784c82f076.camel@surriel.com> Subject: Re: [PATCH v2] mm: clean up hwpoison page cache page in fault path From: Rik van Riel To: David Hildenbrand , linux-kernel@vger.kernel.org Cc: kernel-team@fb.com, linux-mm@kvack.org, Miaohe Lin , Andrew Morton , Mel Gorman , Johannes Weiner , Matthew Wilcox Date: Tue, 15 Feb 2022 10:01:20 -0500 In-Reply-To: <2a881586-3f5e-c277-f373-a9014d631700@redhat.com> References: <20220212213740.423efcea@imladris.surriel.com> <2a881586-3f5e-c277-f373-a9014d631700@redhat.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-xmBlxiMQ0RX+8gFzH+9g" User-Agent: Evolution 3.42.3 (3.42.3-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, RCVD_IN_MSPIKE_H2,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 --=-xmBlxiMQ0RX+8gFzH+9g Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2022-02-15 at 12:22 +0100, David Hildenbrand wrote: > On 13.02.22 03:37, Rik van Riel wrote: > > Sometimes the page offlining code can leave behind a hwpoisoned > > clean > > page cache page. This can lead to programs being killed over and > > over > > and over again as they fault in the hwpoisoned page, get killed, > > and > > then get re-spawned by whatever wanted to run them. >=20 > Hi Rik, >=20 > am I correct that you are only talking about soft offlining as > triggered > from mm/memory-failure.c, not page offlining as in memory offlining > mm/memory_hotunplug.c ? That is correct in that I am talking only about memory-failure.c, however the code in memory-failure.c has both hard and soft offlining modes, and I suppose this patch covers both? --=20 All Rights Reversed. --=-xmBlxiMQ0RX+8gFzH+9g Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAmILwEAACgkQznnekoTE 3oMtsAf/XQAcMuxVcOH1jkV3QUkXIetX7cd6gY7wiQ5Nw88ELC97QThAKEp/zTv5 RfVSqZmBLEaaW0oP81CrFinLrMk1IZZp8X8hkuK7V+086dGa1oxHoaF+k55yNpx9 6eIqlEiTloIgbTLVG6qKJhEZqgDCM0+fwBMVasVIAvfZ/scni5reBLJM2RZ3jVfl xwBOvAIPZT+/8kxxQSuT+h2UDiATqZWdfGrGR/TuX86AxqVQEpNUovmufTST9tvd yJpDju9ZHAbyB/tWquV+d5CBcXhQWqzw2aA3OH1te2nUz6M8azQA47gWZTBLzd80 ULrSoX/7Ez9S1U0VVYFIhivhGwbhmg== =9B67 -----END PGP SIGNATURE----- --=-xmBlxiMQ0RX+8gFzH+9g--