]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
alpha: force old OSF1 syscalls for getegid, geteuid and getppid [BZ #24986]
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 14 Sep 2019 16:22:52 +0000 (18:22 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 14 Sep 2019 18:12:11 +0000 (20:12 +0200)
On alpha, Linux kernel 5.1 added the standard getegid, geteuid and
getppid syscalls (commit ecf7e0a4ad15287). Up to now alpha was using
the corresponding OSF1 syscalls through:
 - sysdeps/unix/alpha/getegid.S
 - sysdeps/unix/alpha/geteuid.S
 - sysdeps/unix/alpha/getppid.S

When building against kernel headers >= 5.1, the glibc now use the new
syscalls through sysdeps/unix/sysv/linux/syscalls.list. When it is then
used with an older kernel, the corresponding 3 functions fail.

A quick fix is to move the OSF1 wrappers under the
sysdeps/unix/sysv/linux/alpha directory so they override the standard
linux ones. A better fix would be to try the new syscalls and fallback
to the old OSF1 in case the new ones fail. This can be implemented in
a later commit.

Changelog:
[BZ #24986]
        * sysdeps/unix/alpha/getegid.S: Move to ...
* sysdeps/unix/sysv/linux/alpha/getegid.S: ... here.
        * sysdeps/unix/alpha/geteuid.S: Move to ...
* sysdeps/unix/sysv/linux/alpha/geteuid.S: ... here.
        * sysdeps/unix/alpha/getppid.S: Move to ...
* sysdeps/unix/sysv/linux/alpha/getppid.S: ... here

ChangeLog
NEWS
sysdeps/unix/sysv/linux/alpha/getegid.S [moved from sysdeps/unix/alpha/getegid.S with 100% similarity]
sysdeps/unix/sysv/linux/alpha/geteuid.S [moved from sysdeps/unix/alpha/geteuid.S with 100% similarity]
sysdeps/unix/sysv/linux/alpha/getppid.S [moved from sysdeps/unix/alpha/getppid.S with 100% similarity]

index 8ba3545e8c20032a41d7632af88e69681ccb43a7..1061c8c796f74a99bea81280e55e3538bb6b05c0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2019-09-14  Aurelien Jarno  <aurelien@aurel32.net>
+
+       [BZ #24986]
+        * sysdeps/unix/alpha/getegid.S: Move to ...
+       * sysdeps/unix/sysv/linux/alpha/getegid.S: ... here.
+        * sysdeps/unix/alpha/geteuid.S: Move to ...
+       * sysdeps/unix/sysv/linux/alpha/geteuid.S: ... here.
+        * sysdeps/unix/alpha/getppid.S: Move to ...
+       * sysdeps/unix/sysv/linux/alpha/getppid.S: ... here
+
 2019-09-13  Wilco Dijkstra  <wdijkstr@arm.com>
 
        * string/memmem.c (__memmem): Rewrite to improve performance.
diff --git a/NEWS b/NEWS
index 21520414d71b70129cdce1c45e9f681b20ff7d78..5dc41ff3eb0a7cf62f57aad9adb7a4143a9f7ad2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -33,6 +33,8 @@ The following bugs are resolved with this release:
   [24228] old x86 applications that use legacy libio crash on exit
   [24476] dlfcn: Guard __dlerror_main_freeres with __libc_once_get (once)
   [24744] io: Remove the copy_file_range emulation
+  [24986] alpha: new getegid, geteuid and getppid syscalls used
+    unconditionally
 
 Security related changes: