llvm-capstone/libunwind
Jordan R AW fc1c478709
[libunwind] Replace process_vm_readv with SYS_rt_sigprocmask (#74791)
process_vm_readv is generally considered dangerous from a syscall
perspective, and is frequently blanket banned in seccomp filters such as
those in Chromium and ChromiumOS. We can get the same behaviour during
the invalid PC address case with the raw SYS_rt_sigprocmask syscall.

Testing to ensure that process_vm_readv does not appear, I ran the
output of check-unwind on an ARM64 device under strace. Previously,
bad_unwind_info in particular would use process_vm_readv, but with this
commit, it now no longer uses it:

```
strace test/Output/bad_unwind_info.pass.cpp.dir/t.tmp.exe \
  |& grep process_vm_readv
```

The libunwind unittests were also tested on ARM64 ChromeOS (Gentoo
Linux) devices.
2024-01-05 12:56:02 -08:00
..
cmake [runtimes] Don't link against compiler-rt explicitly when we use -nostdlib++ (#75089) 2023-12-13 13:57:48 -05:00
docs [NFC][Py Reformat] Reformat python files in libcxx/libcxxabi 2023-05-25 11:15:34 +02:00
include [libunwind] Fix an inconsistent indentation (NFC) (#72314) 2023-11-15 11:34:15 -05:00
src [libunwind] Replace process_vm_readv with SYS_rt_sigprocmask (#74791) 2024-01-05 12:56:02 -08:00
test [libc++] Run picolibc tests with qemu 2023-11-29 17:21:08 -05:00
.clang-format
CMakeLists.txt Remove deprecated warning from cmake files (#72595) 2023-11-16 21:20:12 -05:00
LICENSE.TXT