about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2017-03-07 20:52:04 +0530
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-07-13 11:36:20 -0300
commitceeb0740ed04c48170f9f6f15fef55637ad84e1b (patch)
tree2adf4d58544aa760f7fe33a82dd1c3c6c32a0db8 /include
parent24adabbe17d24b9cf4f42d81f546359f72515ce3 (diff)
downloadglibc-linaro/2.23/master.tar.gz
glibc-linaro/2.23/master.tar.xz
glibc-linaro/2.23/master.zip
Ignore and remove LD_HWCAP_MASK for AT_SECURE programs (bug #21209) linaro/2.23/master
The LD_HWCAP_MASK environment variable may alter the selection of
function variants for some architectures.  For AT_SECURE process it
means that if an outdated routine has a bug that would otherwise not
affect newer platforms by default, LD_HWCAP_MASK will allow that bug
to be exploited.

To be on the safe side, ignore and disable LD_HWCAP_MASK for setuid
binaries.

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

(cherry picked from commit 1c1243b6fc33c029488add276e56570a07803bfd)
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions