Re: [PATCH v25 07/21] x86/sgx: Enumerate and track EPC sections

From: Jarkko Sakkinen
Date: Wed Feb 05 2020 - 18:11:57 EST


On Wed, Feb 05, 2020 at 11:57:00AM -0800, Sean Christopherson wrote:
> > + ret = __eremove(sgx_epc_addr(page));
> > + if (!WARN_ON_ONCE(ret)) {
>
> Sadly, this WARN can fire after kexec() on systems with multiple EPC
> sections if the SECS has child pages in another section.

What causes this?

/Jarkko