[all-commits] [llvm/llvm-project] cb0e14: [sanitizer] Switch dlsym hack to internal_allocator
Vitaly Buka via All-commits
all-commits at lists.llvm.org
Fri Nov 12 16:11:29 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cb0e14ce6dcdd614a7207f4ce6fcf81a164471ab
https://github.com/llvm/llvm-project/commit/cb0e14ce6dcdd614a7207f4ce6fcf81a164471ab
Author: Vitaly Buka <vitalybuka at google.com>
Date: 2021-11-12 (Fri, 12 Nov 2021)
Changed paths:
M compiler-rt/lib/asan/asan_malloc_linux.cpp
M compiler-rt/lib/dfsan/dfsan_interceptors.cpp
M compiler-rt/lib/hwasan/hwasan_allocation_functions.cpp
M compiler-rt/lib/lsan/lsan_common.h
M compiler-rt/lib/lsan/lsan_interceptors.cpp
M compiler-rt/lib/memprof/memprof_malloc_linux.cpp
M compiler-rt/lib/msan/msan_interceptors.cpp
M compiler-rt/lib/sanitizer_common/CMakeLists.txt
A compiler-rt/lib/sanitizer_common/sanitizer_allocator_dlsym.h
M compiler-rt/lib/sanitizer_common/sanitizer_malloc_mac.inc
Log Message:
-----------
[sanitizer] Switch dlsym hack to internal_allocator
Since glibc 2.34, dlsym does
1. malloc 1
2. malloc 2
3. free pointer from malloc 1
4. free pointer from malloc 2
These sequence was not handled by trivial dlsym hack.
This fixes https://bugs.llvm.org/show_bug.cgi?id=52278
Reviewed By: eugenis, morehouse
Differential Revision: https://reviews.llvm.org/D112588
More information about the All-commits
mailing list