[jdk21u-dev] RFR: 8345296: AArch64: VM crashes with SIGILL when prctl is disallowed [v3]
Severin Gehwolf
sgehwolf at openjdk.org
Fri Dec 13 10:22:42 UTC 2024
On Thu, 12 Dec 2024 13:42:00 GMT, Kerem Kat <krk at openjdk.org> wrote:
>> Ref. https://github.com/openjdk/jdk/pull/22479
>>
>>> We have caught this in some prod environments, where prctl is forbidden by the sandboxing mechanism. This fails the JVM
>>
>> Does not apply cleanly, the backport depends on `FloatRegister` changes from [JDK-8339063](https://bugs.openjdk.org/browse/JDK-8339063) which are included in `src/hotspot/cpu/aarch64/register_aarch64.hpp`.
>>
>> Additional testing:
>>
>> - [x] Verified the bug is fixed with the seccomp repro from [JDK-8345296](https://bugs.openjdk.org/browse/JDK-8345296?focusedId=14727386&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14727386): Segfault without the patch, works with.
>
> Kerem Kat has updated the pull request incrementally with one additional commit since the last revision:
>
> Fix linux-cross-compile aarch64 build.
Since this is related to prctl returning `-1` in some Docker environments on newer MacOS 15.2+. It does not seem reproducible on native Aarch64 Linux or MacOSX 15.2 and there is a work-around, `-XX:UseSVE=0`, lets keep this on the April schedule for now. It should be a safe change, but I don't see the urgency either.
-------------
PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1222#issuecomment-2541096729
More information about the jdk-updates-dev
mailing list