[PATCH v24 21/28] riscv: kernel command line option to opt out of user cfi

Randy Dunlap rdunlap at infradead.org
Thu Dec 4 14:13:49 PST 2025



On 12/4/25 12:04 PM, Deepak Gupta wrote:
> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> index 6c42061ca20e..453127ef8746 100644
> --- a/Documentation/admin-guide/kernel-parameters.txt
> +++ b/Documentation/admin-guide/kernel-parameters.txt
> @@ -6453,6 +6453,14 @@
>  			replacement properties are not found. See the Kconfig
>  			entry for RISCV_ISA_FALLBACK.
>  
> +	riscv_nousercfi=
> +		all	Disable user cfi ABI to userspace even if cpu extension

			                                              extensions

> +			are available.
> +		bcfi	Disable user backward cfi ABI to userspace even if
> +			shadow stack extension is available.
> +		fcfi	Disable user forward cfi ABI to userspace even if landing
> +			pad extension is available.
> +
>  	ro		[KNL] Mount root device read-only on boot
>  
>  	rodata=		[KNL,EARLY]

-- 
~Randy




More information about the linux-riscv mailing list