riscv: alternative: Also patch the CFI vDSO

The dedicated vDSO for CFI-enabled userspace can also contain
alternative entries.

Patch those, too.

Fixes: ccad8c1336 ("arch/riscv: add dual vdso creation logic and select vdso based on hw")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://patch.msgid.link/20260504-riscv-cfi-vdso-alternative-v1-4-bcdf3d37f62e@linutronix.de
Signed-off-by: Paul Walmsley <pjw@kernel.org>
This commit is contained in:
Thomas Weißschuh 2026-05-04 08:30:53 +02:00 committed by Paul Walmsley
parent 6386161abb
commit d3e0634787

View File

@ -205,6 +205,9 @@ void __init apply_boot_alternatives(void)
if (IS_ENABLED(CONFIG_MMU))
apply_vdso_alternatives(vdso_start);
if (IS_ENABLED(CONFIG_RISCV_USER_CFI))
apply_vdso_alternatives(vdso_cfi_start);
}
/*