What happens if the related CFI feature is inactive for LPAD?
LPAD executes as a no-op.
Zicfilp landing-pad instruction; validates indirect jump/call targets when forward-edge CFI is enabled.
Beginner view: with forward-edge CFI enabled, indirect calls/jumps must land on LPAD or raise a software-check exception. LPAD can carry a 20-bit label; when Zicfilp is inactive it is compatible as a no-op.
LPAD belongs to the RISC-V Zicfilp forward-edge CFI instructions; behavior depends on whether Zicfilp is enabled and on environment configuration.
Understand this scenario with real code like «lpad 0».
Understand this scenario with real code like «lpad 0».
Understand this scenario with real code like «lpad 0».
LPAD executes as a no-op.
The Control-Flow Integrity chapter of the RISC-V Unprivileged ISA defines LPAD, SSPUSH, SSPOPCHK, SSRDP, and SSAMOSWAP.