Skip to content

8368694: PKCS11-NSS generic keys generated by DH have leading zeroes stripped - #4617

Closed
GoeLin wants to merge 5 commits into
openjdk:masterfrom
GoeLin:gbp_8368694
Closed

8368694: PKCS11-NSS generic keys generated by DH have leading zeroes stripped#4617
GoeLin wants to merge 5 commits into
openjdk:masterfrom
GoeLin:gbp_8368694

Conversation

@GoeLin

@GoeLin GoeLin commented Aug 14, 2026

Copy link
Copy Markdown
Member

I backport this for parity with 17.0.21-oracle from 25.

Resolved one copyright, probably clean anyways.



Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8368694 needs maintainer approval

Issue

  • JDK-8368694: PKCS11-NSS generic keys generated by DH have leading zeroes stripped (Bug - P4 - Approved)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/4617/head:pull/4617
$ git checkout pull/4617

Update a local copy of the PR:
$ git checkout pull/4617
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/4617/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 4617

View PR using the GUI difftool:
$ git pr show -t 4617

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/4617.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper

bridgekeeper Bot commented Aug 14, 2026

Copy link
Copy Markdown

👋 Welcome back goetz! A progress list of the required criteria for merging this PR into pr/4616 will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk

openjdk Bot commented Aug 14, 2026

Copy link
Copy Markdown

@GoeLin This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8368694: PKCS11-NSS generic keys generated by DH have leading zeroes stripped

Reviewed-by: andrew

You can use pull request commands such as /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 4 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk Bot changed the title backport 914b44e277df23418736eb00c022bbd829d64e11 8368694: PKCS11-NSS generic keys generated by DH have leading zeroes stripped Aug 14, 2026
@openjdk

openjdk Bot commented Aug 14, 2026

Copy link
Copy Markdown

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk Bot added backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required rfr Pull request is ready for review labels Aug 14, 2026
@mlbridge

mlbridge Bot commented Aug 14, 2026

Copy link
Copy Markdown

Webrevs

@openjdk openjdk Bot added approval Requires approval; will be removed when approval is received and removed approval Requires approval; will be removed when approval is received labels Aug 16, 2026
@gnu-andrew

Copy link
Copy Markdown
Member

Dropped approval for this one until it is in its final form against master.

@GoeLin
GoeLin changed the base branch from pr/4616 to master August 21, 2026 11:49
@openjdk openjdk Bot removed the clean Identical backport; no merge resolution required label Aug 21, 2026

@gnu-andrew gnu-andrew left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still contains the changes removed in #4616

@openjdk openjdk Bot added the clean Identical backport; no merge resolution required label Aug 23, 2026
@GoeLin

GoeLin commented Aug 23, 2026

Copy link
Copy Markdown
Member Author

Hi @gnu-andrew
Sorry, that's the downside of dependent PRs, they require a merge, and this makes these errors. Thanks for catching this!

@GoeLin

GoeLin commented Aug 25, 2026

Copy link
Copy Markdown
Member Author

HI @gnu-andrew
Is this now fine to go? Could you please approve it? Thanks!

@gnu-andrew gnu-andrew left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed clean now.

@gnu-andrew

Copy link
Copy Markdown
Member

Hi @gnu-andrew Sorry, that's the downside of dependent PRs, they require a merge, and this makes these errors. Thanks for catching this!

Yes, I am always in two minds about whether to use them. They are mostly useful to the developer rather than the reviewers, and pretty much a must have if you need to make sure something works in GHA after multiple PRs (e.g. when we were moving 8u to a newer MacOS). I try to restrict them to these cases, or when a backport doesn't really make sense without being able to point to the one that depends on it (e.g. openjdk/jdk25u-dev#756 and openjdk/jdk25u-dev#757 that I just did myself).

FWIW, I do a rebase after it moves back to master, despite Skara's moans. Git is intelligent enough to match the upstream commit with the local one and just drop it, rather than trying to merge all the changes on top of themselves. This situation is only created in the first place because Skara rebases commits before pushing and thus changes the commit ID.

I removed the approval for this reason. Sorry for not getting back to it earlier this week, but I had to chase changes for the upcoming RHEL releases yesterday.

/approve yes

@openjdk

openjdk Bot commented Aug 26, 2026

Copy link
Copy Markdown

@gnu-andrew
8368694: The approval request has been approved.

@openjdk openjdk Bot added ready Pull request is ready to be integrated and removed approval Requires approval; will be removed when approval is received labels Aug 26, 2026
@GoeLin

GoeLin commented Aug 26, 2026

Copy link
Copy Markdown
Member Author

Thanks for the approval!

@GoeLin

GoeLin commented Aug 26, 2026

Copy link
Copy Markdown
Member Author

/integrate

@openjdk

openjdk Bot commented Aug 26, 2026

Copy link
Copy Markdown

Going to push as commit 1467219.
Since your change was applied there have been 4 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk Bot added the integrated Pull request has been integrated label Aug 26, 2026
@openjdk openjdk Bot closed this Aug 26, 2026
@openjdk openjdk Bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Aug 26, 2026
@openjdk

openjdk Bot commented Aug 26, 2026

Copy link
Copy Markdown

@GoeLin Pushed as commit 1467219.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@GoeLin
GoeLin deleted the gbp_8368694 branch August 26, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

2 participants