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

Jarkko Sakkinen
2020-02-05T23:11:57Z

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