We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d3109a commit bab9fa6Copy full SHA for bab9fa6
arch/x86/entry/common.c
@@ -238,8 +238,7 @@ __visible noinstr bool do_fast_syscall_32(struct pt_regs *regs)
238
* We don't allow syscalls at all from VM86 mode, but we still
239
* need to check VM, because we might be returning from sys_vm86.
240
*/
241
- return static_cpu_has(X86_FEATURE_SEP) &&
242
- regs->cs == __USER_CS && regs->ss == __USER_DS &&
+ return regs->cs == __USER_CS && regs->ss == __USER_DS &&
243
regs->ip == landing_pad &&
244
(regs->flags & (X86_EFLAGS_RF | X86_EFLAGS_TF | X86_EFLAGS_VM)) == 0;
245
#endif
0 commit comments