openj9
openj9 copied to clipboard
JDK17 FIPS jdk_security2_1_FAILED
Failure link
From an internal build(rhel8x64-fips3-1):
08:37:05 java version "17.0.4" 2022-07-19
08:37:05 IBM Semeru Runtime Certified Edition 17.0.4.0-rc1 (build 17.0.4+8)
08:37:05 Eclipse OpenJ9 VM 17.0.4.0-rc1 (build openj9-0.33.0-rc1, JRE 17 Linux amd64-64-Bit Compressed References 20220719_186 (JIT enabled, AOT enabled)
08:37:05 OpenJ9 - 8cb527940
08:37:05 OMR - b58aa2708
08:37:05 JCL - e5bc2863363 based on jdk-17.0.4+8)
Rerun in Grinder - Change TARGET to run only the failed test targets.
Failure output (captured from console output)
08:43:48 ===============================================
08:43:48 Running test jdk_security2_1 ...
08:43:48 ===============================================
08:43:48 jdk_security2_1 Start Time: Fri Jul 29 05:43:48 2022 Epoch Time (ms): 1659098628088
08:43:48 "/home/jenkins/workspace/Grinder_testList_2/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:destroyAll; "/home/jenkins/workspace/Grinder_testList_2/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:groupAccess,destroyAll; echo "cache cleanup done";
08:43:48 JVMSHRC005I No shared class caches available
08:43:48 JVMSHRC005I No shared class caches available
08:43:48 cache cleanup done
08:43:48 variation: Mode650
08:43:48 JVM_OPTIONS: -XX:-UseCompressedOops -Dsemeru.fips=true
08:44:05 TEST: com/sun/crypto/provider/Cipher/AEAD/GCMShortBuffer.java
08:44:05 javax.crypto.IllegalBlockSizeException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DATA_LEN_RANGE
08:44:05 at jdk.crypto.cryptoki/sun.security.pkcs11.P11AEADCipher.handleException(P11AEADCipher.java:822)
08:44:05 at jdk.crypto.cryptoki/sun.security.pkcs11.P11AEADCipher.implDoFinal(P11AEADCipher.java:707)
08:44:05 at jdk.crypto.cryptoki/sun.security.pkcs11.P11AEADCipher.engineDoFinal(P11AEADCipher.java:612)
08:44:05 at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2417)
08:44:05 at GCMShortBuffer.<init>(GCMShortBuffer.java:57)
08:44:05 at GCMShortBuffer.main(GCMShortBuffer.java:116)
08:44:05 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08:44:05 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
08:44:05 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08:44:05 at java.base/java.lang.reflect.Method.invoke(Method.java:568)
08:44:05 at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
08:44:05 at java.base/java.lang.Thread.run(Thread.java:858)
08:44:05 Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DATA_LEN_RANGE
08:44:05 at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_Decrypt(Native Method)
08:44:05 at jdk.crypto.cryptoki/sun.security.pkcs11.P11AEADCipher.implDoFinal(P11AEADCipher.java:694)
08:44:05 ... 10 more
08:44:05 TEST: com/sun/crypto/provider/Cipher/AEAD/OverlapByteBuffer.java
08:44:05 STDERR:
08:44:05 java.lang.Exception: Error with base offset 1
08:44:05 at OverlapByteBuffer.main(OverlapByteBuffer.java:148)
08:44:05 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08:44:05 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
08:44:05 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08:44:05 at java.base/java.lang.reflect.Method.invoke(Method.java:568)
08:44:05 at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
08:44:05 at java.base/java.lang.Thread.run(Thread.java:858)
08:44:05 Caused by: javax.crypto.AEADBadTagException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ENCRYPTED_DATA_INVALID
08:44:05 at jdk.crypto.cryptoki/sun.security.pkcs11.P11AEADCipher.handleException(P11AEADCipher.java:827)
08:44:05 at jdk.crypto.cryptoki/sun.security.pkcs11.P11AEADCipher.implDoFinal(P11AEADCipher.java:800)
08:44:05 at jdk.crypto.cryptoki/sun.security.pkcs11.P11AEADCipher.engineDoFinal(P11AEADCipher.java:624)
08:44:05 at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2500)
08:44:05 at OverlapByteBuffer.main(OverlapByteBuffer.java:135)
08:44:05 ... 6 more
08:44:05 Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ENCRYPTED_DATA_INVALID
08:44:05 at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_Decrypt(Native Method)
08:44:05 at jdk.crypto.cryptoki/sun.security.pkcs11.P11AEADCipher.implDoFinal(P11AEADCipher.java:785)
08:44:05 ... 9 more
08:44:05 TEST: com/sun/crypto/provider/Cipher/AEAD/GCMBufferTest.java
08:44:05 STDERR:
08:44:05 Algo: AES/GCM/NoPadding Ops: [BYTE]
08:44:05 Encrypt: Data Index: 1
08:44:05 input len: 51 inOfs 0 outOfs 0 in/out buffer: different
08:44:05 input len: 51 inOfs 0 outOfs 0 in/out buffer: in-place
08:44:05 Decrypt: Data Index: 1
08:44:05 input len: 67 inOfs 0 outOfs 0 in/out buffer: different
08:44:05 java.lang.Exception: Wrong doFinal return len (BYTE): rlen=51, expected output len=67
08:44:05 at GCMBufferTest.crypto(GCMBufferTest.java:494)
08:44:05 at GCMBufferTest.decrypt(GCMBufferTest.java:341)
08:44:05 at GCMBufferTest.test(GCMBufferTest.java:300)
08:44:05 at GCMBufferTest.main(GCMBufferTest.java:644)
08:44:05 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08:44:05 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
08:44:05 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08:44:05 at java.base/java.lang.reflect.Method.invoke(Method.java:568)
08:44:05 at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
08:44:05 at java.base/java.lang.Thread.run(Thread.java:858)
08:44:08 TEST: com/sun/crypto/provider/KeyAgreement/ECKeyCheck.java
08:44:08 STDERR:
08:44:08 java.lang.ClassCastException: sun.security.pkcs11.P11Key$P11PrivateKey incompatible with java.security.interfaces.ECPrivateKey
08:44:08 at ECKeyCheck.main(ECKeyCheck.java:46)
08:44:08 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08:44:08 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
08:44:08 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08:44:08 at java.base/java.lang.reflect.Method.invoke(Method.java:568)
08:44:08 at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
08:44:08 at java.base/java.lang.Thread.run(Thread.java:858)
08:44:12 TEST: javax/crypto/CipherSpi/CipherByteBufferOverwriteTest.java
08:44:12 java.lang.Exception: ERROR: Ciphertext does not match
08:44:12 at CipherByteBufferOverwriteTest.runTest(CipherByteBufferOverwriteTest.java:187)
08:44:12 at CipherByteBufferOverwriteTest.main(CipherByteBufferOverwriteTest.java:97)
08:44:12 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08:44:12 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
08:44:12 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08:44:12 at java.base/java.lang.reflect.Method.invoke(Method.java:568)
08:44:12 at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
08:44:12 at java.base/java.lang.Thread.run(Thread.java:858)
08:44:13 TEST: javax/crypto/CipherSpi/ResetByteBuffer.java
08:44:13 STDERR:
08:44:13 java.security.ProviderException: update() failed
08:44:13 at jdk.crypto.cryptoki/sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:792)
08:44:13 at jdk.crypto.cryptoki/sun.security.pkcs11.P11Cipher.engineUpdate(P11Cipher.java:560)
08:44:13 at java.base/javax.crypto.Cipher.update(Cipher.java:2043)
08:44:13 at ResetByteBuffer.updateTest(ResetByteBuffer.java:120)
08:44:13 at ResetByteBuffer.main(ResetByteBuffer.java:68)
08:44:13 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08:44:13 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
08:44:13 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08:44:13 at java.base/java.lang.reflect.Method.invoke(Method.java:568)
08:44:13 at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
08:44:13 at java.base/java.lang.Thread.run(Thread.java:858)
08:44:13 Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ENCRYPTED_DATA_LEN_RANGE
08:44:13 at jdk.crypto.cryptoki/sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:763)
08:44:13 ... 10 more
08:44:25 TEST: javax/xml/crypto/dsig/FileSocketPermissions.java
08:44:25 STDERR:
08:44:25 java.lang.Exception: Proc abnormal end
08:44:25 at jdk.test.lib.process.Proc.readData(Proc.java:373)
08:44:25 at FileSocketPermissions.main(FileSocketPermissions.java:75)
08:44:25 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08:44:25 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
08:44:25 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08:44:25 at java.base/java.lang.reflect.Method.invoke(Method.java:568)
08:44:25 at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
08:44:25 at java.base/java.lang.Thread.run(Thread.java:858)
08:44:25 Test results: passed: 39; failed: 7
08:44:37 Report written to /home/jenkins/workspace/Grinder_testList_2/jvmtest/openjdk/report/html/report.html
08:44:37 Results written to /home/jenkins/workspace/Grinder_testList_2/aqa-tests/TKG/output_16590982873742/jdk_security2_1/work
08:44:37 Error: Some tests failed or other problems occurred.
08:44:37
08:44:37 jdk_security2_1_FAILED
@alon-sh @taoliult
Internal build jdk11_tier1_cipher_0 jdk11_tier1_cipher_1 com/sun/crypto/provider/Cipher/AEAD/GCMShortBuffer.java
@WilburZjh
Investigating on it