tag v23-rc2 Tagger: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx> Date: Thu Oct 10 14:33:07 2019 +0300 x86/sgx: v23-rc1 patch set * Return -EIO instead of -ECANCELED when ptrace() fails to read a TCS page. * In the reclaimer, pin page before ENCLS[EBLOCK] because pinning can fail (because of OOM) even in legit behaviour and after EBLOCK the reclaiming flow can be only reverted by killing the whole enclave. * Fixed SGX_ATTR_RESERVED_MASK. Bit 7 was marked as reserved while in fact it should have been bit 6 (Table 37-3 in the SDM). * Return -EPERM from SGX_IOC_ENCLAVE_INIT when ENCLS[EINIT] returns an SGX error code. * In v22 __uaccess_begin() was used to pin the source page in __sgx_encl_add_page(). Switch to get_user_pages() in order to avoid deadlock (mmap_sem might get locked twice in the same thread). -----BEGIN PGP SIGNATURE----- iJYEABYIAD4WIQRE6pSOnaBC00OEHEIaerohdGur0gUCXZ8XTyAcamFya2tvLnNh a2tpbmVuQGxpbnV4LmludGVsLmNvbQAKCRAaerohdGur0phXAP9QPYcpyUTSO9hk sG/pV7vsIjS4lO6pxBCgWCtg3/ZkvAEApLCu7mFvyZs3rDcbOlQA+nQiVv+rUwzu tsYmW2YsgQ4= =VeL3 -----END PGP SIGNATURE----- /Jarkko