x86/pv: Don't deliver #GP for a SYSENTER with NT set
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 26 Jun 2020 13:56:23 +0000 (14:56 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 24 Sep 2020 20:02:35 +0000 (21:02 +0100)
commit61d4a04349895edc5a5868274b906ba61ef24f47
tree0cfa1ac098f4e05b357313dea95dba15abc87fc5
parentaf3c913f03b5f9eab15b168ef87cde80f9addc6e
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>
xen/arch/x86/x86_64/entry.S