aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorJinjie Ruan <[email protected]>2024-07-20 22:40:58 +0800
committerHuacai Chen <[email protected]>2024-07-20 22:40:58 +0800
commita0f7085f6a63f19f83f2644ce2da49a8d3cf7c0f (patch)
tree646a6b07f4a6de409ee4b11bb129f8d84ccd3197 /lib/test_fortify/write_overflow-strncpy-src.c
parent08f417db702c5b05150b3851af7186fee96ddd46 (diff)
LoongArch: Add RANDOMIZE_KSTACK_OFFSET support
Add support of kernel stack offset randomization while handling syscall, the offset is defaultly limited by KSTACK_OFFSET_MAX(). In order to avoid triggering stack canaries (due to __builtin_alloca()) and slowing down the entry path, use __no_stack_protector attribute to disable stack protector for do_syscall() at function level. With this patch, the REPORT_STACK test show that: `loongarch64 bits of stack entropy: 7` Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Jinjie Ruan <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions