RFR: 8330611: AES-CTR vector intrinsic may read out of bounds (x86_64, AVX-512)

Andrew Haley aph at openjdk.org
Fri Apr 19 13:45:58 UTC 2024


On Fri, 19 Apr 2024 11:45:31 GMT, Charles Connell <duke at openjdk.org> wrote:

> Thank you for this fix! (I discovered the bug) I agree it would be very difficult to verify the lack of out-of-bounds memory access. However, after some tinkering myself, I also noticed that even obvious correctness problems in this "tail" area (like simply not copying bytes into the dest array) do not fail any existing unit tests. If it's not that hard, maybe that would a good test to add.

It would not be impossible to write a gtest that maps some private memory then calls the AES-CTR stub directly,

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

PR Comment: https://git.openjdk.org/jdk/pull/18849#issuecomment-2066620374


More information about the hotspot-compiler-dev mailing list