[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aCYey1W6i7i3yPLL@gmail.com>
Date: Thu, 15 May 2025 19:05:15 +0200
From: Ingo Molnar <mingo@...nel.org>
To: Dave Hansen <dave.hansen@...el.com>
Cc: Andrew Zaborowski <andrew.zaborowski@...el.com>, x86@...nel.org,
linux-sgx@...r.kernel.org, linux-kernel@...r.kernel.org,
Dave Hansen <dave.hansen@...ux.intel.com>,
Tony Luck <tony.luck@...el.com>,
Thomas Gleixner <tglx@...utronix.de>,
Borislav Petkov <bp@...en8.de>, Ingo Molnar <mingo@...hat.com>,
"H . Peter Anvin" <hpa@...or.com>, balrogg@...il.com
Subject: Re: [PATCH v2] x86/sgx: Prevent attempts to reclaim poisoned pages
* Dave Hansen <dave.hansen@...el.com> wrote:
> Thanks for sending this, Andrew!
>
> I think I'll probably add a slightly shorter summary:
>
> tl;dr: SGX page reclaim touches the page to copy its contents to
> secondary storage. SGX instructions do not gracefully handle machine
> checks. Despite this, the existing SGX code will try to reclaim pages
> that it _knows_ are poisoned. Avoid even trying to reclaim poisoned pages.
>
> But otherwise it looks great:
>
> Acked-by: Dave Hansen <dave.hansen@...ux.intel.com>
Thanks, I've applied this fix to tip:x86/sgx, with the TL;DR paragraph
added in.
Thanks,
Ingo
Powered by blists - more mailing lists