RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2159458 - Do not restart close if errno is EINTR [rhel-7.9.z]
Summary: Do not restart close if errno is EINTR [rhel-7.9.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: java-1.8.0-openjdk
Version: 7.9
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Andrew John Hughes
QA Contact: OpenJDK QA
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-09 16:44 UTC by Andrew Mike
Modified: 2023-04-25 02:50 UTC (History)
11 users (show)

Fixed In Version: java-1.8.0-openjdk-1.8.0.372.b07-1.el7_9
Doc Type: Release Note
Doc Text:
Native code within the OpenJDK code base attempted to call close() on a file descriptor repeatedly if it returned the error code, EINTR. However, the close() native call is not restartable and this caused the virtual machine to crash. The close() call is now only made once.
Clone Of:
Environment:
Last Closed: 2023-04-25 02:49:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-144557 0 None None None 2023-01-09 17:03:07 UTC
Red Hat Product Errata RHSA-2023:1904 0 None None None 2023-04-25 02:49:57 UTC
openjdk bug system JDK-8205959 0 None None None 2023-01-09 16:46:38 UTC

Description Andrew Mike 2023-01-09 16:44:48 UTC
Description of problem (from upstream bug):

In java.base/linux/native/libnet/linux_close.c:

        do {
            if (fd1 < 0) {
                rv = close(fd2);
            } else {
                rv = dup2(fd1, fd2);
            }
        } while (rv == -1 && errno == EINTR);

However, the close() call is not restartable.
Only dup2() needs to be restarted if interrupted. 


Version-Release number of selected component (if applicable):
All versions

Additional info:
- This is a request from one of our customers to backport the patch for https://bugs.openjdk.org/browse/JDK-8205959 to OpenJDK 8. This was identified as the cause of one of their applications crashing by an external vendor.

Comment 3 Andrew John Hughes 2023-02-09 17:38:11 UTC
Pull request opened upstream: https://github.com/openjdk/jdk8u-dev/pull/267

Comment 4 Andrew John Hughes 2023-02-15 03:39:07 UTC
Included as part of jdk8u372-b03 so will be in the April release: https://bugs.openjdk.org/browse/JDK-8302271

Comment 13 errata-xmlrpc 2023-04-25 02:49:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: java-1.8.0-openjdk security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:1904


Note You need to log in before you can comment on or make changes to this bug.