mbox series

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

Message ID 20230117114332.25863-1-michal.orzel@amd.com (mailing list archive)
Headers show
Series xen/arm: Frametable hardening and config.h cleanup | expand

Message

Michal Orzel Jan. 17, 2023, 11:43 a.m. UTC
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(-)

Comments

Julien Grall Jan. 20, 2023, 1:46 p.m. UTC | #1
Hi,

On 17/01/2023 11:43, Michal Orzel wrote:
> 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

I have committed the series.

Cheers,