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 2141685 - glibc: Restore IPC_64 support in sysvipc *ctl functions [rhel-9.2.0]
Summary: glibc: Restore IPC_64 support in sysvipc *ctl functions [rhel-9.2.0]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: glibc
Version: 9.2
Hardware: ppc64le
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Arjun Shankar
QA Contact: Sergey Kolosov
URL:
Whiteboard:
Depends On: 2141728
Blocks: 2141989 2142111 2142112
TreeView+ depends on / blocked
 
Reported: 2022-11-10 13:27 UTC by Florian Weimer
Modified: 2023-05-09 10:19 UTC (History)
15 users (show)

Fixed In Version: glibc-2.34-49.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2141989 2142111 2142112 (view as bug list)
Environment:
Last Closed: 2023-05-09 08:16:01 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1978412 0 unspecified CLOSED glibc doesn't add IPC_64 flag to shmctl(SHM_STAT_ANY, ...) calls on ppc64/ppc64le 2022-11-10 13:40:58 UTC
Red Hat Issue Tracker RHELPLAN-138999 0 None None None 2022-11-10 13:40:33 UTC
Red Hat Product Errata RHBA-2023:2481 0 None None None 2023-05-09 08:16:39 UTC
Sourceware 29771 0 P2 ASSIGNED Restore IPC_64 support in sysvipc *ctl functions 2022-11-10 13:27:11 UTC

Internal Links: 1978412

Description Florian Weimer 2022-11-10 13:27:11 UTC
In order to call SHM_STAT_ANY kernel operations through shmctl on older glibc, it was necessary to pass SHM_STAT_ANY | IPC_64 in the command argument, otherwise the ipc system call would be invoked without the IPC_64 flag, giving unexpected results on powerpc64le-linux-gnu at least.

Current glibc no longer supports that because it checks the command argument for validity without masking the IPC_64 bit.

Fixed upstream with this commit:

commit 22a46dee24351fd5f4f188ad80554cad79c82524
Author: Florian Weimer <fweimer>
Date:   Tue Nov 8 14:15:02 2022 +0100

    Linux: Support __IPC_64 in sysvctl *ctl command arguments (bug 29771)
    
    Old applications pass __IPC_64 as part of the command argument because
    old glibc did not check for unknown commands, and passed through the
    arguments directly to the kernel, without adding __IPC_64.
    Applications need to continue doing that for old glibc compatibility,
    so this commit enables this approach in current glibc.
    
    For msgctl and shmctl, if no translation is required, make
    direct system calls, as we did before the time64 changes.  If
    translation is required, mask __IPC_64 from the command argument.
    
    For semctl, the union-in-vararg argument handling means that
    translation is needed on all architectures.
    
    Reviewed-by: Adhemerval Zanella  <adhemerval.zanella>

Comment 9 errata-xmlrpc 2023-05-09 08:16:01 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 (glibc bug fix and enhancement 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/RHBA-2023:2481


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