Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1335925 - glibc: Fix aarch64 ABI issues
glibc: Fix aarch64 ABI issues
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: glibc (Show other bugs)
7.3
aarch64 Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Florian Weimer
Arjun Shankar
: Patch
Depends On: 1335629 1346397
Blocks: 1277314
  Show dependency treegraph
 
Reported: 2016-05-13 10:32 EDT by Florian Weimer
Modified: 2016-11-03 04:32 EDT (History)
7 users (show)

See Also:
Fixed In Version: glibc-2.17-135.el7
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-11-03 04:32:06 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Sourceware 18400 None None None 2016-05-13 10:33 EDT
Sourceware 18648 None None None 2016-05-13 10:32 EDT
Red Hat Product Errata RHSA-2016:2573 normal SHIPPED_LIVE Low: glibc security, bug fix, and enhancement update 2016-11-03 08:05:56 EDT

  None (edit)
Description Florian Weimer 2016-05-13 10:32:54 EDT
We need to backport several patches from glibc upstream to maintain ABI compatibility with upstream.

The patches identified so far are (the first one is minor):

commit 5c40c3bab2fddaca8cfe12d75944d1fef8adf1a4
Author: Alan Hayward <alan.hayward@arm.com>
Date:   Tue Nov 11 16:32:34 2014 +0000

     [AArch64] Add ipc.h.

     Adding ipc.h for AArch64 adjusted to behave correctly on big endian
     targets.

commit 14d623bcd178d336b47fdb4f0c973720d56d907c
Author: Szabolcs Nagy <nsz@port70.net>
Date:   Thu Jul 9 09:39:51 2015 +0100

     [AArch64][BZ 18400] fix elf_prpsinfo in procfs.h

     Kernel uses int pr_uid, pr_gid, but glibc used unsigned short.

     This is an ABI breaking change, but the size and alignment of
     the struct and the layout of other members is not changed and
     there is no known usage of pr_uid and pr_gid so it is expected
     to be safe.

         [BZ #18400]
         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
         Fix pr_uid and pr_gid members.

commit b8528e771c0f31ebb8ac2470e2cf7ee9a50693e2
Author: Szabolcs Nagy <nsz@port70.net>
Date:   Thu Jul 9 09:53:30 2015 +0100

     [AArch64][BZ 18648] change greg_t definition in ucontext.h

     This is an ABI breaking change, but

         typedef int greg_t;

     is not a useful definition on aarch64.

     greg_t is usually used for defining gregset_t which is used
     in mcontext_t.  The general registers in mcontext_t can only
     be accessed by target specific code and on aarch64 greg_t
     is not needed for that so this change is not supposed to break
     existing code, just fix the definition.

         [BZ #18648]
         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
         definition to elf_greg_t.

     (Added another BZ entry that was missed in the previous commit).


This seems to be also worth having (the ABI impact is very indirect, though):

commit 2b1d7148e3664eeb177ae2fc91bf282d75da7623
Author: Szabolcs Nagy <nsz@port70.net>
Date:   Mon Jul 6 12:46:43 2015 +0100

     [AArch64] make setcontext etc functions consistent with the kernel
Comment 2 Yaakov Selkowitz 2016-05-17 17:29:43 EDT
Can bug 1221046 be fixed as well?
Comment 6 errata-xmlrpc 2016-11-03 04:32:06 EDT
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, 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://rhn.redhat.com/errata/RHSA-2016-2573.html

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