[all-commits] [llvm/llvm-project] 7d5e6b: [HWASAN] Fix TLS + signal handling related crash

kstoimenov via All-commits all-commits at lists.llvm.org
Wed Apr 26 11:08:40 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7d5e6b4bc7f8a3843e052a662c55b91f3c7a042f
  Author: Kirill Stoimenov <kstoimenov at google.com>
  Date:   2023-04-26 (Wed, 26 Apr 2023)

  Changed paths:
    M compiler-rt/lib/hwasan/hwasan_interceptors.cpp

  Log Message:
  [HWASAN] Fix TLS + signal handling related crash

When a signal is raised before HWASAN has a chance to initialize it's TLS entry the program crashes. This only happens when hwasan-with-tls is true, which is default value. This patch fixes the problem by disabling signals during thread initialization time.

Reviewed By: vitalybuka

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

More information about the All-commits mailing list