summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/section/main.c
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2019-10-17 20:32:54 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2019-10-17 20:32:54 +0000
commitd5282dfc410c6af5518b046c3ec02339aaf19950 (patch)
tree1c270d24fafe8d8a0f30c183b21200e9a3836c43 /lldb/packages/Python/lldbsuite/test/python_api/section/main.c
parent2ca8e27bd038673b514c8452d661a413ce0d2123 (diff)
downloadbcm5719-llvm-d5282dfc410c6af5518b046c3ec02339aaf19950.tar.gz
bcm5719-llvm-d5282dfc410c6af5518b046c3ec02339aaf19950.zip
libhwasan initialisation include kernel syscall ABI relaxation
Summary: Until now AArch64 development has been on patched kernels that have an always on relaxed syscall ABI where tagged pointers are accepted. The patches that have gone into the mainline kernel rely on each process opting in to this relaxed ABI. This commit adds code to choose that ABI into __hwasan_init. The idea has already been agreed with one of the hwasan developers (http://lists.llvm.org/pipermail/llvm-dev/2019-September/135328.html). The patch ignores failures of `EINVAL` for Android, since there are older versions of the Android kernel that don't require this `prctl` or even have the relevant values. Avoiding EINVAL will let the library run on them. I've tested this on an AArch64 VM running a kernel that requires this prctl, having compiled both with clang and gcc. Patch by Matthew Malcomson. Reviewers: eugenis, kcc, pcc Reviewed By: eugenis Subscribers: srhines, kristof.beyls, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D68794 llvm-svn: 375166
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/section/main.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud