RISC-V ISA Explorer · Security & CFI

Zicfiss: CFI Shadow Stacks

Ratified 2024-07 · version 1.0.0

Keeps return addresses on a protected shadow stack and checks them on return, blocking stack-smashing ROP.

Typical use: Backward-edge CFI (returns)

Specification

Open Zicfiss in the explorer

Dependencies

Requires

Instructions (3)

MnemonicNameEncodingMatchMask
SSAMOSWAP.D01001------------011-----01011110x4800302f0xf800707f
SSAMOSWAP.W01001------------010-----01011110x4800202f0xf800707f
SSRDPRead ssp into a Register11001101110000000100-----11100110xcdc040730xfffff07f

Control and status registers (1)

NameAddressModeDescription
ssp0x11UShadow Stack Pointer