[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <op.18av1t14wjvjmi@hhuan26-mobl.amr.corp.intel.com>
Date: Tue, 18 Jul 2023 18:11:43 -0500
From: "Haitao Huang" <haitao.huang@...ux.intel.com>
To: dave.hansen@...ux.intel.com, linux-kernel@...r.kernel.org,
linux-sgx@...r.kernel.org, "Thomas Gleixner" <tglx@...utronix.de>,
"Ingo Molnar" <mingo@...hat.com>, "Borislav Petkov" <bp@...en8.de>,
x86@...nel.org, "H. Peter Anvin" <hpa@...or.com>,
"Jarkko Sakkinen" <jarkko@...nel.org>
Cc: kai.huang@...el.com, reinette.chatre@...el.com,
kristen@...ux.intel.com, seanjc@...gle.com, stable@...r.kernel.org
Subject: Re: [PATCH] x86/sgx: fix a NULL pointer
On Tue, 18 Jul 2023 10:37:45 -0500, Jarkko Sakkinen <jarkko@...nel.org>
wrote:
> On Mon Jul 17, 2023 at 11:29 PM EEST, Haitao Huang wrote:
>> Under heavy load, the SGX EPC reclaimers (current ksgxd or future EPC
>> cgroup worker) may reclaim the SECS EPC page for an enclave and set
>> encl->secs.epc_page to NULL. But the SECS EPC page is used for EAUG in
>> the SGX #PF handler without checking for NULL and reloading.
>>
>> Fix this by checking if SECS is loaded before EAUG and load it if it was
>> reclaimed.
>>
>> Fixes: 5a90d2c3f5ef8 ("x86/sgx: Support adding of pages to an
>> initialized enclave")
>> Cc: stable@...r.kernel.org
>
> Given that
>
> $ git describe --contains 5a90d2c3f5ef8
> v6.0-rc1~102^2~16
>
> You could also describe this as:
>
> Cc: stable@...r.kernel.org # v6.0+
Will add
>
...
>
> Reviewed-by: Jarkko Sakkinen <jarkko@...nel.org>
>
Thank you.
Haitao
Powered by blists - more mailing lists