RFR: 8264130: PAC-RET protection for Linux/AArch64 [v4]
Alan Hayward
duke at openjdk.java.net
Mon Nov 15 11:01:36 UTC 2021
On Mon, 15 Nov 2021 10:20:15 GMT, Andrew Haley <aph at openjdk.org> wrote:
>whether this function authenticates or strips the address depends only on debugging?
Yes. We only need to strip the value, because we're not jumping to the lr value, only viewing it.
The interface is different to a strip (as we need to pass in the modifier).
How about something like pauth_authenticate_fast() ? or pauth_authenticate_unsafe() ?
Alternatively, this function is only called by the functions in Frame, so the frequency of use is probably low enough (compared to the sign/auth every function) that it's not going to cause any performance issues. So, could just replace with calls to pauth_authenticate. I think that might be the best option.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6334
More information about the build-dev
mailing list