Skip to content

[WIP] Report additional info about pauth failures #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: dkovalev/pauth-lldb
Choose a base branch
from

Conversation

kovdan01
Copy link
Contributor

@kovdan01 kovdan01 commented Feb 26, 2024

TODO:

  • Move common code from StopInfoMachException and StopInfoUnixSignal to base class StopInfo.
  • Handle SIGBUS and SIGTRAP if needed.
  • Get proper fault address needed for comparing against current_pc; not passed to StopInfoUnixSignal but passed to StopInfoMachException as part of exc_data.
  • Detect LDRAA, LDRAB. This is dependent on setting proper fault address, the code itself should be mostly identical to corresponding one in StopInfoMachException.
  • Less ugly implementation of StopInfoUnixSignal::GetDescription: we already have signal description set in GetCrashReasonString->UnixSignals::GetSignalDescription and need to append pauth-related notes w/o recalculating them at every GetDescription call
  • Tests

This is dependent on PR68 since we need to detect pauth-enabled target via reading GNU_PROPERTY_AARCH64_FEATURE_PAUTH, so merging into dkovalev/pauth-lldb as for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PAuth][LLDB] Handle authentication failure for signed pointers differently from other invalid memory access
1 participant