What happens if the related CFI feature is inactive for SSRDP?
Zicfiss instructions degrade according to the official Zimop/Zcmop-compatible behavior and do not perform shadow-stack checks or updates.
Reads current ssp; returns zero when Zicfiss is not active according to Zimop behavior.
Beginner view: SSRDP lets runtimes, unwinders, or stack-switching code read ssp. If Zicfiss is inactive it can return zero, so software can use it to detect active shadow stacks.
SSRDP belongs to the RISC-V CFI instruction set; behavior depends on whether Zicfilp/Zicfiss is enabled and on environment configuration.
Understand this scenario with real code like «ssrdp t0».
Understand this scenario with real code like «ssrdp t0».
Understand this scenario with real code like «ssrdp t0».
Understand this scenario with real code like «ssrdp t0».
Zicfiss instructions degrade according to the official Zimop/Zcmop-compatible behavior and do not perform shadow-stack checks or updates.
The Control-Flow Integrity chapter of the RISC-V Unprivileged ISA defines LPAD, SSPUSH, SSPOPCHK, SSRDP, and SSAMOSWAP.