[llvm-dev] Enable Safe Stack for Baremetal?
Zhaoshi Zheng via llvm-dev
llvm-dev at lists.llvm.org
Mon Mar 16 17:52:56 PDT 2020
I also looked at shadow call stack and got myself very confused:
Why does is require common sanitizer support? so that it can be checked by clang that the only valid target is AArch64 when -fsanitize=shadow-call-stack is present?
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Zhaoshi Zheng via llvm-dev
Sent: Monday, March 16, 2020 09:52
To: llvm-dev at lists.llvm.org
Subject: [EXT] [llvm-dev] Enable Safe Stack for Baremetal?
I'm assessing the work required to enable Safe Stack for a bare metal target.
Looking at compiler-rt/lib/safestack/, the current implementation depends on thread support for mutex & storing unsafe stack pointer.
It also need several system calls: gettid, tgkill, mmap, munmap, mprotect.
Our target doesn't has all underlying support it needs. My question is: what's the minimum requirement to port Safe Stack to bare metal?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev