]> xenbits.xensource.com Git - xen.git/commit
x86/entry: don't clear DF when raising #UD for lack of syscall handler
authorJan Beulich <jbeulich@suse.com>
Tue, 2 Jul 2024 10:01:21 +0000 (12:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 2 Jul 2024 10:01:21 +0000 (12:01 +0200)
commitd2fe9ab3048d503869ec81bc49db07e55a4a2386
treed55904536ca556f2a0be25b3ce401e0d216bc993
parent17f6d398f76597f8009ec0530842fb8705ece7ba
x86/entry: don't clear DF when raising #UD for lack of syscall handler

While doing so is intentional when invoking the actual callback, to
mimic a hard-coded SYCALL_MASK / FMASK MSR, the same should not be done
when no handler is available and hence #UD is raised.

Fixes: ca6fcf4321b3 ("x86/pv: Inject #UD for missing SYSCALL callbacks")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-Acked-By: Oleksii Kurochko <oleksii.kurochko@gmail.com>
xen/arch/x86/x86_64/entry.S