Re: [RFC PATCH v4 2/4] x86/sgx: Implement support for MADV_WILLNEED

Sean Christopherson
2023-06-30T00:14:44Z

On Thu, Jun 29, 2023, Kai Huang wrote:
> But SGX usrespace needs a *exact* address. MAP_FIXED is the only ABI can
> guarantee this.

Yes, but you're assuming that userspace is sane and robust. It's *very* possible
that there exists userspace that doesn't specify MAP_FIXED, but works anyways
because their setup doesn't cause conflicts and so the hint is sufficient.