projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d3109a
)
x86/entry/32: Remove SEP test for SYSEXIT
author
Brian Gerst
<brgerst@gmail.com>
Fri, 21 Jul 2023 16:10:16 +0000
(12:10 -0400)
committer
Ingo Molnar
<mingo@kernel.org>
Thu, 5 Oct 2023 08:06:43 +0000
(10:06 +0200)
SEP must be already be present in order for do_fast_syscall_32() to be
called on native 32-bit, so checking it again is unnecessary.
Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link:
https://lore.kernel.org/r/20230721161018.50214-6-brgerst@gmail.com
arch/x86/entry/common.c
patch
|
blob
|
history
diff --git
a/arch/x86/entry/common.c
b/arch/x86/entry/common.c
index f1f3bf150b57f63197362cdd4e0cd2cced9a61dd..0551bcb197fb1f9a0c797ac38909011d038e64c1 100644
(file)
--- a/
arch/x86/entry/common.c
+++ b/
arch/x86/entry/common.c
@@
-238,8
+238,7
@@
__visible noinstr bool do_fast_syscall_32(struct pt_regs *regs)
* We don't allow syscalls at all from VM86 mode, but we still
* need to check VM, because we might be returning from sys_vm86.
*/
- return static_cpu_has(X86_FEATURE_SEP) &&
- regs->cs == __USER_CS && regs->ss == __USER_DS &&
+ return regs->cs == __USER_CS && regs->ss == __USER_DS &&
regs->ip == landing_pad &&
(regs->flags & (X86_EFLAGS_RF | X86_EFLAGS_TF | X86_EFLAGS_VM)) == 0;
#endif