[PATCH] riscv: cfi: reject unknown flags in PR_SET_CFI
Paul Walmsley
pjw at kernel.org
Thu Jun 4 15:40:31 PDT 2026
Hi,
On Mon, 18 May 2026, Richard Patel wrote:
> prctl(PR_SET_CFI,PR_CFI_BRANCH_LANDING_PADS) silently ignored
> unknown control values. Only PR_CFI_{ENABLE,DISABLE,LOCK} should
> be permitted.
<
> This is a uABI breaking change (fails previously accepted bits
> with EINVAL).
Thanks for the patch. However, I'm not convinced that this actually
breaks anything. The behavior of the interface changes when unknown flags
are specified, but I'm not aware of anything that relies on this specific
behavior.
Does that match your understanding?
- Paul
More information about the linux-riscv
mailing list