[PATCH] D81506: [X86] Automatically harden inline assembly RET instructions against Load Value Injection (LVI)

Matthew Riley via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 10 16:08:16 PDT 2020


mattdr accepted this revision.
mattdr added a comment.

LGTM, one question about source locations



================
Comment at: llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp:3199
+                                          /*BaseReg=*/Basereg, /*IndexReg=*/0,
+                                          /*Scale=*/1, SMLoc{}, SMLoc{}, 0);
+    ShlInst.setOpcode(X86::SHL64mi);
----------------
Seems like this will have implications for debugging. Can we copy the SMLoc from the original instruction, for this and for the other MCInsts we're creating?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81506/new/

https://reviews.llvm.org/D81506





More information about the llvm-commits mailing list