[06/24] x86-64: Add _CET_ENDBR to STRCMP_SSE42

Message ID 20180613153207.57232-7-hjl.tools@gmail.com
State New
Headers show
Series
  • CET: Prepare for CET enabling
Related show

Commit Message

H.J. Lu June 13, 2018, 3:31 p.m.
Add _CET_ENDBR to STRCMP_SSE42, which is called indirectly, to support
IBT.

	* sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
	_CET_ENDBR.
---
 sysdeps/x86_64/multiarch/strcmp-sse42.S | 1 +
 1 file changed, 1 insertion(+)

-- 
2.17.1

Comments

Carlos O'Donell July 6, 2018, 2:50 p.m. | #1
On 06/13/2018 11:31 AM, H.J. Lu wrote:
> Add _CET_ENDBR to STRCMP_SSE42, which is called indirectly, to support

> IBT.

> 

> 	* sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add

> 	_CET_ENDBR.


Please commit.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>


> ---

>  sysdeps/x86_64/multiarch/strcmp-sse42.S | 1 +

>  1 file changed, 1 insertion(+)

> 

> diff --git a/sysdeps/x86_64/multiarch/strcmp-sse42.S b/sysdeps/x86_64/multiarch/strcmp-sse42.S

> index 6fa0c2c7d2..5a0c6668a7 100644

> --- a/sysdeps/x86_64/multiarch/strcmp-sse42.S

> +++ b/sysdeps/x86_64/multiarch/strcmp-sse42.S

> @@ -126,6 +126,7 @@ END (GLABEL(__strncasecmp))

>  

>  STRCMP_SSE42:

>  	cfi_startproc

> +	_CET_ENDBR

>  	CALL_MCOUNT

>  

>  /*

> 



-- 
Cheers,
Carlos.

Patch

diff --git a/sysdeps/x86_64/multiarch/strcmp-sse42.S b/sysdeps/x86_64/multiarch/strcmp-sse42.S
index 6fa0c2c7d2..5a0c6668a7 100644
--- a/sysdeps/x86_64/multiarch/strcmp-sse42.S
+++ b/sysdeps/x86_64/multiarch/strcmp-sse42.S
@@ -126,6 +126,7 @@  END (GLABEL(__strncasecmp))
 
 STRCMP_SSE42:
 	cfi_startproc
+	_CET_ENDBR
 	CALL_MCOUNT
 
 /*