[all-commits] [llvm/llvm-project] 511b8b: Normalize ptrauth handling in sanitizer runtime (#...
Anton Korobeynikov via All-commits
all-commits at lists.llvm.org
Fri Jul 26 00:30:18 PDT 2024
Branch: refs/heads/release/19.x
Home: https://github.com/llvm/llvm-project
Commit: 511b8b094dd89f826cc95b52a68804e68d854a10
https://github.com/llvm/llvm-project/commit/511b8b094dd89f826cc95b52a68804e68d854a10
Author: Anton Korobeynikov <anton at korobeynikov.info>
Date: 2024-07-26 (Fri, 26 Jul 2024)
Changed paths:
M compiler-rt/lib/sanitizer_common/sanitizer_ptrauth.h
Log Message:
-----------
Normalize ptrauth handling in sanitizer runtime (#100483)
1. Include `ptrauth.h` if `ptrauth_intrinsics` language feature is specified (per ptrauth spec, this is what enables `ptrauh.h` usage and functions like `ptrauth_strip`)
2. For PAC-RET fallback implement two changes:
1. Switch to macro, so we can ignore key argument
2. Ensure the unsigned value is erased from LR, so the possibility of gadget reuse is reduced.
Fixes #100467
(cherry picked from commit cc4f98979b079b517edd8a71f56a8975f436e63d)
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