diff options
author | 2023-06-05 11:07:13 +0000 | |
---|---|---|
committer | 2023-06-08 07:16:48 -0700 | |
commit | 76e22fdc2c2658ab595cdda7368d43d2dc16f3f4 (patch) | |
tree | 712e2ae53164e8deed7f2247ba2758f32c0c7388 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | riscv: signal: Report signal frame size to userspace via auxv (diff) | |
download | wireguard-linux-76e22fdc2c2658ab595cdda7368d43d2dc16f3f4.tar.xz wireguard-linux-76e22fdc2c2658ab595cdda7368d43d2dc16f3f4.zip |
riscv: signal: validate altstack to reflect Vector
Some extensions, such as Vector, dynamically change footprint on a
signal frame, so MINSIGSTKSZ is no longer accurate. For example, an
RV64V implementation with vlen = 512 may occupy 2K + 40 + 12 Bytes of a
signal frame with the upcoming support. And processes that do not
execute any vector instructions do not need to reserve the extra
sigframe. So we need a way to guard the allocation size of the sigframe
at process runtime according to current status of V.
Thus, provide the function sigaltstack_size_valid() to validate its size
based on current allocation status of supported extensions.
Signed-off-by: Andy Chiu <andy.chiu@sifive.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Heiko Stuebner <heiko.stuebner@vrull.eu>
Tested-by: Heiko Stuebner <heiko.stuebner@vrull.eu>
Link: https://lore.kernel.org/r/20230605110724.21391-17-andy.chiu@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions