RFR: 8368997: AIX allows reading from address zero which leads to several ubsan findings

Joachim Kern jkern at openjdk.org
Wed Oct 8 12:36:00 UTC 2025


On Tue, 7 Oct 2025 13:54:51 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> I think this is fine. Hotspot should never read from address 0, so returning false should be ok. This essentially emulates the behavior of other operating systems. Should we only catch `adr == nullptr` or all addresses within the first memory page?

I would prefer to catch only the nullptr, because this is standard conform.

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

PR Comment: https://git.openjdk.org/jdk/pull/27591#issuecomment-3381302602


More information about the hotspot-runtime-dev mailing list