Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromtorvalds/linux

Commit1df3738

Browse files
Waiman-LongKAGA-KOKO
authored andcommitted
x86/retpoline: Remove the esp/rsp thunk
It doesn't make sense to have an indirect call thunk with esp/rsp asretpoline code won't work correctly with the stack pointer register.Removing it will help compiler writers to catch error in case sucha thunk call is emitted incorrectly.Fixes:76b0438 ("x86/retpoline: Add initial retpoline support")Suggested-by: Jeff Law <law@redhat.com>Signed-off-by: Waiman Long <longman@redhat.com>Signed-off-by: Thomas Gleixner <tglx@linutronix.de>Acked-by: David Woodhouse <dwmw@amazon.co.uk>Cc: Tom Lendacky <thomas.lendacky@amd.com>Cc: Kees Cook <keescook@google.com>Cc: Andi Kleen <ak@linux.intel.com>Cc: Tim Chen <tim.c.chen@linux.intel.com>Cc: Peter Zijlstra <peterz@infradead.org>Cc: Linus Torvalds <torvalds@linux-foundation.org>Cc: Jiri Kosina <jikos@kernel.org>Cc: Andy Lutomirski <luto@amacapital.net>Cc: Dave Hansen <dave.hansen@intel.com>Cc: Josh Poimboeuf <jpoimboe@redhat.com>Cc: Arjan van de Ven <arjan@linux.intel.com>Cc: Greg Kroah-Hartman <gregkh@linux-foundation.org>Cc: Paul Turner <pjt@google.com>Link:https://lkml.kernel.org/r/1516658974-27852-1-git-send-email-longman@redhat.com
1 parent3f7d875 commit1df3738

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

‎arch/x86/include/asm/asm-prototypes.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,4 @@ INDIRECT_THUNK(dx)
3838
INDIRECT_THUNK(si)
3939
INDIRECT_THUNK(di)
4040
INDIRECT_THUNK(bp)
41-
INDIRECT_THUNK(sp)
4241
#endif/* CONFIG_RETPOLINE */

‎arch/x86/lib/retpoline.S‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ GENERATE_THUNK(_ASM_DX)
3636
GENERATE_THUNK(_ASM_SI)
3737
GENERATE_THUNK(_ASM_DI)
3838
GENERATE_THUNK(_ASM_BP)
39-
GENERATE_THUNK(_ASM_SP)
4039
#ifdef CONFIG_64BIT
4140
GENERATE_THUNK(r8)
4241
GENERATE_THUNK(r9)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp