openj9 icon indicating copy to clipboard operation
openj9 copied to clipboard

OpenJDK jdk_security3 failures on ubu22

Open pshipton opened this issue 3 years ago • 2 comments

internal grinder - ubu22x86-rt1-1 internal grinder - ubu22x86-rt3-1 jdk_security3_1 sun/security/pkcs11/ec/TestECDH.java

00:12:34  ACTION: main -- Failed. Execution failed: `main' threw exception: java.security.spec.InvalidKeySpecException: Could not create EC public key
00:12:34  REASON: User specified action: run main/othervm TestECDH 
00:12:34  TIME:   0.471 seconds
00:12:34  messages:
00:12:34  command: main TestECDH
00:12:34  reason: User specified action: run main/othervm TestECDH 
00:12:34  Mode: othervm [/othervm specified]
00:12:34  Additional options from @modules: --add-modules jdk.crypto.cryptoki
00:12:34  elapsed time (seconds): 0.471
00:12:34  configuration:
00:12:34  Boot Layer
00:12:34    add modules: jdk.crypto.cryptoki
00:12:34  
00:12:34  STDOUT:
00:12:34  Beginning test run TestECDH...
00:12:34  Cannot resolve artifact, please check if JIB jar is present in classpath.
00:12:34  nssLibDir: /usr/lib/x86_64-linux-gnu/nss/
00:12:34  Cannot resolve artifact, please check if JIB jar is present in classpath.
00:12:34  nssLibDir: /usr/lib/x86_64-linux-gnu/nss/
00:12:34  libsoftokn3 version not found, set to 0.0: /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so
00:12:34  Running test with provider SunPKCS11-NSS (security manager disabled) ...
00:12:34  STDERR:
00:12:34  java.security.spec.InvalidKeySpecException: Could not create EC public key
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.engineGeneratePublic(P11ECKeyFactory.java:173)
00:12:34  	at java.base/java.security.KeyFactory.generatePublic(KeyFactory.java:346)
00:12:34  	at TestECDH.test(TestECDH.java:149)
00:12:34  	at TestECDH.main(TestECDH.java:127)
00:12:34  	at PKCS11Test.premain(PKCS11Test.java:223)
00:12:34  	at PKCS11Test.testNSS(PKCS11Test.java:585)
00:12:34  	at PKCS11Test.main(PKCS11Test.java:259)
00:12:34  	at TestECDH.main(TestECDH.java:180)
00:12:34  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
00:12:34  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
00:12:34  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
00:12:34  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
00:12:34  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
00:12:34  	at java.base/java.lang.Thread.run(Thread.java:840)
00:12:34  Caused by: java.security.InvalidKeyException: Could not create EC public key
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.implTranslatePublicKey(P11ECKeyFactory.java:130)
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.engineGeneratePublic(P11ECKeyFactory.java:171)
00:12:34  	... 13 more
00:12:34  Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DOMAIN_PARAMS_INVALID
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_CreateObject(Native Method)
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11$InnerPKCS11.C_CreateObject(PKCS11.java:185)
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.generatePublic(P11ECKeyFactory.java:254)
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.implTranslatePublicKey(P11ECKeyFactory.java:110)
00:12:34  	... 14 more

sun/security/pkcs11/ec/TestECDSA.java

00:12:34  ACTION: main -- Failed. Execution failed: `main' threw exception: java.security.spec.InvalidKeySpecException: Could not create EC private key
00:12:34  REASON: User specified action: run main/othervm TestECDSA 
00:12:34  TIME:   0.459 seconds
00:12:34  messages:
00:12:34  command: main TestECDSA
00:12:34  reason: User specified action: run main/othervm TestECDSA 
00:12:34  Mode: othervm [/othervm specified]
00:12:34  Additional options from @modules: --add-modules jdk.crypto.cryptoki
00:12:34  elapsed time (seconds): 0.459
00:12:34  configuration:
00:12:34  Boot Layer
00:12:34    add modules: jdk.crypto.cryptoki
00:12:34  
00:12:34  STDOUT:
00:12:34  Beginning test run TestECDSA...
00:12:34  Cannot resolve artifact, please check if JIB jar is present in classpath.
00:12:34  nssLibDir: /usr/lib/x86_64-linux-gnu/nss/
00:12:34  Cannot resolve artifact, please check if JIB jar is present in classpath.
00:12:34  nssLibDir: /usr/lib/x86_64-linux-gnu/nss/
00:12:34  libsoftokn3 version not found, set to 0.0: /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so
00:12:34  Running test with provider SunPKCS11-NSS (security manager disabled) ...
00:12:34  STDERR:
00:12:34  java.security.spec.InvalidKeySpecException: Could not create EC private key
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.engineGeneratePrivate(P11ECKeyFactory.java:203)
00:12:34  	at java.base/java.security.KeyFactory.generatePrivate(KeyFactory.java:384)
00:12:34  	at TestECDSA.test(TestECDSA.java:178)
00:12:34  	at TestECDSA.main(TestECDSA.java:160)
00:12:34  	at PKCS11Test.premain(PKCS11Test.java:223)
00:12:34  	at PKCS11Test.testNSS(PKCS11Test.java:585)
00:12:34  	at PKCS11Test.main(PKCS11Test.java:259)
00:12:34  	at TestECDSA.main(TestECDSA.java:119)
00:12:34  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
00:12:34  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
00:12:34  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
00:12:34  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
00:12:34  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
00:12:34  	at java.base/java.lang.Thread.run(Thread.java:840)
00:12:34  Caused by: java.security.InvalidKeyException: Could not create EC private key
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.implTranslatePrivateKey(P11ECKeyFactory.java:159)
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.engineGeneratePrivate(P11ECKeyFactory.java:201)
00:12:34  	... 13 more
00:12:34  Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DOMAIN_PARAMS_INVALID
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_CreateObject(Native Method)
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11$InnerPKCS11.C_CreateObject(PKCS11.java:185)
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.generatePrivate(P11ECKeyFactory.java:277)
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.implTranslatePrivateKey(P11ECKeyFactory.java:139)
00:12:34  	... 14 more

sun/security/pkcs11/ec/TestECGenSpec.java

00:12:34  ACTION: main -- Failed. Execution failed: `main' threw exception: java.security.InvalidAlgorithmParameterException: EC key must be at least 256 bits. The specific key size 192 is not supported
00:12:34  REASON: User specified action: run main/othervm TestECGenSpec 
00:12:34  TIME:   0.439 seconds
00:12:34  messages:
00:12:34  command: main TestECGenSpec
00:12:34  reason: User specified action: run main/othervm TestECGenSpec 
00:12:34  Mode: othervm [/othervm specified]
00:12:34  Additional options from @modules: --add-modules jdk.crypto.cryptoki
00:12:34  elapsed time (seconds): 0.439
00:12:34  configuration:
00:12:34  Boot Layer
00:12:34    add modules: jdk.crypto.cryptoki
00:12:34  
00:12:34  STDOUT:
00:12:34  Beginning test run TestECGenSpec...
00:12:34  Cannot resolve artifact, please check if JIB jar is present in classpath.
00:12:34  nssLibDir: /usr/lib/x86_64-linux-gnu/nss/
00:12:34  Cannot resolve artifact, please check if JIB jar is present in classpath.
00:12:34  nssLibDir: /usr/lib/x86_64-linux-gnu/nss/
00:12:34  libsoftokn3 version not found, set to 0.0: /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so
00:12:34  Running test with provider SunPKCS11-NSS (security manager disabled) ...
00:12:34  Testing secp256r1...
00:12:34  secp256r1 [NIST P-256, X9.62 prime256v1] (1.2.840.10045.3.1.7)
00:12:34  1.2.840.10045.3.1.7
00:12:34  SunPKCS11-NSS EC private key, 256 bitssession object, not sensitive, extractable)
00:12:34  
00:12:34  Testing NIST P-192...
00:12:34  secp192r1 [NIST P-192, X9.62 prime192v1] (1.2.840.10045.3.1.1)
00:12:34  1.2.840.10045.3.1.1
00:12:34  STDERR:
00:12:34  java.security.InvalidAlgorithmParameterException: EC key must be at least 256 bits. The specific key size 192 is not supported
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyPairGenerator.checkKeySize(P11KeyPairGenerator.java:240)
00:12:34  	at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyPairGenerator.initialize(P11KeyPairGenerator.java:223)
00:12:34  	at java.base/java.security.KeyPairGenerator$Delegate.initialize(KeyPairGenerator.java:692)
00:12:34  	at java.base/java.security.KeyPairGenerator.initialize(KeyPairGenerator.java:436)
00:12:34  	at TestECGenSpec.main(TestECGenSpec.java:93)
00:12:34  	at PKCS11Test.premain(PKCS11Test.java:223)
00:12:34  	at PKCS11Test.testNSS(PKCS11Test.java:585)
00:12:34  	at PKCS11Test.main(PKCS11Test.java:259)
00:12:34  	at TestECGenSpec.main(TestECGenSpec.java:46)
00:12:34  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
00:12:34  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
00:12:34  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
00:12:34  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
00:12:34  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
00:12:34  	at java.base/java.lang.Thread.run(Thread.java:840)

sun/security/pkcs11/Signature/TestDSAKeyLength.java

00:13:59  ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.Exception: Test Failed - expected IKE not thrown
00:13:59  REASON: User specified action: run main/othervm TestDSAKeyLength 
00:13:59  TIME:   0.484 seconds
00:13:59  messages:
00:13:59  command: main TestDSAKeyLength
00:13:59  reason: User specified action: run main/othervm TestDSAKeyLength 
00:13:59  Mode: othervm [/othervm specified]
00:13:59  Additional options from @modules: --add-modules jdk.crypto.cryptoki
00:13:59  elapsed time (seconds): 0.484
00:13:59  configuration:
00:13:59  Boot Layer
00:13:59    add modules: jdk.crypto.cryptoki
00:13:59  
00:13:59  STDOUT:
00:13:59  Beginning test run TestDSAKeyLength...
00:13:59  Cannot resolve artifact, please check if JIB jar is present in classpath.
00:13:59  nssLibDir: /usr/lib/x86_64-linux-gnu/nss/
00:13:59  Cannot resolve artifact, please check if JIB jar is present in classpath.
00:13:59  nssLibDir: /usr/lib/x86_64-linux-gnu/nss/
00:13:59  libsoftokn3 version not found, set to 0.0: /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so
00:13:59  Running test with provider SunPKCS11-NSS (security manager disabled) ...
00:13:59  STDERR:
00:13:59  java.lang.Exception: Test Failed - expected IKE not thrown
00:13:59  	at TestDSAKeyLength.main(TestDSAKeyLength.java:97)
00:13:59  	at PKCS11Test.premain(PKCS11Test.java:223)
00:13:59  	at PKCS11Test.testNSS(PKCS11Test.java:585)
00:13:59  	at PKCS11Test.main(PKCS11Test.java:259)
00:13:59  	at TestDSAKeyLength.main(TestDSAKeyLength.java:46)
00:13:59  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
00:13:59  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
00:13:59  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
00:13:59  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
00:13:59  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
00:13:59  	at java.base/java.lang.Thread.run(Thread.java:840)

pshipton avatar Jul 22 '22 13:07 pshipton

sun/security/pkcs11/ec/TestECDH.java on Adoptium JVM grinder ubu22x86-rt1-1 failed the same way

sun/security/pkcs11/ec/TestECGenSpec.java grinder ubu22x86-rt1-1 failed the same way

sun/security/pkcs11/Signature/TestDSAKeyLength.java grinder ubu22x86-rt1-1 failed the same way

I expect these are all machine issues.

pshipton avatar Jul 22 '22 13:07 pshipton

I don't expect this is infra but changes needed in OpenJDK to support ub22. Which may have been completed by now.

pshipton avatar Sep 21 '22 13:09 pshipton

The sun/security/pkcs11/Signature/TestDSAKeyLength.java test failure was reproduced in 17.0.4.1 testing on Ubuntu 22 :

[2022-09-28T20:42:54.087Z] java.lang.Exception: Test Failed - expected IKE not thrown
[2022-09-28T20:42:54.087Z] 	at TestDSAKeyLength.main(TestDSAKeyLength.java:82)
[2022-09-28T20:42:54.087Z] 	at PKCS11Test.premain(PKCS11Test.java:174)
[2022-09-28T20:42:54.087Z] 	at PKCS11Test.testNSS(PKCS11Test.java:550)
[2022-09-28T20:42:54.087Z] 	at PKCS11Test.main(PKCS11Test.java:210)
[2022-09-28T20:42:54.087Z] 	at TestDSAKeyLength.main(TestDSAKeyLength.java:46)
[2022-09-28T20:42:54.087Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-09-28T20:42:54.087Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[2022-09-28T20:42:54.087Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-09-28T20:42:54.087Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[2022-09-28T20:42:54.087Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2022-09-28T20:42:54.087Z] 	at java.base/java.lang.Thread.run(Thread.java:858)

Note: jdk_security3_0 and jdk_security3_1 tests pass on Ubu22 on s390x and ppc64le. The problem seems to only occur on ubu22 x64.

Mesbah-Alam avatar Sep 30 '22 16:09 Mesbah-Alam

@Mesbah-Alam pls try a Temurin build as well. Likely the failure will occur with Temurin as well and the failure is not specific to OpenJ9 but a problem in OpenJDK.

pshipton avatar Sep 30 '22 22:09 pshipton

Temurin JDK 17 release on ubu22: Grinder Temurin JDK17 nightly on ubu22: Grinder

llxia avatar Oct 01 '22 00:10 llxia

Actually I already tried Temurin in https://github.com/eclipse-openj9/openj9/issues/15606#issuecomment-1192590729 and they did fail. It would also be worth trying the latest Semeru 17.0.5 as the problem may be resolved now.

pshipton avatar Oct 01 '22 01:10 pshipton

Tested with latest 17.0.5 nightly on ubu22x86-rt5-1.fyre.ibm.com and got the sun/security/pkcs11/Signature/TestDSAKeyLength.java failure (Grinder link):

00:01:42.027  openjdk version "17.0.5-internal" 2022-10-18
00:01:42.027  OpenJDK Runtime Environment (build 17.0.5-internal+0-adhoc.jenkins.BuildJDK17x86-64linuxNightly)
00:01:42.027  Eclipse OpenJ9 VM (build master-710fd952924, JRE 17 Linux amd64-64-Bit Compressed References 20220930_329 (JIT enabled, AOT enabled)
00:01:42.027  OpenJ9   - 710fd952924
00:01:42.027  OMR      - f99c9dd2248
00:01:42.027  JCL      - ddd62859067 based on jdk-17.0.5+7)
[2022-10-03T13:03:54.713Z] STDERR:
[2022-10-03T13:03:54.713Z] java.lang.Exception: Test Failed - expected IKE not thrown
[2022-10-03T13:03:54.713Z] 	at TestDSAKeyLength.main(TestDSAKeyLength.java:82)
[2022-10-03T13:03:54.713Z] 	at PKCS11Test.premain(PKCS11Test.java:174)
[2022-10-03T13:03:54.713Z] 	at PKCS11Test.testNSS(PKCS11Test.java:550)
[2022-10-03T13:03:54.713Z] 	at PKCS11Test.main(PKCS11Test.java:210)
[2022-10-03T13:03:54.713Z] 	at TestDSAKeyLength.main(TestDSAKeyLength.java:46)
[2022-10-03T13:03:54.713Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-10-03T13:03:54.713Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[2022-10-03T13:03:54.713Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-10-03T13:03:54.713Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[2022-10-03T13:03:54.713Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2022-10-03T13:03:54.713Z] 	at java.base/java.lang.Thread.run(Thread.java:857)
[2022-10-03T13:03:54.713Z] 
[2022-10-03T13:03:54.713Z] JavaTest Message: Test threw exception: java.lang.Exception: Test Failed - expected IKE not thrown
[2022-10-03T13:03:54.713Z] JavaTest Message: shutting down test
[2022-10-03T13:03:54.713Z] 
[2022-10-03T13:03:54.713Z] STATUS:Failed.`main' threw exception: java.lang.Exception: Test Failed - expected IKE not thrown

llxia avatar Oct 03 '22 13:10 llxia

JDK17 0.35 rc1(ubu22x86-rt2-1)

java version "17.0.5" 2022-10-18
IBM Semeru Runtime Certified Edition 17.0.5.0-rc1 (build 17.0.5+8)
Eclipse OpenJ9 VM 17.0.5.0-rc1 (build openj9-0.35.0-rc1, JRE 17 Linux amd64-64-Bit Compressed References 20221018_264 (JIT enabled, AOT enabled)
OpenJ9   - e04a7f6c1
OMR      - 85a21674f
JCL      - e1263b46ebe based on jdk-17.0.5+8)

[2022-10-21T01:55:23.888Z] variation: Mode150
[2022-10-21T01:55:23.888Z] JVM_OPTIONS:  -XX:+UseCompressedOops 

[2022-10-21T02:19:04.011Z] TEST: sun/security/pkcs11/Signature/TestDSAKeyLength.java

[2022-10-21T02:19:04.012Z] STDOUT:
[2022-10-21T02:19:04.012Z] Beginning test run TestDSAKeyLength...
[2022-10-21T02:19:04.012Z] Cannot resolve artifact, please check if JIB jar is present in classpath.
[2022-10-21T02:19:04.012Z] nssLibDir: /usr/lib/x86_64-linux-gnu/nss/
[2022-10-21T02:19:04.012Z] Cannot resolve artifact, please check if JIB jar is present in classpath.
[2022-10-21T02:19:04.012Z] libsoftokn3 version not found, set to 0.0: /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so
[2022-10-21T02:19:04.012Z] Running test with provider SunPKCS11-NSS (security manager disabled) ...
[2022-10-21T02:19:04.012Z] STDERR:
[2022-10-21T02:19:04.012Z] java.lang.Exception: Test Failed - expected IKE not thrown
[2022-10-21T02:19:04.012Z] 	at TestDSAKeyLength.main(TestDSAKeyLength.java:82)
[2022-10-21T02:19:04.012Z] 	at PKCS11Test.premain(PKCS11Test.java:174)
[2022-10-21T02:19:04.012Z] 	at PKCS11Test.testNSS(PKCS11Test.java:550)
[2022-10-21T02:19:04.012Z] 	at PKCS11Test.main(PKCS11Test.java:210)
[2022-10-21T02:19:04.012Z] 	at TestDSAKeyLength.main(TestDSAKeyLength.java:46)
[2022-10-21T02:19:04.012Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-10-21T02:19:04.012Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[2022-10-21T02:19:04.012Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-10-21T02:19:04.012Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[2022-10-21T02:19:04.012Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2022-10-21T02:19:04.012Z] 	at java.base/java.lang.Thread.run(Thread.java:857)
[2022-10-21T02:19:04.012Z] 
[2022-10-21T02:19:04.012Z] JavaTest Message: Test threw exception: java.lang.Exception: Test Failed - expected IKE not thrown

[2022-10-21T02:19:04.012Z] TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: Test Failed - expected IKE not thrown
[2022-10-21T02:19:04.012Z] --------------------------------------------------
[2022-10-21T03:11:11.936Z] Test results: passed: 828; failed: 1
[2022-10-21T03:11:24.123Z] Report written to /home/jenkins/workspace/Test_openjdk17_j9_extended.openjdk_x86-64_linux/aqa-tests/TKG/output_16663099766194/jdk_security3_0/report/html/report.html
[2022-10-21T03:11:24.123Z] Results written to /home/jenkins/workspace/Test_openjdk17_j9_extended.openjdk_x86-64_linux/aqa-tests/TKG/output_16663099766194/jdk_security3_0/work
[2022-10-21T03:11:24.123Z] Error: Some tests failed or other problems occurred.
[2022-10-21T03:11:24.123Z] 
[2022-10-21T03:11:24.123Z] jdk_security3_0_FAILED

JasonFengJ9 avatar Oct 21 '22 22:10 JasonFengJ9

JDK11 0.36 milestone 1 build(ubu22x86-rt1-1)

openjdk version "11.0.18" 2023-01-17
IBM Semeru Runtime Open Edition 11.0.18.0-m1 (build 11.0.18+4)
Eclipse OpenJ9 VM 11.0.18.0-m1 (build v0.36.0-release-f98e55973, JRE 11 Linux amd64-64-Bit Compressed References 20221201_582 (JIT enabled, AOT enabled)
OpenJ9   - f98e55973
OMR      - acdbafc4a
JCL      - acdae91f88 based on jdk-11.0.18+4)

JasonFengJ9 avatar Dec 02 '22 23:12 JasonFengJ9

JDK11 0.38.0 m2(ubu22x86-svl-rt3-1)

openjdk version "11.0.19" 2023-04-18
IBM Semeru Runtime Open Edition 11.0.19.0-m2 (build 11.0.19+6)
Eclipse OpenJ9 VM 11.0.19.0-m2 (build v0.38.0-release-353bdb06f, JRE 11 Linux amd64-64-Bit Compressed References 20230329_681 (JIT enabled, AOT enabled)
OpenJ9   - 353bdb06f
OMR      - 855813495
JCL      - b04e256c1c based on jdk-11.0.19+6)

[2023-03-30T00:06:20.328Z] variation: Mode150
[2023-03-30T00:06:20.328Z] JVM_OPTIONS:  -XX:+UseCompressedOops 

[2023-03-30T00:25:37.639Z] TEST: sun/security/pkcs11/ec/TestECDH.java
[2023-03-30T00:25:37.640Z] STDERR:
[2023-03-30T00:25:37.640Z] java.security.spec.InvalidKeySpecException: Could not create EC public key
[2023-03-30T00:25:37.640Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.engineGeneratePublic(P11ECKeyFactory.java:173)
[2023-03-30T00:25:37.640Z] 	at java.base/java.security.KeyFactory.generatePublic(KeyFactory.java:346)
[2023-03-30T00:25:37.640Z] 	at TestECDH.test(TestECDH.java:149)
[2023-03-30T00:25:37.640Z] 	at TestECDH.main(TestECDH.java:127)
[2023-03-30T00:25:37.640Z] 	at PKCS11Test.premain(PKCS11Test.java:223)
[2023-03-30T00:25:37.640Z] 	at PKCS11Test.testNSS(PKCS11Test.java:585)
[2023-03-30T00:25:37.640Z] 	at PKCS11Test.main(PKCS11Test.java:259)
[2023-03-30T00:25:37.640Z] 	at TestECDH.main(TestECDH.java:180)
[2023-03-30T00:25:37.640Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2023-03-30T00:25:37.640Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2023-03-30T00:25:37.640Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2023-03-30T00:25:37.640Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2023-03-30T00:25:37.640Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2023-03-30T00:25:37.640Z] 	at java.base/java.lang.Thread.run(Thread.java:839)
[2023-03-30T00:25:37.640Z] Caused by: java.security.InvalidKeyException: Could not create EC public key
[2023-03-30T00:25:37.640Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.implTranslatePublicKey(P11ECKeyFactory.java:130)
[2023-03-30T00:25:37.640Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.engineGeneratePublic(P11ECKeyFactory.java:171)
[2023-03-30T00:25:37.640Z] 	... 13 more
[2023-03-30T00:25:37.640Z] Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DOMAIN_PARAMS_INVALID
[2023-03-30T00:25:37.640Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_CreateObject(Native Method)
[2023-03-30T00:25:37.640Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11$InnerPKCS11.C_CreateObject(PKCS11.java:178)
[2023-03-30T00:25:37.640Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.generatePublic(P11ECKeyFactory.java:254)
[2023-03-30T00:25:37.640Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.implTranslatePublicKey(P11ECKeyFactory.java:110)
[2023-03-30T00:25:37.640Z] 	... 14 more
[2023-03-30T00:25:37.640Z] 
[2023-03-30T00:25:37.640Z] JavaTest Message: Test threw exception: java.security.spec.InvalidKeySpecException: Could not create EC public key

[2023-03-30T00:25:37.640Z] TEST: sun/security/pkcs11/ec/TestECDSA.java
[2023-03-30T00:25:37.641Z] STDERR:
[2023-03-30T00:25:37.641Z] java.security.spec.InvalidKeySpecException: Could not create EC private key
[2023-03-30T00:25:37.641Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.engineGeneratePrivate(P11ECKeyFactory.java:203)
[2023-03-30T00:25:37.641Z] 	at java.base/java.security.KeyFactory.generatePrivate(KeyFactory.java:384)
[2023-03-30T00:25:37.641Z] 	at TestECDSA.test(TestECDSA.java:178)
[2023-03-30T00:25:37.641Z] 	at TestECDSA.main(TestECDSA.java:160)
[2023-03-30T00:25:37.641Z] 	at PKCS11Test.premain(PKCS11Test.java:223)
[2023-03-30T00:25:37.641Z] 	at PKCS11Test.testNSS(PKCS11Test.java:585)
[2023-03-30T00:25:37.641Z] 	at PKCS11Test.main(PKCS11Test.java:259)
[2023-03-30T00:25:37.641Z] 	at TestECDSA.main(TestECDSA.java:119)
[2023-03-30T00:25:37.641Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2023-03-30T00:25:37.641Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2023-03-30T00:25:37.641Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2023-03-30T00:25:37.641Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2023-03-30T00:25:37.641Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2023-03-30T00:25:37.641Z] 	at java.base/java.lang.Thread.run(Thread.java:839)
[2023-03-30T00:25:37.641Z] Caused by: java.security.InvalidKeyException: Could not create EC private key
[2023-03-30T00:25:37.641Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.implTranslatePrivateKey(P11ECKeyFactory.java:159)
[2023-03-30T00:25:37.641Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.engineGeneratePrivate(P11ECKeyFactory.java:201)
[2023-03-30T00:25:37.641Z] 	... 13 more
[2023-03-30T00:25:37.641Z] Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DOMAIN_PARAMS_INVALID
[2023-03-30T00:25:37.641Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_CreateObject(Native Method)
[2023-03-30T00:25:37.641Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11$InnerPKCS11.C_CreateObject(PKCS11.java:178)
[2023-03-30T00:25:37.641Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.generatePrivate(P11ECKeyFactory.java:277)
[2023-03-30T00:25:37.641Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.implTranslatePrivateKey(P11ECKeyFactory.java:139)
[2023-03-30T00:25:37.641Z] 	... 14 more
[2023-03-30T00:25:37.641Z] 
[2023-03-30T00:25:37.641Z] JavaTest Message: Test threw exception: java.security.spec.InvalidKeySpecException: Could not create EC private key

[2023-03-30T00:25:37.642Z] TEST: sun/security/pkcs11/ec/TestECGenSpec.java
[2023-03-30T00:25:37.642Z] STDERR:
[2023-03-30T00:25:37.642Z] java.security.InvalidAlgorithmParameterException: EC key must be at least 256 bits. The specific key size 192 is not supported
[2023-03-30T00:25:37.642Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyPairGenerator.checkKeySize(P11KeyPairGenerator.java:240)
[2023-03-30T00:25:37.642Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyPairGenerator.initialize(P11KeyPairGenerator.java:223)
[2023-03-30T00:25:37.642Z] 	at java.base/java.security.KeyPairGenerator$Delegate.initialize(KeyPairGenerator.java:692)
[2023-03-30T00:25:37.642Z] 	at java.base/java.security.KeyPairGenerator.initialize(KeyPairGenerator.java:436)
[2023-03-30T00:25:37.642Z] 	at TestECGenSpec.main(TestECGenSpec.java:93)
[2023-03-30T00:25:37.642Z] 	at PKCS11Test.premain(PKCS11Test.java:223)
[2023-03-30T00:25:37.642Z] 	at PKCS11Test.testNSS(PKCS11Test.java:585)
[2023-03-30T00:25:37.642Z] 	at PKCS11Test.main(PKCS11Test.java:259)
[2023-03-30T00:25:37.642Z] 	at TestECGenSpec.main(TestECGenSpec.java:46)
[2023-03-30T00:25:37.642Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2023-03-30T00:25:37.642Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2023-03-30T00:25:37.642Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2023-03-30T00:25:37.642Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2023-03-30T00:25:37.642Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2023-03-30T00:25:37.642Z] 	at java.base/java.lang.Thread.run(Thread.java:839)
[2023-03-30T00:25:37.642Z] 
[2023-03-30T00:25:37.642Z] JavaTest Message: Test threw exception: java.security.InvalidAlgorithmParameterException: EC key must be at least 256 bits. The specific key size 192 is not supported

[2023-03-30T01:10:39.600Z] jdk_security3_0_FAILED

JasonFengJ9 avatar Mar 30 '23 22:03 JasonFengJ9

JDK11 x86-64 milestone 2(ubu22x86-rt5-1)

[2023-06-29T00:26:37.440Z] variation: Mode150
[2023-06-29T00:26:37.440Z] JVM_OPTIONS:  -XX:+UseCompressedOops 

[2023-06-29T00:43:55.724Z] TEST: sun/security/pkcs11/ec/TestECDH.java

[2023-06-29T00:43:55.725Z] STDERR:
[2023-06-29T00:43:55.725Z] java.security.spec.InvalidKeySpecException: Could not create EC public key
[2023-06-29T00:43:55.725Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.engineGeneratePublic(P11ECKeyFactory.java:173)
[2023-06-29T00:43:55.725Z] 	at java.base/java.security.KeyFactory.generatePublic(KeyFactory.java:346)
[2023-06-29T00:43:55.725Z] 	at TestECDH.test(TestECDH.java:149)
[2023-06-29T00:43:55.725Z] 	at TestECDH.main(TestECDH.java:127)
[2023-06-29T00:43:55.725Z] 	at PKCS11Test.premain(PKCS11Test.java:224)
[2023-06-29T00:43:55.725Z] 	at PKCS11Test.testNSS(PKCS11Test.java:600)
[2023-06-29T00:43:55.725Z] 	at PKCS11Test.main(PKCS11Test.java:260)
[2023-06-29T00:43:55.725Z] 	at TestECDH.main(TestECDH.java:180)
[2023-06-29T00:43:55.725Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2023-06-29T00:43:55.725Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2023-06-29T00:43:55.725Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2023-06-29T00:43:55.725Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2023-06-29T00:43:55.725Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2023-06-29T00:43:55.725Z] 	at java.base/java.lang.Thread.run(Thread.java:839)
[2023-06-29T00:43:55.725Z] Caused by: java.security.InvalidKeyException: Could not create EC public key
[2023-06-29T00:43:55.725Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.implTranslatePublicKey(P11ECKeyFactory.java:130)
[2023-06-29T00:43:55.725Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.engineGeneratePublic(P11ECKeyFactory.java:171)
[2023-06-29T00:43:55.725Z] 	... 13 more
[2023-06-29T00:43:55.725Z] Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DOMAIN_PARAMS_INVALID
[2023-06-29T00:43:55.725Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_CreateObject(Native Method)
[2023-06-29T00:43:55.725Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11$InnerPKCS11.C_CreateObject(PKCS11.java:191)
[2023-06-29T00:43:55.725Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.generatePublic(P11ECKeyFactory.java:254)
[2023-06-29T00:43:55.725Z] 	at jdk.crypto.cryptoki/sun.security.pkcs11.P11ECKeyFactory.implTranslatePublicKey(P11ECKeyFactory.java:110)
[2023-06-29T00:43:55.725Z] 	... 14 more

[2023-06-29T00:43:55.730Z] TEST RESULT: Failed. Execution failed: `main' threw exception: java.security.InvalidAlgorithmParameterException: EC key must be at least 256 bits. The specific key size 192 is not supported
[2023-06-29T00:43:55.730Z] --------------------------------------------------
[2023-06-29T01:22:11.710Z] Test results: passed: 766; failed: 3
[2023-06-29T01:22:18.824Z] Report written to /home/jenkins/workspace/Test_openjdk11_j9_extended.openjdk_x86-64_linux/aqa-tests/TKG/output_16879935271187/jdk_security3_0/report/html/report.html
[2023-06-29T01:22:18.824Z] Results written to /home/jenkins/workspace/Test_openjdk11_j9_extended.openjdk_x86-64_linux/aqa-tests/TKG/output_16879935271187/jdk_security3_0/work
[2023-06-29T01:22:18.824Z] Error: Some tests failed or other problems occurred.
[2023-06-29T01:22:18.824Z] -----------------------------------
[2023-06-29T01:22:18.824Z] jdk_security3_0_FAILED

JasonFengJ9 avatar Jul 03 '23 18:07 JasonFengJ9