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)
Open Zicfiss in the explorerDependencies
Requires
Instructions (3)
| Mnemonic | Name | Encoding | Match | Mask |
|---|---|---|---|---|
SSAMOSWAP.D | 01001------------011-----0101111 | 0x4800302f | 0xf800707f | |
SSAMOSWAP.W | 01001------------010-----0101111 | 0x4800202f | 0xf800707f | |
SSRDP | Read ssp into a Register | 11001101110000000100-----1110011 | 0xcdc04073 | 0xfffff07f |
Control and status registers (1)
| Name | Address | Mode | Description |
|---|---|---|---|
ssp | 0x11 | U | Shadow Stack Pointer |