Re: [PATCH] x86/sgx: Avoid returning NULL in __sgx_alloc_epc_page()

From: Borislav Petkov
Date: Fri Mar 19 2021 - 12:10:01 EST


On Fri, Mar 19, 2021 at 08:59:46AM -0700, Dave Hansen wrote:
> It's probably best to squash my patch in. The uninitialized value could
> *theoretically* cause the search to start at the wrong node and then end
> before every node has been visited. That could cause premature
> allocation failures.
>
> But, I seriously doubt anyone will notice either way.

Yeah, I think too that we should be on the safe side, just in case.
Lemme redo the branch with the new changes and test.

Thx.

--
Regards/Gruss,
Boris.

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