dragonwell-project / dragonwell8

Alibaba Dragonwell8 JDK
http://dragonwell-jdk.io
GNU General Public License v2.0
4.2k stars 497 forks source link

[dragonwell8.20.21][standard][x64]aqavit_extended.openjdk测试-XX:+UseCompressedOops选项下sun/security/pkcs11/fips/TestTLS12.java报错java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ARGUMENTS_BAD #675

Closed sendaoYan closed 1 month ago

sendaoYan commented 1 month ago

【环境准备】
BINARY_URL=oss://dragonwell/8.20.21-test-dragonwell_standard/Alibaba_Dragonwell_Standard_8.20.21_x64_linux.tar.gz

执行机器:47.254.129.139(物理机)
cd /home/admin/workspace/Test_openjdk8_dragonwell_extended.openjdk_x86-64_linux_cur/aqa-tests

执行命令:
/home/admin/workspace/Test_openjdk8_dragonwell_extended.openjdk_x86-64_linux_cur/jdkbinary/j2sdk-image/bin/java -Xmx512m -jar ../jvmtest/openjdk/jtreg/lib/jtreg.jar -agentvm -a -ea -esa -v:fail,error,time,nopass -retain:fail,error,*.dmp,javacore.*,heapdump.*,*.trc -ignore:quiet -timeoutFactor:8 -xml:verify -concurrency:9 -vmoptions:"-Xmx512m -XX:-UseCompressedOops" -w tmp openjdk/openjdk-jdk/jdk/test/sun/security/pkcs11/fips/TestTLS12.java

【pipeline】
x64失败 aarch64正常
http://ci.dragonwell-jdk.io/job/Test_openjdk8_dragonwell_extended.openjdk_x86-64_linux/173/consoleFull

【对比测试】
dragonwell8 release 同样失败
jdk:
https://dragonwell.oss-cn-shanghai.aliyuncs.com/8.19.20/Alibaba_Dragonwell_Standard_8.19.20_x64_linux.tar.gz
pipeline:
http://ci.dragonwell-jdk.io/job/Test_openjdk8_dragonwell_extended.openjdk_x86-64_linux/178/console

Temurin8 同样失败
jdk:
https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05/OpenJDK8U-jdk_x64_linux_hotspot_8u422b05.tar.gz
pipeline:
http://ci.dragonwell-jdk.io/job/Test_openjdk8_dragonwell_extended.openjdk_x86-64_linux/179/console

【用例日志】
详细日志:extended_openjdk.txt
部分日志:

11:50:05  STDERR:
11:50:05  java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ARGUMENTS_BAD
11:50:05    at sun.security.pkcs11.P11KeyPairGenerator.generateKeyPair(P11KeyPairGenerator.java:422)
11:50:05    at java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:697)
11:50:05    at sun.security.ssl.DHKeyExchange$DHEPossession.generateDHKeyPair(DHKeyExchange.java:181)
11:50:05    at sun.security.ssl.DHKeyExchange$DHEPossession.<init>(DHKeyExchange.java:139)
11:50:05    at sun.security.ssl.DHKeyExchange$DHEPossessionGenerator.createPossession(DHKeyExchange.java:389)
11:50:05    at sun.security.ssl.SSLKeyExchange$T12KeyAgreement.createPossession(SSLKeyExchange.java:376)
11:50:05    at sun.security.ssl.SSLKeyExchange.createPossessions(SSLKeyExchange.java:89)
11:50:05    at sun.security.ssl.ServerHello$T12ServerHelloProducer.chooseCipherSuite(ServerHello.java:433)
11:50:05    at sun.security.ssl.ServerHello$T12ServerHelloProducer.produce(ServerHello.java:296)
11:50:05    at sun.security.ssl.SSLHandshake.produce(SSLHandshake.java:421)
11:50:05    at sun.security.ssl.ClientHello$T12ClientHelloConsumer.consume(ClientHello.java:1009)
11:50:05    at sun.security.ssl.ClientHello$ClientHelloConsumer.onClientHello(ClientHello.java:716)
11:50:05    at sun.security.ssl.ClientHello$ClientHelloConsumer.consume(ClientHello.java:682)
11:50:05    at sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:377)
11:50:05    at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:444)
11:50:05    at sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:981)
11:50:05    at sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:968)
11:50:05    at java.security.AccessController.doPrivileged(Native Method)
11:50:05    at sun.security.ssl.SSLEngineImpl$DelegatedTask.run(SSLEngineImpl.java:915)
11:50:05    at TestTLS12$testTLS12SunPKCS11Communication.runDelegatedTasks(TestTLS12.java:363)
11:50:05    at TestTLS12$testTLS12SunPKCS11Communication.run(TestTLS12.java:312)
11:50:05    at TestTLS12.main(TestTLS12.java:92)
11:50:05    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:50:05    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
11:50:05    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
11:50:05    at java.lang.reflect.Method.invoke(Method.java:498)
11:50:05    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
11:50:05    at java.lang.Thread.run(Thread.java:750)
11:50:05  Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ARGUMENTS_BAD
11:50:05    at sun.security.pkcs11.wrapper.PKCS11.C_GenerateKeyPair(Native Method)
11:50:05    at sun.security.pkcs11.P11KeyPairGenerator.generateKeyPair(P11KeyPairGenerator.java:414)
11:50:05    ... 27 more
11:50:05  
11:50:05  JavaTest Message: Test threw exception: java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ARGUMENTS_BAD
11:50:05  JavaTest Message: shutting down test

【版本信息】

+uname -a ; cat /etc/os-release ; free -h ; lscpu | head -n 25 ;
Linux iZgw8du5lev6ljk1j9f2i1Z 5.4.0-137-generic #154-Ubuntu SMP Thu Jan 5 17:03:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
              total        used        free      shared  buff/cache   available
Mem:           61Gi       1.7Gi       6.2Gi       1.0Mi        53Gi        59Gi
Swap:         2.0Gi       4.0Mi       1.9Gi
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   46 bits physical, 57 bits virtual
CPU(s):                          16
On-line CPU(s) list:             0-15
Thread(s) per core:              2
Core(s) per socket:              8
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           106
Model name:                      Intel(R) Xeon(R) Platinum 8369B CPU @ 2.70GHz
Stepping:                        6
CPU MHz:                         3525.015
BogoMIPS:                        5399.99
Hypervisor vendor:               KVM
Virtualization type:             full
L1d cache:                       384 KiB
L1i cache:                       256 KiB
L2 cache:                        10 MiB
L3 cache:                        48 MiB
NUMA node0 CPU(s):               0-15
Vulnerability Itlb multihit:     Not affected
sendaoYan commented 1 month ago

https://github.com/adoptium/aqa-tests/pull/5521