[PATCH for_v22 00/11] x86/sgx: Bug fixes for v22

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A variety of bug fixes, some for issues reported by Shay, the rest for
issues found by inspection.  Sent as a bundle because most of the patches
conflict in one way or another, and so that others can apply on master to
get a stable build.

Sean Christopherson (11):
  x86/sgx: Fix an SECS collision with enclave page at VA=0
  x86/sgx: Fix incorrect NULL pointer check
  x86/sgx: Return '0' when sgx_ioc_enclave_set_attribute() succeeds
  x86/sgx: x86/sgx: Require EADD destination to be page aligned
  x86/sgx: Require EADD source to be page aligned
  x86/sgx: Check the bounds of the enclave address against ELRANGE
  x86/sgx: Check that enclave is created at beginning of EADD/EINIT
    ioctl
  x86/sgx: Do not free enclave resources on redundant ECREATE
  x86/sgx: Refactor error handling for user of sgx_encl_grow()
  x86/sgx: Call sgx_encl_grow() with the enclave's lock held
  x86/sgx: Shrink the enclave if ECREATE/EADD fails

 arch/x86/kernel/cpu/sgx/driver/ioctl.c | 143 +++++++++++++++----------
 arch/x86/kernel/cpu/sgx/encl.c         |  14 ++-
 2 files changed, 97 insertions(+), 60 deletions(-)

-- 
2.22.0




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux