On Thu, 2019-08-22 at 10:39 +0000, Ayoun, Serge wrote: > > + if ((page_type != SGX_SECINFO_REG && > > + page_type != SGX_SECINFO_TCS && > > + page_type != SGX_SECINFO_TRIM)) > > + return -EINVAL; > > sgx_validate_secinfo() is called via eadd ioctl. Eadd will fail with > TRIM page type, so you probably need to remove it from the if > sgx2.0 does not change this behavior Thanks! Removed. /Jarkko