Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge master jdk-11.0.21+9 into openj9-staging #720

Merged
merged 23 commits into from
Oct 18, 2023

Conversation

JasonFengJ9
Copy link
Member

Merge master jdk-11.0.21+9 into openj9-staging

Conflicts:

	src/java.base/share/classes/sun/security/rsa/RSAPublicKeyImpl.java
	src/jdk.crypto.ec/share/classes/sun/security/ec/ECPrivateKeyImpl.java
	src/jdk.crypto.ec/share/classes/sun/security/ec/ECPublicKeyImpl.java
	src/jdk.crypto.ec/share/classes/sun/security/ec/XDHPublicKeyImpl.java

Signed-off-by: Jason Feng fengj@ca.ibm.com

JasonFengJ9 and others added 23 commits September 18, 2023 16:05
Added --enable-openjdk-crac-support, xa64 is enabled by default, other platforms are disabled by default;
If OPENJ9_ENABLE_OPENJDK_CRAC_SUPPORT is on, opt_openjdkCracSupport and OPENJDK_CRAC_SUPPORT are enabled.

Signed-off-by: Jason Feng fengj@ca.ibm.com

Signed-off-by: Jason Feng <fengj@ca.ibm.com>
CRIU adds OPENJ9_ENABLE_OPENJDK_CRAC_SUPPORT
Signed-off-by: Jason Feng <fengj@ca.ibm.com>
Signed-off-by: Jason Feng <fengj@ca.ibm.com>
Rename OPENJDK_CRAC_SUPPORT to CRAC_SUPPORT
AIX puts zlibNX on the LIBPATH when running on P9 or later, but having
this in the environment may cause some things, such as git clone, to
fail when exec'ed from Java. For example,
`fatal: pack has bad object at offset 3872100: inflate returned -5`

Backport of ibmruntimes/openj9-openjdk-jdk#664

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Depends on eclipse-openj9/openj9#18169

Signed-off-by: tajila <atobia@ca.ibm.com>
Look for -XX:[+/-]UseZlibNX on AIX
Register natives in ConstantPool init
At the moment, if there is an OpenSSL failure when using
NativeECKeyPairGenerator, a flag for that particular curve is set and
the Sun Java implementation is used to complete the task.

If another instance of NativeECKeyPairGenerator reaches the same
failure, a ProviderException is thrown, as the issue with that
particular curve should have been discovered during the call to
initialize() thus creating and using an instance of ECKeyPairGenerator,
and that particular point should never have been reached.

However, in the scenario where the second instance of
NativeECKeyPairGenerator has been initialized earlier, the flag for the
problematic curve will never be discovered.

This fix ensures that we always revert to the Sun Java implementation
when an OpenSSL failure occurs.

Signed-off by: Kostas Tsiounis <kostas.tsiounis@ibm.com>
Always revert to Java impl when OpenSSL fails
Reviewed-by: mbalao
Backport-of: 111811e64245ae720a0617b7de0c52c60bb2bac1
Reviewed-by: mbalao
Backport-of: 244b89fc786894cb8cca742f91875ebb98b603ff
Reviewed-by: mbalao
Backport-of: d25ee81f56d67f2c51ba8b8c59f470c6f88ae47f
Reviewed-by: clanger
Backport-of: 8cd9241448f818b5e307d408ac4395b518791096
Reviewed-by: mbalao
Backport-of: 89fd6d34f859d61d9cf5a1edf9419eee7c338390
Reviewed-by: mbalao
Backport-of: 7f5e120a631ffda3e6d5efc03bae572b21877b69
Reviewed-by: mbalao, andrew, clanger
Conflicts:
	src/java.base/share/classes/sun/security/rsa/RSAPublicKeyImpl.java
	src/jdk.crypto.ec/share/classes/sun/security/ec/ECPrivateKeyImpl.java
	src/jdk.crypto.ec/share/classes/sun/security/ec/ECPublicKeyImpl.java
	src/jdk.crypto.ec/share/classes/sun/security/ec/XDHPublicKeyImpl.java

Signed-off-by: Jason Feng <fengj@ca.ibm.com>
Signed-off-by: Jason Feng <fengj@ca.ibm.com>
@keithc-ca keithc-ca merged commit 45b9d06 into ibmruntimes:openj9-staging Oct 18, 2023
0 of 2 checks passed
@JasonFengJ9 JasonFengJ9 deleted the mergetmp branch October 18, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants