Refine the naming, documentation and validation of the page permissions. silent behaviour to occur. Cc: Sean Christopherson <sean.j.christpherson@xxxxxxxxx> Cc: Shay Katz-zamir <shay.katz-zamir@xxxxxxxxx> Cc: Serge Ayoun <serge.ayoun@xxxxxxxxx> Jarkko Sakkinen (5): x86/sgx: Document permission handling better x86/sgx: Use memchr_inv() in sgx_validate_secinfo() x86/sgx: Make sgx_validate_secinfo() more readable x86/sgx: Validate TCS permssions in sgx_validate_secinfo() x86/sgx: Rename vm_prot_bits as max_vm_flags arch/x86/kernel/cpu/sgx/driver/ioctl.c | 36 +++++++++++++++++++------- arch/x86/kernel/cpu/sgx/encl.c | 14 +++++----- arch/x86/kernel/cpu/sgx/encl.h | 4 +-- 3 files changed, 35 insertions(+), 19 deletions(-) -- 2.20.1