On 7/18/23 17:14, Huang, Kai wrote:The patch is not to resolve SECS vs #PF race though the race is a necessary condition to cause the NULL pointer. The same condition does not cause NULL pointer in the ELDU path of #PF, only in EAUG path of #PF.
Also perhaps the patch title is too vague. Adding more information doesn't hurt
I think, e.g., mentioning it is a fix for NULL pointer dereference in the EAUG
flow.
Yeah, let's say something like:
x86/sgx: Resolve SECS reclaim vs. page fault race