linux/arch/x86/kernel/cpu/sgx
Kai Huang 4692bc775d x86/sgx: Add missing xa_destroy() when virtual EPC is destroyed
xa_destroy() needs to be called to destroy a virtual EPC's page array
before calling kfree() to free the virtual EPC. Currently it is not
called so add the missing xa_destroy().

Fixes: 540745ddbc ("x86/sgx: Introduce virtual EPC for use by KVM guests")
Signed-off-by: Kai Huang <kai.huang@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Dave Hansen <dave.hansen@intel.com>
Tested-by: Yang Zhong <yang.zhong@intel.com>
Link: https://lkml.kernel.org/r/20210615101639.291929-1-kai.huang@intel.com
2021-06-15 18:03:45 +02:00
..
driver.c x86/sgx: Move provisioning device creation out of SGX driver 2021-04-06 19:18:46 +02:00
driver.h x86/sgx: Add SGX_IOC_ENCLAVE_PROVISION 2020-11-18 18:02:50 +01:00
encl.c x86/sgx: Expose SGX architectural definitions to the kernel 2021-04-06 09:43:41 +02:00
encl.h x86/sgx: Wipe out EREMOVE from sgx_free_epc_page() 2021-03-26 22:51:23 +01:00
encls.h x86/sgx: Add encls_faulted() helper 2021-04-06 09:43:42 +02:00
ioctl.c x86/sgx: Move provisioning device creation out of SGX driver 2021-04-06 19:18:46 +02:00
main.c Trivial cleanups and fixes all over the place. 2021-04-26 09:25:47 -07:00
Makefile x86/sgx: Introduce virtual EPC for use by KVM guests 2021-04-06 09:43:17 +02:00
sgx.h x86/sgx: Add helper to update SGX_LEPUBKEYHASHn MSRs 2021-04-06 09:43:42 +02:00
virt.c x86/sgx: Add missing xa_destroy() when virtual EPC is destroyed 2021-06-15 18:03:45 +02:00