[all-commits] [llvm/llvm-project] 9095d5: Reland '[msan] Intercept dladdr1, and refactor dla...

Thurston Dang via All-commits all-commits at lists.llvm.org
Tue Jul 11 13:13:30 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9095d5c44bf7c36ddc48edb65c6d3a7b4ea8692f
  Author: Thurston Dang <thurston at google.com>
  Date:   2023-07-11 (Tue, 11 Jul 2023)

  Changed paths:
    M compiler-rt/lib/msan/CMakeLists.txt
    A compiler-rt/lib/msan/msan_dl.cpp
    A compiler-rt/lib/msan/msan_dl.h
    M compiler-rt/lib/msan/msan_interceptors.cpp
    A compiler-rt/test/msan/dladdr1_test.c
    M llvm/utils/gn/secondary/compiler-rt/lib/msan/BUILD.gn

  Log Message:
  Reland '[msan] Intercept dladdr1, and refactor dladdr'

Relanding with #if SANITIZER_GLIBC to avoid breaking FreeBSD.
Also incorporates Arthur's BUILD.gn fix (thanks!) from https://reviews.llvm.org/rGc1e283851772ba494113311405d48cfb883751d1

Original commit message:
This patch adds an msan interceptor for dladdr1 (with support for RTLD_DL_LINKMAP and RTLD_DL_SYMENT) and an accompanying test. It also adds a helper file, msan_dl.cpp, that contains UnpoisonDllAddrInfo (refactored out of the dladdr interceptor) and UnpoisonDllAddr1ExtraInfo.

Reviewed By: vitalybuka

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

More information about the All-commits mailing list