]> xenbits.xensource.com Git - xen.git/commit
x86/entry: Make IDT entrypoints CET-IBT compatible
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 1 Nov 2021 17:08:24 +0000 (17:08 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Feb 2022 15:33:43 +0000 (15:33 +0000)
commite702e36d1d519f4b66086650c1c47d6bac96d4b9
tree0fac1c03a92d176a15ffaa33d3c671bfd3d123a3
parent17d77ec62a299f4299883ec79ab10cacafd0b2f5
x86/entry: Make IDT entrypoints CET-IBT compatible

Each IDT vector needs to land on an endbr64 instruction.  This is especially
important for the #CP handler, which will recurse indefinitely if the endbr64
is missing, eventually escalating to #DF if guard pages are active.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/x86_64/compat/entry.S
xen/arch/x86/x86_64/entry.S