diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-01-17 04:31:51 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-01-17 04:32:04 -0800 |
commit | 207a72e2988c6d6343f50fe0128eb4fc4edfdd15 (patch) | |
tree | b11cfa7687fa75d2a003a36d9e0e6ed6548b0ea9 /ChangeLog | |
parent | 4942c4ea48099b4ba9dfecf7cfbc452ae74811b5 (diff) | |
download | glibc-207a72e2988c6d6343f50fe0128eb4fc4edfdd15.tar.gz glibc-207a72e2988c6d6343f50fe0128eb4fc4edfdd15.tar.xz glibc-207a72e2988c6d6343f50fe0128eb4fc4edfdd15.zip |
x86-64: Properly align La_x86_64_retval to VEC_SIZE [BZ #22715]
_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. [BZ #22715] * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly align La_x86_64_retval to VEC_SIZE.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 42f871e4fc..aed3cdf867 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2018-01-17 H.J. Lu <hongjiu.lu@intel.com> + + [BZ #22715] + * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly + align La_x86_64_retval to VEC_SIZE. + 2018-01-16 Joseph Myers <joseph@codesourcery.com> * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>. |