[all-commits] [llvm/llvm-project] b297fd: [msan] Don't intercept LFS prlimit64/getrlimit64 o...

Sam James via All-commits all-commits at lists.llvm.org
Sat May 20 18:06:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b297fd7974b282b66605547c7adb2eadbf82214f
      https://github.com/llvm/llvm-project/commit/b297fd7974b282b66605547c7adb2eadbf82214f
  Author: Sam James <sam at gentoo.org>
  Date:   2023-05-21 (Sun, 21 May 2023)

  Changed paths:
    M compiler-rt/lib/msan/msan_interceptors.cpp

  Log Message:
  -----------
  [msan] Don't intercept LFS prlimit64/getrlimit64 on musl

These are aliases on musl and as of 1.2.4, aren't visible by default
(only with -D_LARGEFILE64_SOURCE), and will be removed entirely in a future
release.

This fixes a runtime failure with msan on musl-1.2.4:
```
$ echo 'int main(){}' | clang -x c - -fsanitize=memory -o /dev/null
/usr/bin/x86_64-gentoo-linux-musl-ld.bfd: /usr/lib/llvm/16/bin/../../../../lib/clang/16/lib/linux/libclang_rt.msan-x86_64.a(msan_interceptors.cpp.o): in function `__interceptor_getrlimit64':
[...]
```

Bug: https://bugs.gentoo.org/906603

Reviewed By: MaskRay

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




More information about the All-commits mailing list