linux/arch/riscv
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: e92f469b07 ("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
..
boot RISC-V Patches for the 6.14 Merge Window, Part 1 2025-01-31 15:13:25 -08:00
configs RISC-V Patches for the 6.14 Merge Window, Part 1 2025-01-31 15:13:25 -08:00
crypto
errata Merge patch series "riscv: Add support for xtheadvector" 2025-01-18 12:33:43 -08:00
include riscv/futex: sign extend compare value in atomic cmpxchg 2025-02-14 13:06:31 -08:00
kernel riscv: signal: fix signal_minsigstksz 2025-02-14 13:06:50 -08:00
kvm RISC-V: KVM: Add new exit statstics for redirected traps 2024-12-30 14:01:02 +05:30
lib lib/crc32: expose whether the lib is really optimized at runtime 2024-12-01 17:23:01 -08:00
mm RISC-V Patches for the 6.14 Merge Window, Part 1 2025-01-31 15:13:25 -08:00
net asm-generic: introduce text-patching.h 2024-11-07 14:25:15 -08:00
purgatory Merge patch series "riscv: Improve KASAN coverage to fix unit tests" 2024-09-19 01:10:44 -07:00
tools
Kbuild
Kconfig CRC updates for 6.14 2025-01-22 19:55:08 -08:00
Kconfig.debug
Kconfig.errata riscv: Add ghostwrite vulnerability 2025-01-18 12:33:39 -08:00
Kconfig.socs riscv: add SpacemiT SoC family Kconfig support 2025-01-17 07:53:51 +08:00
Kconfig.vendor riscv: vector: Use vlenb from DT for thead 2025-01-18 12:33:29 -08:00
Makefile Kbuild updates for v6.13 2024-11-30 13:41:50 -08:00
Makefile.postlink kbuild: Strip runtime const RELA sections correctly 2025-02-01 04:28:05 +09:00