diff options
author | Reinette Chatre <[email protected]> | 2022-05-12 14:50:58 -0700 |
---|---|---|
committer | Dave Hansen <[email protected]> | 2022-05-16 15:17:14 -0700 |
commit | 2154e1c11b7080aa19f47160bd26b6f39bbd7824 (patch) | |
tree | 50bc0573dea2972a133b154403f73839ec116d92 /lib/mpi/mpi-sub-ui.c | |
parent | 6bd429643cc265e94a9d19839c771bcc5d008fa8 (diff) |
x86/sgx: Mark PCMD page as dirty when modifying contents
Recent commit 08999b2489b4 ("x86/sgx: Free backing memory
after faulting the enclave page") expanded __sgx_encl_eldu()
to clear an enclave page's PCMD (Paging Crypto MetaData)
from the PCMD page in the backing store after the enclave
page is restored to the enclave.
Since the PCMD page in the backing store is modified the page
should be marked as dirty to ensure the modified data is retained.
Cc: [email protected]
Fixes: 08999b2489b4 ("x86/sgx: Free backing memory after faulting the enclave page")
Signed-off-by: Reinette Chatre <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Reviewed-by: Jarkko Sakkinen <[email protected]>
Tested-by: Haitao Huang <[email protected]>
Link: https://lkml.kernel.org/r/00cd2ac480db01058d112e347b32599c1a806bc4.1652389823.git.reinette.chatre@intel.com
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions