Upstream lldb support for summarizing BLRAx and LDRAx auth failures.
rdar://41615322
Differential D102428
[StopInfoMachException] Summarize arm64e BLRAx/LDRAx auth failures vsk on May 13 2021, 11:05 AM. Authored by
Details Upstream lldb support for summarizing BLRAx and LDRAx auth failures. rdar://41615322
Diff Detail
Event TimelineComment Actions I think the test files should go in test/API/functionalities/ptrauth_diagnostics/ instead.
Comment Actions Thanks for the review!
Comment Actions I think some of my questions are too detailed for this initial patch, I'm sure we can improve the diagnostics over time as situations come up. Glad to see this being upstreamed. Not very knowledgeable on Mach specifics so I'll leave the final review to others.
Comment Actions Address review feedback.
Comment Actions Friendly ping.
Comment Actions Apologies, I missed the ping. A couple of minor comments otherwise this looks good to me. @omjavaid Should take a look too as he's doing/did the PAC work for Arm Linux. I figure this can go in for Mac and be made generic later as needed. (e.g. Arm Linux won't have the special brk bits)
Comment Actions Apologies, I forgot about this for way too long. I don't think Omair is going to object anyway so let's get this in. |
Comment what the meaning of the break code is. (or range of codes, 0-4 I guess)
Best guess is that this brk causes the cpu to authenticate a code held in x16, some kind of control flow check?