Skip to content

xen/arm: Frametable hardening and config.h cleanup

Michal Orzel xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v11 patch 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3xen/arm64: Fix incorrect DIRECTMAP_SIZE calculationxen/arch/arm/include/asm/config.h+1 -11 reply
2/3xen/arm32: Remove unused macro FRAMETABLE_VIRT_ENDxen/arch/arm/include/asm/config.h+0 -11 reply
3/3xen/arm: Harden setup_frametable_mappingsxen/arch/arm/include/asm/config.h xen/arch/arm/include/asm/mm.h xen/arch/arm/mm.c+19 -21 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJulien Grall
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] xen/arm: Frametable hardening and config.h cleanup

The first patch fixes a bug due to incorrect DIRECTMAP_SIZE calculation.

The second patch removes unused macro FRAMETABLE_VIRT_END.

The third patch hardens the setup_frametable_mappings by adding a sanity check for the size of struct page_info and calling panic if the calculate size of the frametable exceeds the limit.

Sent together for ease of merging.

Michal Orzel (3):
xen/arm64: Fix incorrect DIRECTMAP_SIZE calculation xen/arm32: Remove unused macro FRAMETABLE_VIRT_END xen/arm: Harden setup_frametable_mappings

 xen/arch/arm/include/asm/config.h |  7 +++----
 xen/arch/arm/include/asm/mm.h     | 11 +++++++++++
 xen/arch/arm/mm.c                 |  6 ++++++
 3 files changed, 20 insertions(+), 4 deletions(-)
Signature · 1 line
2.25.1