[jdk17u-dev] RFR: 8292158: AES-CTR cipher state corruption with AVX-512
Smita Kamath
svkamath at openjdk.org
Wed Oct 12 20:07:02 UTC 2022
Hi,
This is a backport of JDK-8292158: AES-CTR cipher state corruption with AVX-512. This backport fixes a bug where cipher can become corrupted when encrypting/decrypting byte arrays with a size less than 16.
The fix is in MacroAssembler::aesctr_encrypt method.
Patch does not apply cleanly to 17u as the method has moved from src/hotspot/cpu/x86/macroAssembler_x86_aes.cpp to a new file src/hotspot/cpu/x86/stubGenerator_x86_64_aes.cpp. The included regression test also had to be modified.
Could you kindly review the patch?
Thanks,
Smita
-------------
Commit messages:
- Backport 9d76ac8a4453bc51d9dca2ad6c60259cfb2c4203
Changes: https://git.openjdk.org/jdk17u-dev/pull/787/files
Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=787&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8292158
Stats: 99 lines in 2 files changed: 98 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/787.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev pull/787/head:pull/787
PR: https://git.openjdk.org/jdk17u-dev/pull/787
More information about the jdk-updates-dev
mailing list