Skip to content

Commit bab9fa6

Browse files
Brian GerstIngo Molnar
authored andcommitted
x86/entry/32: Remove SEP test for SYSEXIT
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0d3109a commit bab9fa6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/x86/entry/common.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ __visible noinstr bool do_fast_syscall_32(struct pt_regs *regs)
238238
* We don't allow syscalls at all from VM86 mode, but we still
239239
* need to check VM, because we might be returning from sys_vm86.
240240
*/
241-
return static_cpu_has(X86_FEATURE_SEP) &&
242-
regs->cs == __USER_CS && regs->ss == __USER_DS &&
241+
return regs->cs == __USER_CS && regs->ss == __USER_DS &&
243242
regs->ip == landing_pad &&
244243
(regs->flags & (X86_EFLAGS_RF | X86_EFLAGS_TF | X86_EFLAGS_VM)) == 0;
245244
#endif

0 commit comments

Comments
 (0)