[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    Integrated: 8286711: AArch64: serviceability agent tests fail with PAC enabled
From:       Nick Gasson <ngasson () openjdk ! java ! net>
Date:       2022-05-30 8:15:01
Message-ID: -eeVQRlZT7jphXBlNqJPz5BY04hnfa5aefYveelwIIU=.c9c0faf5-78ee-4372-9288-e850a6b6483a () github ! com
[Download RAW message or body]

On Fri, 20 May 2022 15:52:04 GMT, Nick Gasson <ngasson@openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: d8331737
Author:    Nick Gasson <ngasson@openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/d8331737ad09fb989c492bdfe3868a7ae66e32af
                
Stats:     43 lines in 5 files changed: 35 ins; 2 del; 6 mod

8286711: AArch64: serviceability agent tests fail with PAC enabled

Reviewed-by: dholmes, cjplummer

-------------

PR: https://git.openjdk.java.net/jdk/pull/8814


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic