diff options
author | serge_sans_paille <sguelton@redhat.com> | 2019-09-09 16:59:34 +0200 |
---|---|---|
committer | serge-sans-paille <sguelton@redhat.com> | 2020-02-07 10:56:15 +0100 |
commit | 39f50da2a357a8f685b3540246c5d762734e035f (patch) | |
tree | 11957dfed853c94d50dc5c3274eb66293f378cc2 /lldb/packages/Python/lldbsuite/test | |
parent | 56d81d4580940377a0e3963c4920e70d62eb5620 (diff) | |
download | llvm-39f50da2a357a8f685b3540246c5d762734e035f.zip llvm-39f50da2a357a8f685b3540246c5d762734e035f.tar.gz llvm-39f50da2a357a8f685b3540246c5d762734e035f.tar.bz2 |
Support -fstack-clash-protection for x86
Implement protection against the stack clash attack [0] through inline stack
probing.
Probe stack allocation every PAGE_SIZE during frame lowering or dynamic
allocation to make sure the page guard, if any, is touched when touching the
stack, in a similar manner to GCC[1].
This extends the existing `probe-stack' mechanism with a special value `inline-asm'.
Technically the former uses function call before stack allocation while this
patch provides inlined stack probes and chunk allocation.
Only implemented for x86.
[0] https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt
[1] https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00556.html
Differential Revision: https://reviews.llvm.org/D68720
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions