[PATCH] D102288: [HWASan] Add -fsanitize=lam flag and enable HWASan to use it.

Matt Morehouse via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 11 16:59:22 PDT 2021


morehouse created this revision.
morehouse added reviewers: vitalybuka, eugenis.
Herald added subscribers: dexonsmith, mgorny.
morehouse requested review of this revision.
Herald added projects: clang, Sanitizers.
Herald added subscribers: Sanitizers, cfe-commits.

-fsanitize=lam is intended to be a temporary flag for us to implement
LAM support in HWASan.  Once the -mlam feature flag (or something
equivalent) is added to gcc and clang, we can switch to using that
instead.

This patch also adds a "check-hwasan-lam" target to compiler-rt for
testing LAM mode.  Currently these tests must be run in an emulator that
has LAM support.  To ensure LAM mode isn't broken by future patches, I
will next set up a QEMU buildbot to run the HWASan tests in LAM.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102288

Files:
  clang/include/clang/Basic/Sanitizers.def
  clang/include/clang/Driver/SanitizerArgs.h
  clang/lib/Driver/ToolChains/CommonArgs.cpp
  clang/lib/Driver/ToolChains/Linux.cpp
  compiler-rt/test/hwasan/CMakeLists.txt
  compiler-rt/test/hwasan/TestCases/Linux/vfork.c
  compiler-rt/test/hwasan/lit.cfg.py
  compiler-rt/test/hwasan/lit.site.cfg.py.in

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102288.344598.patch
Type: text/x-patch
Size: 6191 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210511/74453bfc/attachment-0001.bin>


More information about the cfe-commits mailing list