[all-commits] [llvm/llvm-project] 039096: [hwasan] Add default "/" prefix.

Evgenii Stepanov via All-commits all-commits at lists.llvm.org
Thu Oct 14 15:03:33 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 039096ee7137ac64ae8c02880b3cf9da84bb01ad
      https://github.com/llvm/llvm-project/commit/039096ee7137ac64ae8c02880b3cf9da84bb01ad
  Author: Evgenii Stepanov <eugenis at google.com>
  Date:   2021-10-14 (Thu, 14 Oct 2021)

  Changed paths:
    M compiler-rt/lib/hwasan/scripts/hwasan_symbolize

  Log Message:
  -----------
  [hwasan] Add default "/" prefix.

Add a default "/" prefix to the symbol search path in the
symbolization script. Without this, the binary itself is not considered
a valid source of symbol info.

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


  Commit: 7a3fb71c3cbdd80666335fa8f6f071b43f0b922a
      https://github.com/llvm/llvm-project/commit/7a3fb71c3cbdd80666335fa8f6f071b43f0b922a
  Author: Evgenii Stepanov <eugenis at google.com>
  Date:   2021-10-14 (Thu, 14 Oct 2021)

  Changed paths:
    M compiler-rt/test/hwasan/TestCases/thread-uaf.c

  Log Message:
  -----------
  [hwasan] Fix TestCases/thread-uaf.c.

On newer glibc, this test detects an extra match somewhere under
pthread_getattr_np. This results in Thread: lines getting spread out in
the report and failing to match the CHECKs.

Fix the CHECKs to allow this possibility.

Reviewed By: fmayer

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


  Commit: 439e00a25bde9df851c6f25e356f11f83e884c2f
      https://github.com/llvm/llvm-project/commit/439e00a25bde9df851c6f25e356f11f83e884c2f
  Author: Evgenii Stepanov <eugenis at google.com>
  Date:   2021-10-14 (Thu, 14 Oct 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/memtag.h

  Log Message:
  -----------
  [scudo] Fix running tests under hwasan.

When built with hwasan, assume that the target architecture does not
support TBI. HWASan uses that byte for its own purpose, and changing it
breaks things.

Reviewed By: hctim

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


Compare: https://github.com/llvm/llvm-project/compare/acb3b187c4c8...439e00a25bde


More information about the All-commits mailing list