All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] x86: generate xen.efi image with no write-execute sections
@ 2025-03-18 17:35 Roger Pau Monne
  2025-03-18 17:35 ` [PATCH 1/7] x86/boot: clarify comment about trampoline_setup usage Roger Pau Monne
                   ` (6 more replies)
  0 siblings, 7 replies; 38+ messages in thread
From: Roger Pau Monne @ 2025-03-18 17:35 UTC (permalink / raw)
  To: xen-devel
  Cc: Roger Pau Monne, Jan Beulich, Andrew Cooper, Stefano Stabellini,
	Julien Grall, Bertrand Marquis, Michal Orzel, Volodymyr Babchuk,
	Shawn Anastasio, Alistair Francis, Bob Eshleman, Connor Davis,
	Oleksii Kurochko, Daniel P. Smith,
	Marek Marczykowski-Górecki, Anthony PERARD

Hello,

The aim of the series is to generate a Xen image with no write and
execute sections, so that the PE binary can be NX_COMPAT.

The main change for achieving this is changing the order in which the
trampoline relocation are applied.  To avoid having write-execute
sections apply the trampoline relocations after having moved the
trampoline to it's final destination.

Thanks, Roger.

Roger Pau Monne (7):
  x86/boot: clarify comment about trampoline_setup usage
  x86/mkelf32: account for offset when detecting note segment placement
  xen: remove -N from the linker command line
  x86/boot: apply trampoline relocations at destination position
  x86/mkreloc: remove warning about relocations to RO section
  x86/efi: do not merge all .init sections
  xen/build: warn about RWX load segments

 xen/Makefile                         |  2 --
 xen/arch/arm/Makefile                |  6 +++---
 xen/arch/ppc/Makefile                |  6 +++---
 xen/arch/riscv/Makefile              |  6 +++---
 xen/arch/x86/Makefile                | 12 ++++++------
 xen/arch/x86/boot/build32.lds.S      |  1 +
 xen/arch/x86/boot/head.S             |  9 +++++----
 xen/arch/x86/boot/mkelf32.c          |  3 ++-
 xen/arch/x86/boot/reloc-trampoline.c | 16 ++++++++--------
 xen/arch/x86/efi/efi-boot.h          | 15 ++++++---------
 xen/arch/x86/efi/mkreloc.c           |  5 -----
 xen/arch/x86/xen.lds.S               |  8 --------
 12 files changed, 37 insertions(+), 52 deletions(-)

-- 
2.48.1



^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2025-03-21 16:28 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-18 17:35 [PATCH 0/7] x86: generate xen.efi image with no write-execute sections Roger Pau Monne
2025-03-18 17:35 ` [PATCH 1/7] x86/boot: clarify comment about trampoline_setup usage Roger Pau Monne
2025-03-18 17:45   ` Andrew Cooper
2025-03-19  8:46     ` Roger Pau Monné
2025-03-19 12:22       ` Andrew Cooper
2025-03-18 17:35 ` [PATCH 2/7] x86/mkelf32: account for offset when detecting note segment placement Roger Pau Monne
2025-03-18 17:45   ` Andrew Cooper
2025-03-19 10:07   ` Jan Beulich
2025-03-19 14:16     ` Roger Pau Monné
2025-03-19 14:33       ` Jan Beulich
2025-03-18 17:35 ` [PATCH 3/7] xen: remove -N from the linker command line Roger Pau Monne
2025-03-18 17:53   ` Andrew Cooper
2025-03-19 10:20   ` Jan Beulich
2025-03-21 16:28   ` Oleksii Kurochko
2025-03-18 17:35 ` [PATCH 4/7] x86/boot: apply trampoline relocations at destination position Roger Pau Monne
2025-03-18 19:05   ` Frediano Ziglio
2025-03-18 19:17     ` Andrew Cooper
2025-03-19 12:00     ` Frediano Ziglio
2025-03-18 20:10   ` [PATCH] x86/boot: Untangle the trampoline copying/entry logic Andrew Cooper
2025-03-19  9:05     ` Roger Pau Monné
2025-03-20 13:59       ` Andrew Cooper
2025-03-18 20:14   ` [PATCH 4/7] x86/boot: apply trampoline relocations at destination position Andrew Cooper
2025-03-18 17:35 ` [PATCH 5/7] x86/mkreloc: remove warning about relocations to RO section Roger Pau Monne
2025-03-18 18:14   ` Andrew Cooper
2025-03-19 10:32   ` Jan Beulich
2025-03-19 10:46     ` Jan Beulich
2025-03-19 10:53       ` Jan Beulich
2025-03-20  8:14       ` Roger Pau Monné
2025-03-20  8:34         ` Jan Beulich
2025-03-20  9:53           ` Jan Beulich
2025-03-20 10:18             ` Jan Beulich
2025-03-20 11:00               ` Andrew Cooper
2025-03-20 11:11                 ` Jan Beulich
2025-03-18 17:35 ` [PATCH 6/7] x86/efi: do not merge all .init sections Roger Pau Monne
2025-03-18 18:08   ` Andrew Cooper
2025-03-19 10:39   ` Jan Beulich
2025-03-18 17:35 ` [PATCH 7/7] xen/build: warn about RWX load segments Roger Pau Monne
2025-03-18 18:07   ` Andrew Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.