[AArch64][compiler-rt] Add Pointer Authentication support for VFORK.
authorDaniel Kiss <daniel.kiss@arm.com>
Wed, 10 Mar 2021 15:39:14 +0000 (16:39 +0100)
committerDaniel Kiss <daniel.kiss@arm.com>
Wed, 10 Mar 2021 15:39:39 +0000 (16:39 +0100)
commit201550852be4d4213d733316c38c0a7335b0d14c
tree338a25e1be5e422e6c127afeddd8cf75cd39a1b8
parent023b5c1ed8d1577bf0cf298b64a0a047b13fc418
[AArch64][compiler-rt] Add Pointer Authentication support for VFORK.

The LR is stored to off-stack spill area where it is vulnerable.
"paciasp" add an auth code to the LR while the "autiasp" verifies that so
LR can't be modiifed on the spill area.

Test: build with -DCMAKE_C_FLAGS="-mbranch-protection=standard",
run on Armv8.3 capable hardware with PAuth.

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D98009
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_vfork_aarch64.inc.S