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

8299593: getprotobyname should not be used #11842

Closed
wants to merge 2 commits into from

Conversation

djelinski
Copy link
Member

@djelinski djelinski commented Jan 4, 2023

Please review this patch that removes the remaining uses of non-reentrant getprotobyname function.

While the protocol number for TCP could theoretically be modified to something other than the default IPPROTO_TCP, that scenario would likely not work, and is not something that we are willing to support. Existing code in networking area is using IPPROTO_TCP for TCP_NODELAY, and no issues were reported.

Tier 1-3 tests still pass.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/11842/head:pull/11842
$ git checkout pull/11842

Update a local copy of the PR:
$ git checkout pull/11842
$ git pull https://git.openjdk.org/jdk pull/11842/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 11842

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/11842.diff

Sorry, something went wrong.

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 4, 2023

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

@openjdk
Copy link

openjdk bot commented Jan 4, 2023

@djelinski The following label will be automatically applied to this pull request:

  • serviceability

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.

@openjdk openjdk bot added the serviceability serviceability-dev@openjdk.org label Jan 4, 2023
@djelinski djelinski changed the title Tcp proto 8299593 Jan 4, 2023
@openjdk openjdk bot changed the title 8299593 8299593: getprotobyname should not be used Jan 4, 2023
@djelinski djelinski marked this pull request as ready for review January 4, 2023 14:33
@openjdk openjdk bot added the rfr Pull request is ready for review label Jan 4, 2023
@mlbridge
Copy link

mlbridge bot commented Jan 4, 2023

Webrevs

Copy link
Contributor

@AlanBateman AlanBateman left a comment

Choose a reason for hiding this comment

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

Looks okay, should be no reason to use getprotobyname here. I assume everything would break if /etc/protocols were changed to set to another value.

Copy link
Contributor

@plummercj plummercj left a comment

Choose a reason for hiding this comment

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

Looks good.

@openjdk
Copy link

openjdk bot commented Jan 6, 2023

@djelinski 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:

8299593: getprotobyname should not be used

Reviewed-by: cjplummer

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 55 new commits pushed to the master branch:

  • d086e82: 8299600: Use Objects.check*() where appropriate in java.io
  • 4a95c74: 8299425: "LCMSImageLayout.isIntPacked" flag can be deleted
  • d6d6eb4: 8299699: Test runtime/cds/appcds/WrongClasspath.java fails after JDK-8299329
  • 8c70bf3: 8299544: Improve performance of CRC32C intrinsics (non-AVX-512) for small inputs
  • d6e9f01: 8285416: [LOOM] Some nsk/jdi tests fail due to needing too many virtual threads
  • ba03f42: 8299746: Accept unknown signatureAlgorithm in PKCS7 SignerInfo
  • 3dcf700: 8299336: InputStream::DEFAULT_BUFFER_SIZE should be 16384
  • 1e99729: 8299274: Add elements to resolved_references consistently
  • 8cc1669: 8299721: [Vector API] assert in switch-default of LibraryCallKit::arch_supports_vector_rotate is too weak to catch bugs
  • 5598acc: 8294403: [REDO] make test should report only on executed tests
  • ... and 45 more: https://git.openjdk.org/jdk/compare/245f0cf4ac9dc655bfe2abb1c88c6ed1ddffd291...master

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 added the ready Pull request is ready to be integrated label Jan 6, 2023
@djelinski
Copy link
Member Author

/integrate

@openjdk
Copy link

openjdk bot commented Jan 9, 2023

Going to push as commit d03a5d9.
Since your change was applied there have been 69 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 Jan 9, 2023
@openjdk openjdk bot closed this Jan 9, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jan 9, 2023
@openjdk
Copy link

openjdk bot commented Jan 9, 2023

@djelinski Pushed as commit d03a5d9.

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

@djelinski djelinski deleted the tcp-proto branch January 10, 2023 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated serviceability serviceability-dev@openjdk.org
Development

Successfully merging this pull request may close these issues.

None yet

3 participants