[all-commits] [llvm/llvm-project] 18959a: [hwasan] Fix missing synchronization in AllocThread.

Evgenii Stepanov via All-commits all-commits at lists.llvm.org
Wed May 5 11:58:07 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18959a6a094c6469fc2fd5cc167fda7cbe3f163b
      https://github.com/llvm/llvm-project/commit/18959a6a094c6469fc2fd5cc167fda7cbe3f163b
  Author: Evgenii Stepanov <eugenis at google.com>
  Date:   2021-05-05 (Wed, 05 May 2021)

  Changed paths:
    M compiler-rt/lib/hwasan/hwasan_thread.cpp
    M compiler-rt/lib/hwasan/hwasan_thread_list.h

  Log Message:
  -----------
  [hwasan] Fix missing synchronization in AllocThread.

The problem was introduced in D100348.

It's really hard to trigger the bug in a stress test - the race is just too
narrow - but the new checks in Thread::Init should at least provide usable
diagnostic if the problem ever returns.

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




More information about the All-commits mailing list