Skip to content

Add CFI document#499

Merged
XuJiandong merged 2 commits intonervosnetwork:cfifrom
XuJiandong:add-cfi-doc
Nov 25, 2025
Merged

Add CFI document#499
XuJiandong merged 2 commits intonervosnetwork:cfifrom
XuJiandong:add-cfi-doc

Conversation

@XuJiandong
Copy link
Collaborator

This PR adds documentation for the RISC-V CFI (Control Flow Integrity) extension implementation in CKB-VM. The document covers:

  • Background: Explains ROP/JOP attack threats and why CFI protection is critical for CKB smart contracts
  • Technical Design: Details the shadow stack mechanism and 5 new instructions (LPAD, SSPUSH, SSPOPCHK, SSRDP, SSAMOSWAP)
  • Implementation Challenges: Discusses CSR instructions, ELF activation flags, memory protection, and toolchain integration
  • Acceptance Criteria.

@XuJiandong XuJiandong merged commit 6580943 into nervosnetwork:cfi Nov 25, 2025
17 checks passed
mohanson pushed a commit to mohanson-fork/ckb-vm that referenced this pull request Dec 24, 2025
* docs: add documentation for RISC-V CFI extension
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant