diff options
author | Jarkko Sakkinen <jarkko@kernel.org> | 2020-11-13 00:01:33 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-11-18 18:04:11 +0100 |
commit | 947c6e11fa4310b31c10016ae9816cdca3f1694e (patch) | |
tree | b29f0013dff7deaa30df6c5a254b4503eb633a22 /Documentation/x86/index.rst | |
parent | 1728ab54b4be94aed89276eeb8e750a345659765 (diff) |
x86/sgx: Add ptrace() support for the SGX driver
Enclave memory is normally inaccessible from outside the enclave. This
makes enclaves hard to debug. However, enclaves can be put in a debug
mode when they are being built. In that mode, enclave data *can* be read
and/or written by using the ENCLS[EDBGRD] and ENCLS[EDBGWR] functions.
This is obviously only for debugging and destroys all the protections
present with normal enclaves. But, enclaves know their own debug status
and can adjust their behavior appropriately.
Add a vm_ops->access() implementation which can be used to read and write
memory inside debug enclaves. This is typically used via ptrace() APIs.
[ bp: Massage. ]
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Tested-by: Jethro Beekman <jethro@fortanix.com>
Link: https://lkml.kernel.org/r/20201112220135.165028-23-jarkko@kernel.org
Diffstat (limited to 'Documentation/x86/index.rst')
0 files changed, 0 insertions, 0 deletions