riscv / riscv-cfi

This repo holds the work area and revisions of the RISC-V CFI (Shadow Stack and Landing Pads) specifications. CFI defines the privileged and unprivileged ISA extensions that can be used by privileged and unprivileged programs to protect the integrity of their control-flow.

Home Page:https://jira.riscv.org/browse/RVG-80

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unwinding

kito-cheng opened this issue · comments

Code for stack unwinding is using sspinc to update ssp, does it possible to use csrw for updating ssp directly?

It is also possible to write the ssp directly but the unwind is recommended to follow the structure outlined to guard against unwinding past the bounds of the current shadow stack to another shadow stack of the program.

Thanks for explaining :)