diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2017-05-19 01:42:01 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2017-05-19 01:42:01 +0530 |
commit | ce79740bdbccea312df6cfcf70689efb57792fc9 (patch) | |
tree | 851d717cf9c6197c5677041a6d65e2efc31bf15a /elf | |
parent | a449fc68f652ee3b4b048f30701cec19c91e96e8 (diff) | |
download | glibc-ce79740bdbccea312df6cfcf70689efb57792fc9.tar.gz |
Reduce value of LD_HWCAP_MASK for tst-env-setuid test case
It was discovered that the dynamic linker allocates a massive amount
of memory that increases with the value of LD_HWCAP_MASK. Due to
this, setting its value to 0xffffffff in the environment of
tst-env-setuid would cause it to fail in some environments where
overcommit was disabled or severely constrained because malloc would
fail.
Since this test is only concerned with the value of LD_HWCAP_MASK
envvar being conserved (or not, for setxid binaries), lower its value
to avoid spurious failures.
The allocation bug is reported as #21502.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/Makefile b/elf/Makefile index 2fd6bf79d9..201b328f88 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -1407,6 +1407,6 @@ $(objpfx)tst-nodelete-dlclose.out: $(objpfx)tst-nodelete-dlclose-dso.so \ $(objpfx)tst-nodelete-dlclose-plugin.so tst-env-setuid-ENV = MALLOC_CHECK_=2 MALLOC_MMAP_THRESHOLD_=4096 \ - LD_HWCAP_MASK=0xffffffff + LD_HWCAP_MASK=0x1 tst-env-setuid-tunables-ENV = \ GLIBC_TUNABLES=glibc.malloc.check=2:glibc.malloc.mmap_threshold=4096 |