-
Notifications
You must be signed in to change notification settings - Fork 172
8263404: RsaPrivateKeySpec is always recognized as RSAPrivateCrtKeySpec in RSAKeyFactory.engineGetKeySpec #302
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
Conversation
|
👋 Welcome back phh! A progress list of the required criteria for merging this PR into |
|
This backport pull request has now been updated with issue from the original commit. |
Webrevs
|
|
@martinuy @franferrax Could you please help review this? Thanks! |
simonis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good except for a small cosmetic issue in p11-nss-sensitive.txt.
| CKM_DSA_SHA3_224 | ||
| CKM_DSA_SHA3_256 | ||
| CKM_DSA_SHA3_384 | ||
| CKM_DSA_SHA3_512 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These *_SHA3_* entries here and below have been removed from the 11u-dev downport because SHA3 support was only introduced in JDK 16 (see the 11u review thread).
I suggest to remove them here as well to be on par with the 11u downport.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They should be kept. The definitions are added by JDK-8244154, not JDK-8242332. You said the tests passed before they were removed, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added them back.
simonis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now. Thanks!
|
@phohensee This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
|
This is a critical fix for 8u372, so replaced this PR with openjdk/jdk8u#41. |
martinuy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @phohensee ,
Thanks for contributing this backport. Looks good to me.
8u is frozen as of 2023-03-24. This PR should be used, and then we can consider separately whether this should be included with the security fixes. |
|
Thanks for the reviews, Volker and Martin. Andrew, I've additionally tagged the issue with jdk8u-fix-request. I'll push this PR as soon as it's approved. |
gnu-andrew
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backport looks correct, apart from the removal of the SHA3 definitions. Those values are defined in 8u by JDK-8244154, even if they are not used by the PKCS11 provider, so I see no reason to diverge the configuration, unless it causes a test failure.
|
I'm okay either way, but I wonder why specifying a list of disabled PKCS #11 mechanisms would be necessary for the test. This is a question for the original fix, though. |
|
The 8u JDK-8244154 backport https://hg.openjdk.org/jdk8u/jdk8u/hotspot/rev/803cbdf0f152 includes just the readme comment update, while the 11u backport https://hg.openjdk.org/jdk-updates/jdk11u/rev/87e85e5123dd includes much else. 8u and 11u both define the SHA3 mechanisms in share/native/sun/security/pkcs11/wrapper/pkcs11t.h, but the 11u JDK-8263404 backport doesn't include them in p11-nss-sensitive.txt. In light of the above, shall we stay with 11u backport compatibility or add the SHA3 mechanisms back to p11-nss-sensitive.txt? |
There are eight 8u changesets for this change, in light of the forest of repository used at the time and the need to update The meat of the change is c52caa9#diff-a616f7793085d46b7c847c0b4a5b81f3f7c7b7d66fd3d7212c1dd3aa49385b00R665 which includes the SHA3 definitions. I tend towards keeping the trunk version of Incidentally, the |
…m TestP11KeyFactoryGetRSAKeySpec.java
|
I've added the SHA3 mechanisms back to p11-nss-sensitive.txt and removed @modules from TestP11KeyFactoryGetRSAKeySpec.java. |
gnu-andrew
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Paul. Approved for 8u-dev.
|
Thanks, Andrew. |
|
/integrate |
|
Going to push as commit 4445e5c. |
|
@phohensee Pushed as commit 4445e5c. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
The backport from 11u was not clean because:
The new test and the modified existing tests pass, and the jdk/test/sun/security/pkcs11 tests pass as well as they did before this change.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/302/head:pull/302$ git checkout pull/302Update a local copy of the PR:
$ git checkout pull/302$ git pull https://git.openjdk.org/jdk8u-dev.git pull/302/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 302View PR using the GUI difftool:
$ git pr show -t 302Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/302.diff
Webrev
Link to Webrev Comment