[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230327083739.GA956278@hori.linux.bs1.fc.nec.co.jp>
Date: Mon, 27 Mar 2023 08:37:41 +0000
From: HORIGUCHI NAOYA(堀口 直也)
<naoya.horiguchi@....com>
To: Zhiquan Li <zhiquan1.li@...el.com>
CC: "x86@...nel.org" <x86@...nel.org>,
"linux-edac@...r.kernel.org" <linux-edac@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"patches@...ts.linux.dev" <patches@...ts.linux.dev>,
"tony.luck@...el.com" <tony.luck@...el.com>,
"bp@...en8.de" <bp@...en8.de>,
"youquan.song@...el.com" <youquan.song@...el.com>
Subject: Re: [PATCH v2] x86/mce: Set PG_hwpoison page flag to avoid the
capture kernel panic
On Mon, Mar 27, 2023 at 10:33:58AM +0800, Zhiquan Li wrote:
> Kdump can exclude the HWPosion page to avoid touch the error page
> again, the prerequisite is the PG_hwpoison page flag is set.
> However, for some MCE fatal error cases, there is no opportunity
> to queue a task for calling memory_failure(), as a result,
> the capture kernel touches the error page again and panics.
>
> Add function mce_set_page_hwpoison_now() which marks a page as
> HWPoison before kernel panic() for MCE error, so that the dump
> program can check and skip the error page and prevent the capture
> kernel panic.
>
> [Tony: Changed TestSetPageHWPoison() to SetPageHWPoison()]
>
> Co-developed-by: Youquan Song <youquan.song@...el.com>
> Signed-off-by: Youquan Song <youquan.song@...el.com>
> Signed-off-by: Zhiquan Li <zhiquan1.li@...el.com>
> Signed-off-by: Tony Luck <tony.luck@...el.com>
Looks good to me, thank you.
Reviewed-by: Naoya Horiguchi <naoya.horiguchi@....com>
Powered by blists - more mailing lists