[jdk11u-dev] Integrated: 8292158: AES-CTR cipher state corruption with AVX-512

Smita Kamath svkamath at openjdk.org
Thu Oct 13 19:45:43 UTC 2022


On Sat, 8 Oct 2022 06:55:36 GMT, Smita Kamath <svkamath at openjdk.org> wrote:

> 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 11u 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. Also, the included regression test had to be modified. 
> 
> Could you kindly review the patch? 
> 
> Thanks,
> Smita

This pull request has now been integrated.

Changeset: 8fadf3d0
Author:    Smita Kamath <svkamath at openjdk.org>
Committer: Vladimir Kozlov <kvn at openjdk.org>
URL:       https://git.openjdk.org/jdk11u-dev/commit/8fadf3d01034858c5cd798565147804877a46539
Stats:     99 lines in 2 files changed: 98 ins; 0 del; 1 mod

8292158: AES-CTR cipher state corruption with AVX-512

Reviewed-by: sviswanathan, kvn
Backport-of: 9d76ac8a4453bc51d9dca2ad6c60259cfb2c4203

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

PR: https://git.openjdk.org/jdk11u-dev/pull/1408


More information about the jdk-updates-dev mailing list