~/talk

Control Flow Integrity on RISC-V Linux

links:none on file
slides:none on file

Hardware-backed CFI for RISC-V uses a landing‑pad instruction plus a hardware shadow stack and a new Z CFI LP extension; userland patches (v3) and kernel RFCs land feature discovery and activation, and a rootfs boots with CFI enabled. Tooling uses clang/LLVM, qemu, and md5 hashes of function signatures to measure label collisions: 20‑bit labels give ~12% loss for C++ and ~3% for C. Measured code size growth ≈1.99% and indirect gadget reduction 99.43%; kernel enablement lands in ~12 patches.

AI-written summary · about

  1. 0:00Control Flow Integrity intro
  2. 1:26What is Control Flow Integrity and its importance
  3. 3:11Memory safety and hijacking
  4. 7:30RISC-V basics and calling convs
  5. 10:01RISC-V instruction formats
  6. 13:19Indirect control transfers
  7. 18:15ZiCFI LP extension
  8. 21:48ZiCFI SS extension
  9. 26:41Shadow stack rules
  10. 28:27CFI differences on RISC-V
  11. 30:57CFI in Linux user mode
  12. 32:44Label collision and performance
  13. 34:50Resources and future
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.