[all-commits] [llvm/llvm-project] ea991a: [hwasan] Add fixed_shadow_base flag (#73980)

Thurston Dang via All-commits all-commits at lists.llvm.org
Thu Dec 7 09:45:45 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ea991a11b2a3d2bfa545adbefb71cd17e8970a43
      https://github.com/llvm/llvm-project/commit/ea991a11b2a3d2bfa545adbefb71cd17e8970a43
  Author: Thurston Dang <thurston.dang at gmail.com>
  Date:   2023-12-07 (Thu, 07 Dec 2023)

  Changed paths:
    M compiler-rt/lib/hwasan/hwasan_flags.inc
    M compiler-rt/lib/hwasan/hwasan_linux.cpp
    A compiler-rt/test/hwasan/TestCases/Linux/fixed-shadow.c

  Log Message:
  -----------
  [hwasan] Add fixed_shadow_base flag (#73980)

When set to non-zero, the HWASan runtime will map the shadow base at the
specified constant address.

This is particularly useful in conjunction with the existing compiler
option
'hwasan-mapping-offset', which bakes a hardcoded constant address into
the instrumentation.

---------

Co-authored-by: Thurston Dang <thurston at google.com>




More information about the All-commits mailing list