Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp254269pxb; Tue, 15 Feb 2022 12:35:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpozGuTgnPsbcInl0EN28ypj5gCETKAUQsGMrbn33JxnUdlitJhKAK0SCgfHqL2WiJGToB X-Received: by 2002:a17:907:60cf:: with SMTP id hv15mr677314ejc.702.1644957307744; Tue, 15 Feb 2022 12:35:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644957307; cv=none; d=google.com; s=arc-20160816; b=lzIzVtJxBX8sAta7zBi6sbWiHzTRTkjfIRq+Z3YOOiJwuHVwsbL3UN/5hqiEM0H3+z 7csszkbVBhNxLpqxE2iKMiAWmXDJQAIaYhWtd9TbZ7475zKSbuHNqryFjuyyESx5DjyY BkYcLUNqDhNn78We3PpHSXtDVqIeZgBh8SoskkRbrtwVEI1v/s89n2IUC99EIFYk9Ek8 iF4K31rU9SfYqKTTHJoXzoUxi8OK/w9gtBSz/rLypn8Sn481D0VgD/z/QvfToZShjkyh /o6OxrkpyDxtLYAsda4ijjh3kGy5IXYDe4f8LPHw33u1Fg7ppovDM4wIOIKQF3H3sX9W +gpw== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=HfA3vO8+6n1DQao6u/Mr2EuXbzpIlm1ffHmAiLuPWK8=; b=GsHmxDihSiEyFICGu7YS5N86YUHytIh2wU2gSzjCG03BN9ysqyHye4f8744NjjFuQE rgoLVP7hn6DtG7z5MBkeDwOoiGDJv+DgmXEvvfUGxv3oKvHTY/ZV90M5NM8KGuv9RZO8 Gh/z/06TTw0rlBJzCXgQFB9GYTCclHllpkxjD1BeTM/rV41b5n+i+LcvBAor7dZit3hv Tgsl/ZWcZ4tfXFWQ8/+bDUoB5UDwRzor01R+f+WgSkFSu/C5LFOVDjkkbjbNd/qFv89Q H0iUQr1f8JJdOy+PmQElrtkBu0hV1cZYlXI6VUslrnPB5nOoKXqLELyUdIcNQfIKuGYY U/DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=V3rutEc9; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z6si713878edd.161.2022.02.15.12.34.44; Tue, 15 Feb 2022 12:35:07 -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=@redhat.com header.s=mimecast20190719 header.b=V3rutEc9; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239595AbiBOPGY (ORCPT + 99 others); Tue, 15 Feb 2022 10:06:24 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239606AbiBOPGW (ORCPT ); Tue, 15 Feb 2022 10:06:22 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F14D2108761 for ; Tue, 15 Feb 2022 07:06:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644937572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HfA3vO8+6n1DQao6u/Mr2EuXbzpIlm1ffHmAiLuPWK8=; b=V3rutEc9rAyx9HEFdcjMjXbwbApXmHO86VKm1MJPfmFFYrkELg9Edl9aInryX4fwwTfEzv /+cQThj8PTBTuwVcG1/MF077iRyq14jGLVkfqrJRzsahxZZ8nTTKz7pSkSqOdXyNXnYwa+ +mP0g6kx1LWp6jMRSd1pmgC2azWbkjk= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-675-CTT9jKNPPTegL3fqOe2nDg-1; Tue, 15 Feb 2022 10:06:11 -0500 X-MC-Unique: CTT9jKNPPTegL3fqOe2nDg-1 Received: by mail-wr1-f71.google.com with SMTP id v17-20020adfc5d1000000b001e6405c2b56so3471894wrg.7 for ; Tue, 15 Feb 2022 07:06:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=HfA3vO8+6n1DQao6u/Mr2EuXbzpIlm1ffHmAiLuPWK8=; b=wz1yzDu617RmInuE8nv0GfLUfDyXq4at3uuHNJyA8mubqX61/FdDd4hhGhhsaQm/ez GerF5ckViXvSGjDPG9OQ0+DnOIC3PlZKP+mXPz3voAsXTc8Lg9IiOWi8/oZGNzPEI7eL MdEGuOUIPZGiho0a5JW8jidW1kyE21Fj5owXxNTC/sCLQ8MDNt5q8wJopUPaB23awLvj 8Imo//NQJLhGgfNa4SmtNlsGV9tpq1hnbOa/7mg1ehSaCt2pdj/ZiB4ejBXN2FT2Boj1 nrxJrqUbdfwWhTZSD35tPTdBvNyy1qTqmVlFoMXyiO8F9Aqo2ba+WT4w6+pPP8gj6AX3 WLPw== X-Gm-Message-State: AOAM5313FjF98VDxaQiGnWjeeI/HoPnr2Wb+osTwldPT8ImefkxZuA02 1Q9LKCIanyOebVEOvBBE5ZeGJCb4FoloQ7AGXZOxIe12EeM3MY37fwOTQz3Y+jv+LPUMyzFbEcy Mhix4BU6MzVzUuiqw9/YEDpXP X-Received: by 2002:a05:6000:2c5:: with SMTP id o5mr3572612wry.130.1644937569076; Tue, 15 Feb 2022 07:06:09 -0800 (PST) X-Received: by 2002:a05:6000:2c5:: with SMTP id o5mr3572592wry.130.1644937568834; Tue, 15 Feb 2022 07:06:08 -0800 (PST) Received: from ?IPV6:2003:cb:c70e:3700:9260:2fb2:742d:da3e? (p200300cbc70e370092602fb2742dda3e.dip0.t-ipconnect.de. [2003:cb:c70e:3700:9260:2fb2:742d:da3e]) by smtp.gmail.com with ESMTPSA id s7sm3872048wro.104.2022.02.15.07.06.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Feb 2022 07:06:08 -0800 (PST) Message-ID: <2cc44d0d-1ede-daca-30fd-d302f1537dfe@redhat.com> Date: Tue, 15 Feb 2022 16:06:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH v2] mm: clean up hwpoison page cache page in fault path Content-Language: en-US To: Rik van Riel , linux-kernel@vger.kernel.org Cc: kernel-team@fb.com, linux-mm@kvack.org, Miaohe Lin , Andrew Morton , Mel Gorman , Johannes Weiner , Matthew Wilcox References: <20220212213740.423efcea@imladris.surriel.com> <2a881586-3f5e-c277-f373-a9014d631700@redhat.com> <63f930e411655a6ad37d4818d0ae19784c82f076.camel@surriel.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <63f930e411655a6ad37d4818d0ae19784c82f076.camel@surriel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.9 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_LOW,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 On 15.02.22 16:01, Rik van Riel wrote: > 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. >> >> Hi Rik, >> >> 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? > Right, for hwpoison handling there is hard and soft offlining of pages ... maybe "hwpoison page offlining" would be clearer, not sure. Thanks for clarifying! -- Thanks, David / dhildenb