x86/pv: Don't deliver #GP for a SYSENTER with NT set

It is a matter of guest kernel policy what to do with offending userspace, and
terminating said userspace may not be the action chosen.

Linux explicitly tolerates this case.

Reported-by: Andy Lutomirski <luto@kernel.org>
Fixes: fdac951560 ("x86: clear EFLAGS.NT in SYSENTER entry path")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 61d4a04349
master date: 2020-09-24 21:02:35 +0100
This commit is contained in:
Andrew Cooper authored and Jan Beulich committed 2020-10-20 14:54:12 +02:00
1 parent ff1fd42f0d
commit 055a5d540b
1 file changed
-1
-1
View File
@@ -296,7 +296,6 @@ UNLIKELY_START(nz, sysenter_nt_set)
pushfq
andl $~X86_EFLAGS_NT,(%rsp)
popfq
xorl %eax,%eax
UNLIKELY_END(sysenter_nt_set)
testq %rax,%rax
leal (,%rcx,TBF_INTERRUPT),%ecx
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.