[all-commits] [llvm/llvm-project] b7d1ab: [HWASan] Add aliasing flag and enable HWASan to us...

Matt Morehouse via All-commits all-commits at lists.llvm.org
Fri May 14 09:47:56 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b7d1ab75cf474fb3ffc7e7173762c4d83eb2ef8e
      https://github.com/llvm/llvm-project/commit/b7d1ab75cf474fb3ffc7e7173762c4d83eb2ef8e
  Author: Matt Morehouse <mascasa at google.com>
  Date:   2021-05-14 (Fri, 14 May 2021)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Driver/SanitizerArgs.h
    M clang/lib/Driver/SanitizerArgs.cpp
    M compiler-rt/test/hwasan/CMakeLists.txt
    M compiler-rt/test/hwasan/TestCases/Linux/vfork.c
    M compiler-rt/test/hwasan/lit.cfg.py
    M compiler-rt/test/hwasan/lit.site.cfg.py.in

  Log Message:
  -----------
  [HWASan] Add aliasing flag and enable HWASan to use it.

-fsanitize-hwaddress-experimental-aliasing is intended to distinguish
aliasing mode from LAM mode on x86_64.  check-hwasan is configured
to use aliasing mode while check-hwasan-lam is configured to use LAM
mode.

The current patch doesn't actually do anything differently in the two
modes.  A subsequent patch will actually build the separate runtimes
and use them in each mode.

Currently LAM mode 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.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D102288




More information about the All-commits mailing list