Commit Graph
1 Commits
Author SHA1 Message Date
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 <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
2020-07-30 11:37:39 -07:00