riscv: alternative: Also patch the compat vDSO

The vDSO for compat processes can also contain alternative entries.

Patch those, too.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://patch.msgid.link/20260630-riscv-vdso32-alternative-v1-3-a32fd89b7b1c@linutronix.de
Signed-off-by: Paul Walmsley <pjw@kernel.org>
This commit is contained in:
Thomas Weißschuh 2026-08-07 19:24:34 -06:00 committed by Paul Walmsley
parent 63aecaba41
commit 42cd1e1fc8

View File

@ -202,6 +202,11 @@ void __init apply_boot_alternatives(void)
apply_vdso_alternatives(vdso_cfi_start,
__vdso_alternatives_start_cfi_offset,
__vdso_alternatives_end_cfi_offset);
if (IS_ENABLED(CONFIG_COMPAT))
apply_vdso_alternatives(compat_vdso_start,
compat__vdso_alternatives_start_offset,
compat__vdso_alternatives_end_offset);
}
/*