]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
i386: Use _CET_NOTRACK in i686/memcmp.S
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 18 Jul 2018 14:54:45 +0000 (07:54 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 18 Jul 2018 14:56:58 +0000 (07:56 -0700)
* sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
indirect jump to jump table.

ChangeLog
sysdeps/i386/i686/memcmp.S

index d44a62ae6c95d1184777ceb72dcb035c644bda40..dba41dbde8e4956ca35a822829803cc115f5ae2e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
+       indirect jump to jump table.
+
 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/x86_64/multiarch/memcpy-ssse3.S
index a0bc9ec97c18a3bf3814df52bc8017597161c136..3259076cd7e8548e6275f916dfc999e1211c4d65 100644 (file)
@@ -80,7 +80,7 @@ L(not_1):
        LOAD_JUMP_TABLE_ENTRY (L(table_32bytes), %ecx)
        addl    %ecx, %edx
        addl    %ecx, %esi
-       jmp     *%ebx
+       _CET_NOTRACK jmp *%ebx
 
        ALIGN (4)
 L(28bytes):
@@ -326,7 +326,7 @@ L(32bytesormore):
        LOAD_JUMP_TABLE_ENTRY (L(table_32bytes), %ecx)
        addl    %ecx, %edx
        addl    %ecx, %esi
-       jmp     *%ebx
+       _CET_NOTRACK jmp *%ebx
 
 L(load_ecx_28):
        addl    $0x4, %edx