[all-commits] [llvm/llvm-project] 62914b: [ASan] Fix TLS teardown.

Mitch Phillips via All-commits all-commits at lists.llvm.org
Thu Feb 17 13:34:58 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 62914bad46cf0b010e3277197dc3114fdf0d8b79
      https://github.com/llvm/llvm-project/commit/62914bad46cf0b010e3277197dc3114fdf0d8b79
  Author: Mitch Phillips <31459023+hctim at users.noreply.github.com>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M compiler-rt/lib/asan/asan_thread.cpp
    M compiler-rt/test/asan/TestCases/Linux/unpoison_tls.cpp

  Log Message:
  -----------
  [ASan] Fix TLS teardown.

TLS teardown is currently broken, as we unpoison the shadow a little bit
and to the right of the TLS section, rather than the full TLS section
itself. This currently breaks at -O0, and breaks with some upcoming
globals code that I have.

Reviewed By: vitalybuka

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




More information about the All-commits mailing list