# Re: \[PATCH v33 11/21\] x86/sgx: Linux Enclave Driver

- From: Borislav Petkov \<bp@alien8.de\>
- Date: 2020-06-26 14:20:29 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2020/06/6015875
- Thread: https://ratatoskr.run/linux-security-module/2020/06/6002919/t.md

```text
On Fri, Jun 26, 2020 at 07:16:27AM -0700, Sean Christopherson wrote:
> That being said, I agree that it would be safer to move sgx_calc_ssaframesize()
> inside sgx_validate_secs() and only compute encl_size after the secs is
> validated.

Yap, that would be the right thing to do.

-- 
Regards/Gruss,
    Boris.

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