[all-commits] [llvm/llvm-project] d961f6: [hwasan] fix false positive when hwasan-match-all-...

Enna1 via All-commits all-commits at lists.llvm.org
Fri Apr 28 02:01:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d961f66b28c592d3d34664b613c193cb3f75dd79
      https://github.com/llvm/llvm-project/commit/d961f66b28c592d3d34664b613c193cb3f75dd79
  Author: Enna1 <xumingjie.enna1 at bytedance.com>
  Date:   2023-04-28 (Fri, 28 Apr 2023)

  Changed paths:
    A compiler-rt/test/hwasan/TestCases/short-granule-and-match-all-tag.cpp
    M llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
    M llvm/test/CodeGen/AArch64/hwasan-check-memaccess.ll

  Log Message:
  -----------
  [hwasan] fix false positive when hwasan-match-all-tag flag is enabled and short granules are used

When hwasan-match-all-tag flag is enabled and short granules are used, at the point checking if this is a short tag case, the tag from pointer is stored in X16 register,
which breaks the assumption that tag from shadow memory is stored in X16 register, this will cause a false positive.

Reviewed By: vitalybuka

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




More information about the All-commits mailing list