TestGCMSplitBound.java fails with rare AEADBadTagException during GaloisCounterMode$GCMDecrypt.doFinal()

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P3
    • None
    • Affects Version/s: None
    • Component/s: hotspot
    • None

      The test/jdk/com/sun/crypto/provider/Cipher/AES/TestAesGcmIntrinsic.java is a new test being added in https://github.com/openjdk/jdk/pull/28363 for JDK-8371864.

      On AVX512 enabled machines, the test fail rarely (2 out of 200 runs) with AEADBadTagException: Tag mismatch:

      Caused by: javax.crypto.AEADBadTagException: Tag mismatch
      at java.base/com.sun.crypto.provider.GaloisCounterMode$GCMDecrypt.doFinal(GaloisCounterMode.java:1505)
      at java.base/com.sun.crypto.provider.GaloisCounterMode.engineDoFinal(GaloisCounterMode.java:402)
      at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2320)
      ...

            Assignee:
            Unassigned
            Reporter:
            Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: