[PATCH] D80964: [X86] Add an Unoptimized Load Value Injection (LVI) Load Hardening Pass

Scott Constable via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 1 17:21:59 PDT 2020


sconstab created this revision.
sconstab added reviewers: nikic, craig.topper, mattdr.
Herald added subscribers: jfb, hiraditya.
Herald added a project: LLVM.
sconstab added a comment.

I should add that I am submitting this patch as an alternative to D80064 <https://reviews.llvm.org/D80064>. That revision invisibly disables the mitigation at `-O0`, which may not be secure for some users.


@nikic raised an issue on D75936 <https://reviews.llvm.org/D75936> that the added complexity to the O0 pipeline was causing noticeable slowdowns for `-O0` builds. This patch addresses the issue by adding a pass with equal security properties, but without any optimizations (and more importantly, without the need for expensive analysis dependencies).


https://reviews.llvm.org/D80964

Files:
  llvm/lib/Target/X86/X86.h
  llvm/lib/Target/X86/X86LoadValueInjectionLoadHardening.cpp
  llvm/lib/Target/X86/X86TargetMachine.cpp
  llvm/test/CodeGen/X86/O0-pipeline.ll
  llvm/test/CodeGen/X86/lvi-hardening-loads.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80964.267763.patch
Type: text/x-patch
Size: 9054 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200602/ebaaae7e/attachment-0001.bin>


More information about the llvm-commits mailing list