Yong-Xuan Wang 564fc8eb6f
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: e92f469b0771 ("riscv: signal: Report signal frame size to userspace via auxv")
Signed-off-by: Yong-Xuan Wang <yongxuan.wang@sifive.com>
Reviewed-by: Zong Li <zong.li@sifive.com>
Reviewed-by: Andy Chiu <andybnac@gmail.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20241220083926.19453-3-yongxuan.wang@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2025-02-14 13:06:50 -08:00
..
2024-11-20 11:34:10 -08:00
2025-01-18 12:33:39 -08:00
2024-12-26 10:50:02 -05:00
2024-07-12 08:55:31 -07:00
2024-11-07 14:25:15 -08:00
2024-09-03 07:57:55 -07:00
2024-09-03 07:57:55 -07:00
2025-02-14 13:06:50 -08:00
2025-02-14 13:06:44 -08:00
2025-01-20 10:25:11 -06:00