Intel Confidential Computing
Discussion board focused on Intel Confidential Computing technologies and how they can protect data and AI security, privacy, and sovereignty.

SSA and TCS Data Structure in SGX

SAM_R_2
Beginner
3,140 Views

Hi,

I want to advance RIP to ignore the faulting instruction, but I can't find a way to access TCS or SSA to change the stored RIP. Could you let me know how can I access such data structures available in SGX?

-Thanks

0 Kudos
1 Solution
Surenthar_S_Intel
3,140 Views

Hi Sam,

The exception handler has one parameter, a pointer to sgx_exception_info_t.

The sgx_cpu_context_t part of this parameter is loaded with the CPU registers from the SSA frame. 

After the exception handler returns and only if it returns EXCEPTION_CONTINUE_EXECUTION, which indicates the exception has been handled, the updated CPU context values will be stored back into the SSA frame.

Thanks and Regards,
Surenthar Selvaraj

View solution in original post

0 Kudos
2 Replies
Surenthar_S_Intel
3,141 Views

Hi Sam,

The exception handler has one parameter, a pointer to sgx_exception_info_t.

The sgx_cpu_context_t part of this parameter is loaded with the CPU registers from the SSA frame. 

After the exception handler returns and only if it returns EXCEPTION_CONTINUE_EXECUTION, which indicates the exception has been handled, the updated CPU context values will be stored back into the SSA frame.

Thanks and Regards,
Surenthar Selvaraj

0 Kudos
SAM_R_2
Beginner
3,141 Views

Thanks Surenthar

0 Kudos
Reply