[Xen-devel] [PATCH for-4.13 0/2] xen/livepatch: Safety fixes

Andrew Cooper posted 2 patches 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/xen tags/patchew/20191105194317.16232-1-andrew.cooper3@citrix.com
xen/arch/arm/livepatch.c             |  5 +++++
xen/arch/x86/livepatch.c             | 39 ++++++++++++++++++++++++++++++++++++
xen/common/livepatch.c               | 37 ++++++++++++++++++++++++----------
xen/include/xen/livepatch.h          |  1 +
xen/include/xen/livepatch_payload.h  |  2 +-
xen/test/livepatch/xen_hello_world.c | 12 ++++++++---
6 files changed, 81 insertions(+), 15 deletions(-)

[Xen-devel] [PATCH for-4.13 0/2] xen/livepatch: Safety fixes

Posted by Andrew Cooper 2 weeks ago
This pair of patches is long overdue being posted upstream.  For several years
now, XenServer has shipped the 2nd patch as a safety check (seeing as we have
both livepatching and introspection), implemented with some return address
manipulation to turn a void load hook into one which can return -EBUSY.

Andrew Cooper (2):
  xen/livepatch: Add a return value to load hooks
  x86/livepatch: Prevent patching with active waitqueues

 xen/arch/arm/livepatch.c             |  5 +++++
 xen/arch/x86/livepatch.c             | 39 ++++++++++++++++++++++++++++++++++++
 xen/common/livepatch.c               | 37 ++++++++++++++++++++++++----------
 xen/include/xen/livepatch.h          |  1 +
 xen/include/xen/livepatch_payload.h  |  2 +-
 xen/test/livepatch/xen_hello_world.c | 12 ++++++++---
 6 files changed, 81 insertions(+), 15 deletions(-)

-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel