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

ChangeLog
sysdeps/i386/i686/multiarch/memset-sse2-rep.S

index 475000e54d34a7a0937456b3d0f45155a7851557..b594059f943f316d3af8aafeb3c12e66bea31000 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/i386/i686/multiarch/memset-sse2-rep.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/strcat-sse2.S
index 9d6648b5ced780441ce29be2e0b402b5b11704b0..8732aac0b9e82e3f693b3a75619734624254b8da 100644 (file)
@@ -63,7 +63,7 @@
     add                (%ebx,%ecx,4), %ebx;                            \
     add                %ecx, %edx;                                     \
     /* We loaded the jump table and adjusted EDX. Go.  */      \
-    jmp                *%ebx
+    _CET_NOTRACK jmp *%ebx
 #else
 # define ENTRANCE
 # define RETURN_END    ret
@@ -75,7 +75,7 @@
    absolute offsets.  */
 # define BRANCH_TO_JMPTBL_ENTRY(TABLE)                         \
     add                %ecx, %edx;                                     \
-    jmp                *TABLE(,%ecx,4)
+    _CET_NOTRACK jmp *TABLE(,%ecx,4)
 #endif
 
        .section .text.sse2,"ax",@progbits