[PATCH v2 0/3] xen/livepatch: Fix .altinstructions safety checks

Andrew Cooper posted 3 patches 1 year ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20230417121357.3738919-1-andrew.cooper3@citrix.com
xen/arch/arm/alternative.c             |  6 +--
xen/arch/arm/include/asm/alternative.h | 12 ++---
xen/common/livepatch.c                 | 68 +++++++++++++++++++++++---
xen/common/livepatch_elf.c             |  6 +--
xen/include/xen/elfstructs.h           |  6 ++-
5 files changed, 78 insertions(+), 20 deletions(-)
[PATCH v2 0/3] xen/livepatch: Fix .altinstructions safety checks
Posted by Andrew Cooper 1 year ago
This replaces the previous singleton patch, with several build fixes found by
Gitlab.  I also included some feedback from Jan on patch 3.

Andrew Cooper (3):
  xen/ELF: Fix ELF32 PRI formatters
  arm/alternatives: Rename alt_instr fields which are used in common code
  xen/livepatch: Fix .altinstructions safety checks

 xen/arch/arm/alternative.c             |  6 +--
 xen/arch/arm/include/asm/alternative.h | 12 ++---
 xen/common/livepatch.c                 | 68 +++++++++++++++++++++++---
 xen/common/livepatch_elf.c             |  6 +--
 xen/include/xen/elfstructs.h           |  6 ++-
 5 files changed, 78 insertions(+), 20 deletions(-)

-- 
2.30.2
Re: [PATCH v2 0/3] xen/livepatch: Fix .altinstructions safety checks
Posted by Andrew Cooper 3 weeks, 3 days ago
On 17/04/2023 1:13 pm, Andrew Cooper wrote:
> This replaces the previous singleton patch, with several build fixes found by
> Gitlab.  I also included some feedback from Jan on patch 3.
>
> Andrew Cooper (3):
>   xen/ELF: Fix ELF32 PRI formatters
>   arm/alternatives: Rename alt_instr fields which are used in common code
>   xen/livepatch: Fix .altinstructions safety checks

This series was committed into 4.18, but not picked up for backport
despite several fixes tags.

We've just fallen over a livepatching issue which would have been caught
by it, so I'm going to backport it to 4.17 while 4.17 is still in
general support.

~Andrew