[all-commits] [llvm/llvm-project] a5519b: [sanitizer] Don't intercept LFS64 symbols on musl
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Jan 9 12:43:35 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a5519b99bc73d50f362d6fb306411e9fcb758b53
https://github.com/llvm/llvm-project/commit/a5519b99bc73d50f362d6fb306411e9fcb758b53
Author: Fangrui Song <i at maskray.me>
Date: 2023-01-09 (Mon, 09 Jan 2023)
Changed paths:
M compiler-rt/lib/interception/interception_type_test.cpp
M compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc
M compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
M compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
M compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
Log Message:
-----------
[sanitizer] Don't intercept LFS64 symbols on musl
LFS64 symbols in musl are for glibc-ABI-compat and not intended for linking
(correct usage will not create LFS64 references). The next release 1.2.4 will
disallow linking against LFS64 symbols[1].
For sanitizers, let's just remove LFS64 interceptors. In case of erroneous LFS64
references, asan/tsan will detect fewer problems and msan may have false
positives.
[1]: https://git.musl-libc.org/cgit/musl/commit/?id=246f1c811448f37a44b41cd8df8d0ef9736d95f4
Reviewed By: thesamesam
Differential Revision: https://reviews.llvm.org/D141186
More information about the All-commits
mailing list