about summary refs log tree commit diff
path: root/linuxthreads/shlib-versions
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-01-15 19:39:56 -0800
committerH.J. Lu <hjl.tools@gmail.com>2018-01-17 04:43:35 -0800
commit4e4fa3cf97db268b41cdaa8cd64b74546772e423 (patch)
tree7cde3c0193e88f6b0c91d683f150eca2339c6777 /linuxthreads/shlib-versions
parentde51f431ed6226ec68ca76e578f2cbd55b6262cb (diff)
downloadglibc-hjl/pr22715/2.26.tar.gz
glibc-hjl/pr22715/2.26.tar.xz
glibc-hjl/pr22715/2.26.zip
x86-64: Properly align La_x86_64_retval to VEC_SIZE [BZ #22715] hjl/pr22715/2.26
_dl_runtime_profile calls _dl_call_pltexit, passing a pointer to
La_x86_64_retval which is allocated on stack.  The lrv_vector0
field in La_x86_64_retval must be aligned to size of vector register.
When allocating stack space for La_x86_64_retval, we need to make sure
that the address of La_x86_64_retval + RV_VECTOR0_OFFSET is aligned to
VEC_SIZE.  This patch checks the alignment of the lrv_vector0 field
and pads the stack space if needed.

Tested with x32 and x86-64 on SSE4, AVX and AVX512 machines.  It fixed

FAIL: elf/tst-audit10
FAIL: elf/tst-audit4
FAIL: elf/tst-audit5
FAIL: elf/tst-audit6
FAIL: elf/tst-audit7

on x32 AVX512 machine.

(cherry picked from commit 207a72e2988c6d6343f50fe0128eb4fc4edfdd15)

	[BZ #22715]
	* sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
	align La_x86_64_retval to VEC_SIZE.
Diffstat (limited to 'linuxthreads/shlib-versions')
0 files changed, 0 insertions, 0 deletions