jovanbulck / sgx-step

A practical attack framework for precise enclave execution control
GNU General Public License v3.0
441 stars 84 forks source link

Support new upstream SGX driver in Linux kernels >5.11 #39

Closed jovanbulck closed 2 years ago

jovanbulck commented 3 years ago

SGX driver has finally been upstreamed into recent Linux kernels, meaning the dependence on linux-sgx-driver (/dev/isgx) could eventually go, see:

https://lwn.net/Articles/840129/ https://www.kernel.org/doc/html/latest/x86/sgx.html

Should check how dev/sgx-step relies on the legacy /dev/isgx driver and ensure compatibility with the new upstreamed /dev/sgx_enclave driver (probably want to support both drivers for now).

jovanbulck commented 2 years ago

Some notes for future reference:

The driver /dev/sgx-step currently only relies on the /dev/isgx legacy driver in the following ways:

edit for future reference: both requirements can probably be fulfilled without relying on driver specifics using standard Linux interfaces under /proc/self/maps and /proc/self/mem