]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/xen: Fix initialisation in hypercall_page after rethunk
authorBen Hutchings <ben@decadent.org.uk>
Wed, 13 Jul 2022 22:39:33 +0000 (00:39 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 16 Sep 2022 08:53:03 +0000 (10:53 +0200)
commitb2952376862d03e20e3e99c7101ffa4fc4b5e183
tree0dc6dcc62f191c0eb49b0bdde35e3ae7c35d1cc7
parent87f93555ee4c23aa035937d50bdc23d8f814eeb2
x86/xen: Fix initialisation in hypercall_page after rethunk

BugLink: https://bugs.launchpad.net/bugs/1988353
The hypercall_page is special and the RETs there should not be changed
into rethunk calls (but can have SLS mitigation).  Change the initial
instructions to ret + int3 padding, as was done in upstream commit
5b2fc51576ef "x86/ibt,xen: Sprinkle the ENDBR".

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/x86/xen/xen-head.S