Skip to content
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

8286711: AArch64: serviceability agent tests fail with PAC enabled #8814

Closed
wants to merge 1 commit into from

Commits on May 20, 2022

  1. 8286711: AArch64: serviceability agent tests fail with PAC enabled

    When the VM is run with `-XX:UseBranchProtection=pac-ret` on a supported
    CPU, the upper bits of the saved link register contain a "pointer
    authentication code" which must be checked and removed by a special
    instruction before a function returns.  The serviceability agent is
    unaware of this and so sees garbled PC values when walking the stack.
    This patch just masks out the PAC bits from the sender PC after reading
    it from the stack frame.
    nick-arm committed May 20, 2022
    Copy the full SHA
    f677e44 View commit details
    Browse the repository at this point in the history