diff options
author | Song Shuai <[email protected]> | 2023-11-09 21:37:51 +0800 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2024-01-24 17:24:24 -0800 |
commit | 05d450aabd7386246c5aafc341fe9febe5855967 (patch) | |
tree | a1634b1c6849df1e263bdf3fcceff904d9d14fbb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dded618c07fd786f781c3f3529d8253e31e2c7d6 (diff) |
riscv: Support RANDOMIZE_KSTACK_OFFSET
Inspired from arm64's implement -- commit 70918779aec9
("arm64: entry: Enable random_kstack_offset support")
Add support of kernel stack offset randomization while handling syscall,
the offset is defaultly limited by KSTACK_OFFSET_MAX() (i.e. 10 bits).
In order to avoid trigger stack canaries (due to __builtin_alloca) and
slowing down the entry path, use __no_stack_protector attribute to
disable stack protector for do_trap_ecall_u() at the function level.
Acked-by: Palmer Dabbelt <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Signed-off-by: Song Shuai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions