From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 400B73603F7 for ; Mon, 23 Mar 2026 21:19:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774300744; cv=none; b=sk96gluCH+37OQnNKg0gmhX1munaLv/hAiPXbb80i8jTEHGlkl/Fp5Hvq2O+C8dWQTBfd32Eimq6GIytTvyxZOOt7eXyxtJpz8Cgafh2OJ6etN5e/vFkjT2g5hKw3GrPuFDQeluUY9nu8S/m40ogAAxsXaPll5EVKFopEC+EhYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774300744; c=relaxed/simple; bh=jMwzb9z7/mVdGpQ2lPkfQnGAecA2/7Ga2XFMan5JKTQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eU/voQFs/MyyK/2guxw/oB7Sb5jG528x5z08Awx7c6YuBmrK57a6+jhXbJNrA3ptY8Zodd6e045O++S1pAjZJT9KXANfrnWqXIMNLKwbAwlAxrDvcRjhjqCcMZ7AlqRlJMuEeR/lmcXdioIbKdHwjZThts3W31i021RJEv4fjR0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=CZvzxs0I; arc=none smtp.client-ip=209.85.214.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="CZvzxs0I" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2b04c9e3eb7so28325ad.0 for ; Mon, 23 Mar 2026 14:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1774300743; x=1774905543; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=FUGqI0aW7JYeGUdYKG2R2+j1GF5S/yFvaIQs/WVfzFI=; b=CZvzxs0IcB1ehTC87jd5EmbxAuUeKbH88aDnALrgsWL21tXD3sHKQ4r55aQt16KRmf 5tucGvVJobb+8pMYf0sxbocMYr0cu2Q5D/XJz6Xk/K6s+kEQ4Evy0yJS2EBJ7V2ZkTlM ZkhykpiaitQGxCO1rL3QjCyHjiJa/VR9b6H2Q1iLeYAYOm4SpxW2FxW391l8/lwXLsdc 6YmIS/aK96LfMLiRXEeh8NFtONypK/aRh7ncvLApL2RWGjb+XtJrJtdGsy3M8bMQS/p/ rL8rta6Qxl7CnBs2Dh1fu61jQPZTUY0BfuLoxYKLlOrP/Np9ZSMMdhHp54Yu0m5UGTfc iGNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774300743; x=1774905543; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FUGqI0aW7JYeGUdYKG2R2+j1GF5S/yFvaIQs/WVfzFI=; b=iGi4i3rSNB/AHveTaaBjAhfcJbG2bKNNk9SM4r3p27f6ABwWbZZW406feDYisTyya9 lDc+B97UNgqE4rsbA0zbXPKFaJ5PRtVOEIzpp3x1d4JkgQPJ8ERBVPfXJV4b+85rXjaZ 8/aZJ2jNZtkpSshZrrtCKLwm1SKSWeJsVJYhaXin2YgDeV7knH9qpo4d2lSQsxllfgOE 1TVkUzYXsdfAw5mKL1GvoelDw0s45Hk6xmUCs4Zq+2u1UlmXepkGmWjyOBHPRLoZyxUT i6dNuFTd549H4Wap7DzeNNtXMhd4P8/PxSu+0de4QIrljlKA0r38ehQfpM5uSdrzbZ7d 6Q3Q== X-Forwarded-Encrypted: i=1; AJvYcCVPRQewBI+wZhFmkLITqnRjCuZ9TniEUKKqkWhcf7oLqXkLtEWvtJY6Ck4GdrlpgiOnzZVgLarbTYYoXH74WyA=@vger.kernel.org X-Gm-Message-State: AOJu0YyNGCoVJhXYabFMVSWmJvHsWGMgv1E4r5SB8P0QH9Y1qmHvIHSv X7IUGhYQvy9rFpBD7r54744g3wNBY04gmoQsP5V/OStgQUl7MZ1DuYgbbnpGEknjcQ== X-Gm-Gg: ATEYQzyHAvUMYyxwb8KhPP6U8izG7tV97WT6YSNZ/VV8eNoV1YK9ocbTh8xH5xcWoHF 3XpVLECX0aN1lqdWZzP5rm68o7lOJ71exrq9q2Yf8zW+OQol8QN7uyns23kxhENY8N0Gvc/vlZD sox1axbS8jA+xGgbAcZ8yv4C/m/dGyo8wuN1aguxWasiPyEaBz+BC/qHJXbjJsf9QeR39YfGous fUwX0rvSSIYTcKXzs1G9VHL3xvrq34Gb85rbmTQrfL/Xprwro4fnG+Zmb1RqpIuLswNQ8m3Uqcw dtj6+AgfL72xQ3FunOYmI8C1hLasIQHCsEFJj3xv5jE3rtr6AHSYx0zqJPegltU8Oj8DxT17/fx SPfwYDwds8uDzxNsyGt4Vajr1+JjV7Qie0tUsuVsFYqipq3B8CQo78hHRFgDlTXyQwVz3EEFpk9 fY1STbuwXUl5P434y6oghxRjFZyliwghxCLB2HJpEHR7C3oL6X077bBfu7sEQ= X-Received: by 2002:a17:902:e5c8:b0:2a7:d266:d84a with SMTP id d9443c01a7336-2b0a6735efemr308765ad.17.1774300742225; Mon, 23 Mar 2026 14:19:02 -0700 (PDT) Received: from google.com (249.53.168.34.bc.googleusercontent.com. [34.168.53.249]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c74443cc2ddsm7910891a12.24.2026.03.23.14.19.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2026 14:19:01 -0700 (PDT) Date: Mon, 23 Mar 2026 21:18:57 +0000 From: Lisa Wang To: Jiaqi Yan Cc: Miaohe Lin , Naoya Horiguchi , Andrew Morton , Paolo Bonzini , Shuah Khan , Hugh Dickins , Baolin Wang , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, rientjes@google.com, seanjc@google.com, ackerleytng@google.com, vannapurve@google.com, michael.roth@amd.com, tabba@google.com, dave.hansen@linux.intel.com Subject: Re: [PATCH RFC v2 1/7] mm: memory_failure: Clarify the MF_DELAYED definition Message-ID: References: <20260319-memory-failure-mf-delayed-fix-rfc-v2-v2-0-92c596402a7a@google.com> <20260319-memory-failure-mf-delayed-fix-rfc-v2-v2-1-92c596402a7a@google.com> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sun, Mar 22, 2026 at 02:34:59PM -0700, Jiaqi Yan wrote: > > [...snip...] > > * MF_DELAYED - The m-f() handler marks the page as PG_hwpoisoned'ed. > > nit: would it be worth correcting PG_hwpoisoned to PG_hwpoison'ed? as > there is really no "PG_hwpoisoned" page flag. I will change PG_hwpoisoned'ed to PG_hwpoison'ed in the next version. > > - * The page is unmapped, and is removed from the LRU or file mapping. > > - * An attempt to access the page again will trigger page fault and the > > - * PF handler will kill the process. > > + * It means the page was partially isolated (e.g. removed from file mapping > > nit: what about "unmapped"? Thanks to point this out. I will change to "It means the page was unmapped and partially isolated (e.g. ..." in the next version. > > + * or the LRU) but full cleanup is deferred (e.g. the metadata for the > > + * memory, as in struct page/folio, is still referenced). Any further > > + * access to the page will result in the process being killed. > > * > > * MF_RECOVERED - The m-f() handler marks the page as PG_hwpoisoned'ed. > > * The page has been completely isolated, that is, unmapped, taken out of > > > > -- > > 2.53.0.959.g497ff81fa9-goog > > > > Reviewed-by: Jiaqi Yan