[all-commits] [llvm/llvm-project] 39e32b: [hwasan] Fix stack tag mismatch report (#81939)

Vitaly Buka via All-commits all-commits at lists.llvm.org
Thu Feb 15 17:00:01 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 39e32b451ca1bf6ae06da10682c053c9a5659b9a
      https://github.com/llvm/llvm-project/commit/39e32b451ca1bf6ae06da10682c053c9a5659b9a
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2024-02-15 (Thu, 15 Feb 2024)

  Changed paths:
    M compiler-rt/lib/hwasan/hwasan_report.cpp
    M compiler-rt/test/hwasan/TestCases/stack-uas.c

  Log Message:
  -----------
  [hwasan] Fix stack tag mismatch report (#81939)

Existing code worked only for local, recorder FP, and the faulty address
are the same 1 MiB page.

Now, instead of guessing FP, we guess variable address.
We need to try just two cases of addresses around of faulty one.

Fixes https://github.com/google/sanitizers/issues/1723




More information about the All-commits mailing list