diff options
author | Scott Constable <scott.d.constable@intel.com> | 2020-04-03 10:58:38 -0700 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2020-06-24 09:31:04 -0700 |
commit | 6a4589599d74cae8c4ac7b0ff7ae14aeeb2f988b (patch) | |
tree | af0c7ad23b9a891eee478e9bb7fede130259fe75 /lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/main.cpp | |
parent | 071acfdd4694bb2b94efe6122128c5e7f840ce46 (diff) | |
download | bcm5719-llvm-6a4589599d74cae8c4ac7b0ff7ae14aeeb2f988b.tar.gz bcm5719-llvm-6a4589599d74cae8c4ac7b0ff7ae14aeeb2f988b.zip |
[X86] Add RET-hardening Support to mitigate Load Value Injection (LVI)
Adding a pass that replaces every ret instruction with the sequence:
pop <scratch-reg>
lfence
jmp *<scratch-reg>
where <scratch-reg> is some available scratch register, according to the
calling convention of the function being mitigated.
Differential Revision: https://reviews.llvm.org/D75935
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/main.cpp')
0 files changed, 0 insertions, 0 deletions