[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Livepatch ARM32 fixes thanks to cross-compiler.


A long time ago, in a far away galaxy where ARM CubieTrucks
ruled the world a cross compiled livepatch was attempted
to be loaded.

And behold.

It crashed the hypervisor with an alignment error.

This set of three patches tightens the checks around alignment
to make sure that we catch such errand issues.

Please review at your own leisure.

 xen/arch/arm/arm32/livepatch.c | 18 ++++++++++++--
 xen/arch/arm/arm64/livepatch.c |  6 +++++
 xen/arch/x86/livepatch.c       |  6 +++++
 xen/common/livepatch.c         | 55 ++++++++++++++++++++++++++++++++++++++----
 xen/common/livepatch_elf.c     |  7 ++++++
 xen/include/xen/elfstructs.h   |  2 ++
 xen/include/xen/livepatch.h    |  1 +
 7 files changed, 88 insertions(+), 7 deletions(-)

Konrad Rzeszutek Wilk (3):
      xen/livepatch: Tighten alignment checks.
      livepatch: Include sizes when an mismatch occurs
      xen/livepatch/ARM32: Don't crash on livepatches loaded with wrong 

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.