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

ChangeLog
sysdeps/i386/i686/multiarch/memcpy-ssse3.S

index dd82ae8ae3cb7514cb404ed672d693c0a3815273..322f484edac934cfe4f652417d1d46969097d151 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/i386/i686/multiarch/memcpy-ssse3.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-rep.S
index bb35c4c2b762da01345b3eb090138f3c2b374a9a..5ead569a5e73bfd8cda1a25195503293628997dd 100644 (file)
@@ -71,7 +71,7 @@
        absolute        address.  */            \
        addl    (%ebx, INDEX, SCALE), %ebx;             \
     /* We loaded the jump table.  Go.  */              \
-       jmp     *%ebx
+       _CET_NOTRACK jmp *%ebx
 # else
 
 #  define PARMS                4
@@ -85,7 +85,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
 
        .section .text.ssse3,"ax",@progbits