Re: [PATCH v33 03/21] x86/mm: x86/sgx: Signal SIGSEGV with PF_SGX

From: Borislav Petkov
Date: Thu Jun 25 2020 - 12:49:48 EST


On Thu, Jun 25, 2020 at 08:34:31AM -0700, Sean Christopherson wrote:
> However, building and running enclaves is complex, and the vast majority of
> SGX enabled applications are expected to leverage a library of one kind or
> another to hand the bulk of the gory details.

I gotta say this rings a bell: dhansen alluded on IRC to the jumping
through hoops one needs to do in order to run SGX enclaves.

...

> The vDSO stuff is in patches 15-18 of this series.
>
> There's a gigantic thread on all the alternatives that were considered[2].
>
> [1] https://lkml.kernel.org/r/CALCETrXByb2UVuZ6AXUeOd8y90NAikbZuvdN3wf_TjHZ+CxNhA@xxxxxxxxxxxxxx
> [2] https://lkml.kernel.org/r/CALCETrWdpoDkbZjkucKL91GWpDPG9p=VqYrULade2pFDR7S=GQ@xxxxxxxxxxxxxx

Yeah, that makes it very clear. Thanks a lot for taking the time and
writing it down. I've snipped it for brevity but it is very useful!

Thx!

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette