cvs-hwcap-AT_SECURE
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sun, 18 Jun 2017 18:04:53 +0000 (19:04 +0100)
committerAurelien Jarno <aurel32@debian.org>
Sun, 18 Jun 2017 18:04:53 +0000 (19:04 +0100)
2017-03-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>

[BZ #21209]
* elf/rtld.c (process_envvars): Ignore LD_HWCAP_MASK for
AT_SECURE processes.

Gbp-Pq: Topic any
Gbp-Pq: Name cvs-hwcap-AT_SECURE.diff

elf/rtld.c
sysdeps/generic/unsecvars.h

index 500789d3c87a2a266d4980456be454bc645bcc50..1d4f5d623b7c7867eab71304c411665a10d9767a 100644 (file)
@@ -2550,7 +2550,8 @@ process_envvars (enum mode *modep)
 
        case 10:
          /* Mask for the important hardware capabilities.  */
-         if (memcmp (envline, "HWCAP_MASK", 10) == 0)
+         if (!__libc_enable_secure
+             && memcmp (envline, "HWCAP_MASK", 10) == 0)
            GLRO(dl_hwcap_mask) = __strtoul_internal (&envline[11], NULL,
                                                      0, 0);
          break;
index 3e56538b51c4acefff9aa9fb805ae22c641646f1..ac57bd5db007f2d133e8dd5210e47133de53353a 100644 (file)
@@ -10,6 +10,7 @@
   "LD_DEBUG\0"                                                               \
   "LD_DEBUG_OUTPUT\0"                                                        \
   "LD_DYNAMIC_WEAK\0"                                                        \
+  "LD_HWCAP_MASK\0"                                                          \
   "LD_LIBRARY_PATH\0"                                                        \
   "LD_ORIGIN_PATH\0"                                                         \
   "LD_PRELOAD\0"                                                             \