RFR: 8277204: Implementation of JEP 8264130: PAC-RET protection for Linux/AArch64 [v9]
Andrew Haley
aph at openjdk.java.net
Tue Jan 25 15:30:41 UTC 2022
On Tue, 25 Jan 2022 14:22:15 GMT, Alan Hayward <duke at openjdk.java.net> wrote:
>> Was this ever resolved?
>
> Sort of. That code has changed quite a bit - UseROPProtection now is a string field not a bool.
> "none" or not set - pac disabled.
> "pac-ret" - pac always enabled
> "standard" - pac enabled if the cpu+os support it.
>
> Also, the pac instructions used aren't all in the NOP space. So, it will crash on a non-pac machine. It might be possible to change it so it does only use nop space instructions, but I don't think it'll be optimal (need to double check).
OK, cool.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6334
More information about the build-dev
mailing list