[llvm-bugs] [Bug 47341] New: Support -mstack-protector-guard=sysreg for arm64 and riscv
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Aug 28 00:04:58 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47341
Bug ID: 47341
Summary: Support -mstack-protector-guard=sysreg for arm64 and
riscv
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: keescook at chromium.org
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
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
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0a1213fa7432778b71a1c0166bf56660a3aab030
Here are discussions on the start of riscv support:
https://lore.kernel.org/lkml/CAJF2gTTr_ENhGRmjqNbGBhEc8y4D3YSqAResvwHuB1ykemKTUw@mail.gmail.com/
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200828/4df611ab/attachment.html>
More information about the llvm-bugs
mailing list