Closed
Description
Bugzilla Link | 47341 |
Version | trunk |
OS | Linux |
Blocks | #4440 |
CC | @efriedma-quic,@nickdesaulniers,@zygoloid,@stephenhines |
Extended Description
The Linux kernel uses this for having a per-thread stack canary. Implementing this for both arm64 and riscv is desired.
For example, gcc's arm64 support is used like this in the kernel:
-mstack-protector-guard=sysreg
-mstack-protector-guard-reg=sp_el0
-mstack-protector-guard-offset=0
Here are discussions on the start of riscv support:
https://lore.kernel.org/lkml/CAJF2gTTr_ENhGRmjqNbGBhEc8y4D3YSqAResvwHuB1ykemKTUw@mail.gmail.com/