Guo Ren f2c9699f65
riscv: Add STACKPROTECTOR supported
The -fstack-protector & -fstack-protector-strong features are from
gcc. The patch only add basic kernel support to stack-protector
feature and some arch could have its own solution such as
ARM64_PTR_AUTH.

After enabling STACKPROTECTOR and STACKPROTECTOR_STRONG, the .text
size is expanded from  0x7de066 to 0x81fb32 (only 5%) to add canary
checking code.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2020-07-30 11:37:39 -07:00
..
2020-03-31 11:28:30 -07:00
2020-03-31 11:28:30 -07:00
2020-07-30 11:37:34 -07:00
2020-05-18 11:38:08 -07:00
2020-06-09 19:11:24 -07:00
2020-05-18 11:38:10 -07:00
2020-06-09 09:39:13 -07:00
2020-07-30 11:37:39 -07:00
2020-01-22 13:09:58 -08:00
2019-11-17 15:17:39 -08:00
2020-07-30 11:37:33 -07:00
2020-06-09 09:39:13 -07:00
2020-07-30 11:37:21 -07:00