-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
8318599: HttpURLConnection cache issues leading to crashes in JGSS w/ native GSS introduced by 8303809 #16347
Conversation
👋 Welcome back michaelm! A progress list of the required criteria for merging this PR into |
@Michael-Mc-Mahon The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
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.
LGTM
@Michael-Mc-Mahon 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:
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 |
/integrate |
Hi @nicowilliams, thanks for making a comment in an OpenJDK project! All comments and discussions in the OpenJDK Community must be made available under the OpenJDK Terms of Use. If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please Use "Add GitHub user nicowilliams for the summary. If you are not an OpenJDK Author, Committer or Reviewer, simply check the box below to accept the OpenJDK Terms of Use for your comments.
Your comment will be automatically restored once you have accepted the OpenJDK Terms of Use. |
Going to push as commit f1a24f6.
Your commit was automatically rebased without conflicts. |
@Michael-Mc-Mahon Pushed as commit f1a24f6. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Is this fix expected to be backported to the LTS versions that were affected when https://bugs.openjdk.org/browse/JDK-8303809 was backported? |
Hi,
This fix resolves a VM crash issue caused by a memory use after free in JGSS native code. The cause is the
java.net.HttpURLConnection
implementation which is incorrectly caching GSS context objects which end up being used and reused by multiple threads in parallel, and in fact should only be used once, with separate instances for separate requests (requiring authentication). The fix is very simple and is just that the NegotiateAuthentication class needs to be marked as non-cacheable. A test is not included here as it requires testing against real servers that aren't publicly accessible.Thanks,
Michael
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/16347/head:pull/16347
$ git checkout pull/16347
Update a local copy of the PR:
$ git checkout pull/16347
$ git pull https://git.openjdk.org/jdk.git pull/16347/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 16347
View PR using the GUI difftool:
$ git pr show -t 16347
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/16347.diff
Webrev
Link to Webrev Comment