Files
Paweł Marczewski 347cdab962 [Pal/Linux-SGX] Fix stack unwinding on enclave exit
A previous change in LibOS started storing fake syscall return
address in R14. This broke stack unwinding when the stack
contained both LibOS syscall and SGX OCALL, because we had no CFI
directives for recovering register values except for RBP, RSP and
RIP, and the value of R14 was lost.

This change adds proper CFI to enclave exit code, by making sure
callee-saved registers can be recovered.

Signed-off-by: Paweł Marczewski <pawel@invisiblethingslab.com>
2021-02-19 20:40:50 +01:00
..