-
Notifications
You must be signed in to change notification settings - Fork 6.2k
JDK-8308350: Increase buffer size for jspawnhelper arguments #14045
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
JDK-8308350: Increase buffer size for jspawnhelper arguments #14045
Conversation
|
👋 Welcome back stuefe! A progress list of the required criteria for merging this PR into |
aa1d97d to
6fda35f
Compare
|
GHAs are all suffering from infrastructure problems. |
Webrevs
|
…or-jspawnhelper-arguments
RogerRiggs
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.
Trivial
|
@tstuefe 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 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
|
Thanks @RogerRiggs ! /integrate |
Trivial fix for a small problem.
jspawnhelper gets handed several file descriptors as arguments. The buffer size for this string is too small (7 chars per fd) to print out every conceivable int. This will overun the buffer if we happen to have fds larger than (printed size) 7 characters. This could lead to crashes or malfunctions if the parent VM has opened a large amount of file descriptors.
Note that on Linux, this can normally not happen since the kernel limits the number of open file descriptors per process to 1M, and these fds are still printable within the limits of this buffer. It is possible to get more fds per process, but only via kernel patch. But we still should not rely on that. And there is also still MacOS using the same mechanism.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/14045/head:pull/14045$ git checkout pull/14045Update a local copy of the PR:
$ git checkout pull/14045$ git pull https://git.openjdk.org/jdk.git pull/14045/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 14045View PR using the GUI difftool:
$ git pr show -t 14045Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/14045.diff
Webrev
Link to Webrev Comment