]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86_64: Use _CET_NOTRACK in strcmp.S
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 18 Jul 2018 13:29:21 +0000 (06:29 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 18 Jul 2018 13:31:53 +0000 (06:31 -0700)
* sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
indirect jump to jump table.

ChangeLog
sysdeps/x86_64/strcmp.S

index c628f7c5c9e93a719dea6b2647ca818cfadba74e..1c9f4087ebdc01916117cf4eaac22c217aeb08c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
+       indirect jump to jump table.
+
 2018-07-18  Valery Timiriliyev  <timiriliyev@gmail.com>
 
        [BZ #22241]
index de54fce647119e32ec3798e59e45ac5a24ce36f3..e16945b96165ee3bdf7479ad0ae2fce473a83d03 100644 (file)
@@ -233,7 +233,7 @@ LABEL(bigger):
        lea     LABEL(unaligned_table)(%rip), %r10
        movslq  (%r10, %r9,4), %r9
        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