Three bug fixes in the add page flow, along with a related enhancement. Note, patch 4/4 is effectively a revert. Sean Christopherson (4): x86/sgx: Pass EADD the kernel's virtual address for the source page x86/sgx: Check the validity of the source page address for EADD x86/sgx: Fix EEXTEND error handling x86/sgx: Drop mmap_sem before EEXTENDing an enclave page arch/x86/kernel/cpu/sgx/ioctl.c | 46 ++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 21 deletions(-) -- 2.22.0