mbox series

[0/5] x86/sgx: Improve permission handing

Message ID 20190819152544.7296-1-jarkko.sakkinen@linux.intel.com (mailing list archive)
Headers show
Series x86/sgx: Improve permission handing | expand

Message

Jarkko Sakkinen Aug. 19, 2019, 3:25 p.m. UTC
Refine the naming, documentation and validation of the page permissions.
silent behaviour to occur.

Cc: Sean Christopherson <sean.j.christpherson@intel.com>
Cc: Shay Katz-zamir <shay.katz-zamir@intel.com>
Cc: Serge Ayoun <serge.ayoun@intel.com>

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(-)