Skip to content

Commit 564fc8e

Browse files
yong-xuanpalmer-dabbelt
authored andcommitted
riscv: signal: fix signal_minsigstksz
The init_rt_signal_env() funciton is called before the alternative patch is applied, so using the alternative-related API to check the availability of an extension within this function doesn't have the intended effect. This patch reorders the init_rt_signal_env() and apply_boot_alternatives() to get the correct signal_minsigstksz. Fixes: e92f469 ("riscv: signal: Report signal frame size to userspace via auxv") Signed-off-by: Yong-Xuan Wang <[email protected]> Reviewed-by: Zong Li <[email protected]> Reviewed-by: Andy Chiu <[email protected]> Reviewed-by: Alexandre Ghiti <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent aa49bc2 commit 564fc8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kernel/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ void __init setup_arch(char **cmdline_p)
322322

323323
riscv_init_cbo_blocksizes();
324324
riscv_fill_hwcap();
325-
init_rt_signal_env();
326325
apply_boot_alternatives();
326+
init_rt_signal_env();
327327

328328
if (IS_ENABLED(CONFIG_RISCV_ISA_ZICBOM) &&
329329
riscv_isa_extension_available(NULL, ZICBOM))

0 commit comments

Comments
 (0)