Webcentive RISC-V Reference

Zicfiss instructions

Shadow Stack

The Zicfiss extension introduces a shadow stack to enforce backward-edge control-flow integrity.

The extension provides instructions to store and load the link register to and from the shadow stack, check the integrity of the return address, read the shadow stack pointer, and perform atomic swaps on shadow stack locations.

Extension description from riscv-unified-db, reformatted.

Specification chapter: The RISC-V Instruction Set Manual, src/unpriv/cfi.adoc.

Instructions (9)

MnemonicName (riscv-unified-db)XLEN
c.sspopchk.x5 (pseudo-op)RV32 and RV64
c.sspush.x1 (pseudo-op)RV32 and RV64
ssamoswap.dNo synopsis availableRV32 and RV64
ssamoswap.wNo synopsis availableRV32 and RV64
sspopchk.x1 (pseudo-op)RV32 and RV64
sspopchk.x5 (pseudo-op)RV32 and RV64
sspush.x1 (pseudo-op)RV32 and RV64
sspush.x5 (pseudo-op)RV32 and RV64
ssrdpRead ssp into a Register (pseudo-op)RV32 and RV64