]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
i386: Use _CET_NOTRACK in strcpy-sse2.S
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 18 Jul 2018 15:02:15 +0000 (08:02 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 18 Jul 2018 15:02:26 +0000 (08:02 -0700)
* sysdeps/i386/i686/multiarch/strcpy-sse2.S
(BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
to jump table.

ChangeLog
sysdeps/i386/i686/multiarch/strcpy-sse2.S

index 322f484edac934cfe4f652417d1d46969097d151..5ad290907a197aa33358bc0e14770db66881b140 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/i386/i686/multiarch/strcpy-sse2.S
+       (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
+       to jump table.
+
 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
index 64bdb91df4dd104e60a61dc2f1ac089363634640..3fc27d93d42d25d91eb5704def969f343ebf1497 100644 (file)
@@ -65,7 +65,7 @@
        absolute        address.  */                            \
        addl    (%ecx,INDEX,SCALE), %ecx;                       \
        /* We loaded the jump table and adjusted ECX. Go.  */  \
-       jmp     *%ecx
+       _CET_NOTRACK jmp *%ecx
 # else
 #  define JMPTBL(I, B) I
 
@@ -74,7 +74,7 @@
        jump    table.  SCALE is the scale of INDEX. */
 
 #  define BRANCH_TO_JMPTBL_ENTRY(TABLE, INDEX, SCALE)          \
-       jmp     *TABLE(,INDEX,SCALE)
+       _CET_NOTRACK jmp *TABLE(,INDEX,SCALE)
 # endif
 
 .text