Re: [PATCH v5 3/3] x86/sgx: Resolve EREMOVE page vs EAUG page data race

2024-08-27 Thread Jarkko Sakkinen
On Wed Aug 21, 2024 at 1:02 PM EEST, Dmitrii Kuvaiskii wrote: > Two enclave threads may try to add and remove the same enclave page > simultaneously (e.g., if the SGX runtime supports both lazy allocation > and MADV_DONTNEED semantics). Consider some enclave page added to the > enclave. User space

Re: [PATCH v5 3/3] x86/sgx: Resolve EREMOVE page vs EAUG page data race

2024-08-21 Thread Huang, Kai
[...] > > Additionally fix a similar race: user space converts a normal enclave > page to a TCS page (via SGX_IOC_ENCLAVE_MODIFY_TYPES) on CPU1, and at > the same time, user space performs a memory access on the same page on > CPU2. This fix is not strictly necessary (this particular race would >