]> git.ipfire.org Git - thirdparty/glibc.git/commit
Reduce value of LD_HWCAP_MASK for tst-env-setuid test case
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 18 May 2017 20:12:01 +0000 (01:42 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 18 May 2017 20:12:01 +0000 (01:42 +0530)
commitce79740bdbccea312df6cfcf70689efb57792fc9
tree851d717cf9c6197c5677041a6d65e2efc31bf15a
parenta449fc68f652ee3b4b048f30701cec19c91e96e8
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.
ChangeLog
elf/Makefile