[sanitizer] Don't intercept LFS64 symbols on musl
authorFangrui Song <i@maskray.me>
Mon, 9 Jan 2023 20:43:23 +0000 (12:43 -0800)
committerFangrui Song <i@maskray.me>
Mon, 9 Jan 2023 20:43:23 +0000 (12:43 -0800)
commita5519b99bc73d50f362d6fb306411e9fcb758b53
treef2a86af82455e871a94115f0683670daf29dcaf4
parent3af4e4031d29258b8cab5f5ffc23a5ddf06bceec
[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
compiler-rt/lib/interception/interception_type_test.cpp
compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h