x86-64: Use _CET_NOTRACK in strcmp-sse42.S

* sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
	_CET_NOTRACK before indirect jump to jump table.
This commit is contained in:
H.J. Lu 2018-07-18 06:36:06 -07:00
parent 921595d151
commit 8817df4265
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
_CET_NOTRACK before indirect jump to jump table.
2018-07-18 H.J. Lu <hongjiu.lu@intel.com> 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S

View File

@ -275,7 +275,7 @@ LABEL(bigger):
movslq (%r10, %r9,4), %r9 movslq (%r10, %r9,4), %r9
pcmpeqb %xmm1, D(%xmm0) /* Any null chars? */ pcmpeqb %xmm1, D(%xmm0) /* Any null chars? */
lea (%r10, %r9), %r10 lea (%r10, %r9), %r10
jmp *%r10 /* jump to corresponding case */ _CET_NOTRACK jmp *%r10 /* jump to corresponding case */
/* /*
* The following cases will be handled by ashr_0 * The following cases will be handled by ashr_0