Re: [PATCH v5] x86/sgx: Free backing memory after faulting the enclave page

From: Dave Hansen
Date: Tue Mar 01 2022 - 12:54:26 EST


On 3/1/22 04:58, Jarkko Sakkinen wrote:
> @@ -32,14 +58,16 @@ static int __sgx_encl_eldu(struct sgx_encl_page *encl_page,
> else
> page_index = PFN_DOWN(encl->size);
>
> + page_pcmd_off = sgx_encl_get_backing_page_pcmd_offset(encl, page_index);
> +
> ret = sgx_encl_lookup_backing(encl, page_index, &b);
> if (ret)
> return ret;

What tree is this against? It looks like it might be on top of
Kristen's overcommit series.

It would be best if you could test this on top of tip/sgx. Kristen
changed code in this area as well.