diff options
| author | Reinette Chatre <[email protected]> | 2022-05-10 18:09:04 +0000 |
|---|---|---|
| committer | Dave Hansen <[email protected]> | 2022-07-07 17:13:04 +0000 |
| commit | 50b822e4b785948ed663c89c84e124fc8c099c9b (patch) | |
| tree | b4273af9f618169fc41ec0a9add3d49abc900e22 /drivers/fpga/machxo2-spi.c | |
| parent | selftests/sgx: Test complete changing of page type flow (diff) | |
| download | kernel-50b822e4b785948ed663c89c84e124fc8c099c9b.tar.gz kernel-50b822e4b785948ed663c89c84e124fc8c099c9b.zip | |
selftests/sgx: Test faulty enclave behavior
Removing a page from an initialized enclave involves three steps:
first the user requests changing the page type to SGX_PAGE_TYPE_TRIM
via an ioctl(), on success the ENCLU[EACCEPT] instruction needs to be
run from within the enclave to accept the page removal, finally the
user requests page removal to be completed via an ioctl(). Only after
acceptance (ENCLU[EACCEPT]) from within the enclave can the kernel
remove the page from a running enclave.
Test the behavior when the user's request to change the page type
succeeds, but the ENCLU[EACCEPT] instruction is not run before the
ioctl() requesting page removal is run. This should not be permitted.
Signed-off-by: Reinette Chatre <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Acked-by: Jarkko Sakkinen <[email protected]>
Link: https://lkml.kernel.org/r/fa5da30ebac108b7517194c3038b52995602b996.1652137848.git.reinette.chatre@intel.com
Diffstat (limited to 'drivers/fpga/machxo2-spi.c')
0 files changed, 0 insertions, 0 deletions
