[PATCH] D109157: [ARM] Mitigate the cve-2021-35465 security vulnurability.

Alexandros Lamprineas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 7 03:53:44 PDT 2021


labrinea updated this revision to Diff 371028.
labrinea added a comment.

Changes in this revision:

- pass the -arm-fix-cmse-cve-2021-35465 option once
- document -m(no)fix-cmse-cve-2021-35465 in ClangCommandLineReference.rst
- add clang tests with the mitigation expicitely disabled on affected cpus
- removed `.addReg(ARM::CPSR, RegState::ImplicitDefine)`
- moved the mitigation sequence inside a bundle to prevent reordering


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

https://reviews.llvm.org/D109157

Files:
  clang/docs/ClangCommandLineReference.rst
  clang/include/clang/Driver/Options.td
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/test/Driver/arm-cmse-cve-2021-35465.c
  llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
  llvm/test/CodeGen/ARM/cmse-cve-2021-35465-return.ll
  llvm/test/CodeGen/ARM/cmse-cve-2021-35465.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109157.371028.patch
Type: text/x-patch
Size: 18739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210907/593f1357/attachment.bin>


More information about the llvm-commits mailing list