Open hermann-o opened 4 days ago
Yeah, we assume that cs
can't change while implementing IRET
-- this is a known limitation that Gramine would't support otherwise. Pls see some original discussions here: https://github.com/gramineproject/gramine/pull/1166.
Description of the problem
In debug builds of gramine, IRET crashes the app. In my case, this looks like:
Here's some more debug info (adding not much insight though..)
Here's the assertion:
It appears that IRET is not emulated entirely i wonder if this can have implications for my code running in release build. I tried to create little console app to showcase the issue, but wasn't able to reproduce it: Same source code, no IRET
Steps to reproduce
Expected results
app does not crash
Actual results
app crashes with assert failed ../pal/src/host/linux-sgx/pal_exception.c:157 cs == cur_cs
Gramine commit hash
93be2c23164f89def3afdc3d049bf6dd3e872401