From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-181.mta1.migadu.com (out-181.mta1.migadu.com [95.215.58.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6653626159E for ; Sat, 16 May 2026 04:06:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778904412; cv=none; b=QgDPjug8n4gHc47nVI9VXp1BlwWD2qx3yjGSR5NMM/r/rEOrOV6lMYhuGdg8fKtK2C3w6dBsqSB4qEKtgBXr1COkqMjRx5KtHvTL+4B5Dsdy6lMSq4+KxBZPuijIa5ZmqVWkc5HetYOy+JKG8rgVEArlHLWn2m+nvPfzZIAax5M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778904412; c=relaxed/simple; bh=GBwaUEyCsHc0bhV3MvwOkn2yoHIHILajZ2KK2Sj624E=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bRo2IHOPRVEU9eIj4EDURLub1Nxc4osx4fgAbmkFehvFSYTcaUB5iuVCKzDd592N2rkqTP4wy9m+bDlil1DIRpCXbVrfXJqgrNH/rF7mx2bZ4YmMSSX6g47555R7irN/Doos9/5ETmZIg8DY8nCBVc2tCWRIh2VSyQmQkha/oIE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=m/T4jWUy; arc=none smtp.client-ip=95.215.58.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="m/T4jWUy" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1778904398; 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=csEBmhV4pBMWZ2fB04greY5anYTJC5J151pnKD1dZ50=; b=m/T4jWUyKVPBrEtgI+LssBYE8Jr1JtMKr0LC+7/kLTiQQ5hs1U9JvcXG/ff5kGZB9kDH8j yfg3OKQY/qc5xL9N70vxIHxOISGzjIXPdS29DbHnveiqosMrQEKPuglL6ufFzM10cY/+yN CEhCLgcRYDzRn7tVG2TNL9cq+EyTS8I= Date: Sat, 16 May 2026 12:06:14 +0800 Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v7 2/6] mm/memory-failure: surface unhandlable kernel pages as -ENOTRECOVERABLE Content-Language: en-US To: Breno Leitao Cc: linmiaohe@huawei.com, akpm@linux-foundation.org, david@kernel.org, ljs@kernel.org, vbabka@kernel.org, rppt@kernel.org, surenb@google.com, mhocko@suse.com, shuah@kernel.org, nao.horiguchi@gmail.com, rostedt@goodmis.org, mhiramat@kernel.org, mathieu.desnoyers@efficios.com, corbet@lwn.net, skhan@linuxfoundation.org, liam@infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-trace-kernel@vger.kernel.org, kernel-team@meta.com References: <20260515070353.87244-1-lance.yang@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Lance Yang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2026/5/15 21:13, Breno Leitao wrote: [...] >> >> Wonder if it would be simpler to just do a positive check near the top >> of get_any_page() instead. Something like: >> >> static bool hwpoison_unrecoverable_kernel_page(struct page *page, >> unsigned long flags) > > Ack. We probably want to call it something like HWPoisonKernelOwned() to > follow the same naming sematics of these helpers, such as HWPoisonHandlable() > > By the way, I will re-include the self test back to this patch series, > In case they are not useful, we do not merge it. > Sounds good :) Can you also test the relevant page types if possible, especially the ones the new helper is supposed to classify? Cheers, Lance