Landing: db8f7949a6b0

Project / Subsystem

gcc / risc-v

Date

2026-06-10

Author

Monk Chiang

Commit

db8f7949a6b074d7bdd1bf29801dd11eb967973f

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
risc-v
patch_id
commit_hash
db8f7949a6b074d7bdd1bf29801dd11eb967973f
source_type
github
headline
GCC adds Zicfilp landing pad protection for setjmp and indirect returns
tldr
GCC now inserts Zicfilp landing pad protection at call sites for `setjmp` and functions with an `indirect_return` attribute, preventing control-flow manipulati…
author
Monk Chiang
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • risc-v
  • zicfilp
  • security
  • cfi
  • attributes
discussion_id_link
bugzilla_pr
date
2026-06-10T00:00:00.000Z

This update enhances Control-Flow Integrity (CFI) for the RISC-V Zicfilp extension by adding landing pad (LPAD) protection. It specifically targets setjmp and functions marked with a new indirect_return attribute, which may return to unexpected addresses. The compiler now emits a special instruction sequence at these call sites to safeguard against malicious modifications of the return address, though indirect calls to such functions remain unprotected.