aboutsummaryrefslogtreecommitdiff
path: root/src/common/android/testing/mkdtemp.h
diff options
context:
space:
mode:
authorJoshua Peraza <jperaza@chromium.org>2019-07-22 13:26:19 -0700
committerJoshua Peraza <jperaza@chromium.org>2019-07-23 20:02:05 +0000
commitcfad51e9547399a6df3c09a1bee3cb599999b51c (patch)
treed2de9d123372a9729b5d2f0a907042481ec19a65 /src/common/android/testing/mkdtemp.h
parentImproving the support for Fuchsia in Breakpad Processor. (diff)
downloadbreakpad-cfad51e9547399a6df3c09a1bee3cb599999b51c.tar.xz
arm64: strip PACs from link register values
Pointer authentication codes are used to validate pointers against accidental or malicious modification by storing a hash of the address and a secret value in the pointer's unused, upper bits. The exact bits used may vary by implementation and depend on the size of the virtual address space of the target system, and whether other tagged pointer features are in use. Apple has implemented PACs in the Apple A12. https://developer.apple.com/documentation/security/preparing_your_app_to_work_with_pointer_authentication The documented method of stripping PACs from a pointer is to call ptrauth_strip(), which ultimately emits an `xpaci` instruction, but this option isn't available to the Breakpad processor not running on the device. Instead, this patch selects likely address bits from link register values by examining the address range of loaded modules. Change-Id: I054bd1a03605719937fc85dcc8d8b9fe927f44be Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/1713650 Reviewed-by: Mark Mentovai <mark@chromium.org>
Diffstat (limited to 'src/common/android/testing/mkdtemp.h')
0 files changed, 0 insertions, 0 deletions