Zhaoshi Zheng via llvm-dev
2020-Mar-16 03:02 UTC
[llvm-dev] Enable Safe Stack for Baremetal?
Hello, 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? Thanks, Zhaoshi -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200316/54b80762/attachment.html>
Zhaoshi Zheng via llvm-dev
2020-Mar-16 16:52 UTC
[llvm-dev] Enable Safe Stack for Baremetal?
Hello, 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? Thanks, Zhaoshi -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200316/d89204fb/attachment.html>
Zhaoshi Zheng via llvm-dev
2020-Mar-17 00:52 UTC
[llvm-dev] Enable Safe Stack for Baremetal?
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? Thanks, Zhaoshi 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? Hello, 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? Thanks, Zhaoshi -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200317/1d8bad78/attachment.html>