mbox series

[0/2] Livepatch: support for livepatching CET functions

Message ID cover.1646653825.git.doebel@amazon.de (mailing list archive)
Headers show
Series Livepatch: support for livepatching CET functions | expand

Message

Doebel, Bjoern March 7, 2022, 11:53 a.m. UTC
This series enables support for livepatching functions compiled with
Intel CET support where we have to make sure we leave a potential
leading ENDBR64 instruction intact on livepatch application.

The series also requires a change to generic livepatching code: we need
to make sure that the address of the patched function is known at the
time Xen tries to verify the livepatch for applicability, hence we need
to resolve this address before verifying the patch.

Bjoern Doebel (2):
  Livepatch: resolve old address before function verification
  xen/x86: Livepatch: support patching CET-enhanced functions

 xen/arch/x86/livepatch.c | 63 +++++++++++++++++++++++++++++++++++-----
 xen/common/livepatch.c   |  4 +--
 2 files changed, 57 insertions(+), 10 deletions(-)