[all-commits] [llvm/llvm-project] 82af00: [safestack] Various 32-bit Linux fixes (#99455)
Rainer Orth via All-commits
all-commits at lists.llvm.org
Thu Jul 18 22:15:31 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 82af008d9891bc109ba218fb546170d83c5de9a2
https://github.com/llvm/llvm-project/commit/82af008d9891bc109ba218fb546170d83c5de9a2
Author: Rainer Orth <ro at gcc.gnu.org>
Date: 2024-07-19 (Fri, 19 Jul 2024)
Changed paths:
M compiler-rt/lib/safestack/safestack_platform.h
M compiler-rt/lib/safestack/safestack_util.h
Log Message:
-----------
[safestack] Various 32-bit Linux fixes (#99455)
When enabling 32-bit testing on Linux/i386 and Linux/sparc, many tests
`FAIL`:
- All Linux/i386 tests `FAIL` with ``` safestack CHECK failed:
/vol/llvm/src/llvm-project/local/compiler-rt/lib/safestack/safestack.cpp:95
MAP_FAILED != addr ``` because the safestack `mmap` implementation
doesn't work there. This patch adjusts it to match the
`sanitizer_linux.cpp.c` one.
- On 32-bit Linux/sparc, the `pthread*.c` tests `FAIL` because a `tid_t`
(`uint64_t`) `tid` arg was passed to `syscall(SYS_tgkill)` while `tid`
is actually a `pid_t` (`int`). Fixed by adding a cast.
Tested on `x86_64-pc-linux-gnu` (32 and 64-bit) and
`sparc64-unknown-linux-gnu` (32 and 64-bit).
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list