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

Michal Orzel posted 3 patches 1 year, 3 months ago
Test gitlab-ci failed
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20230117114332.25863-1-michal.orzel@amd.com
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(-)
[PATCH v2 0/3] xen/arm: Frametable hardening and config.h cleanup
Posted by Michal Orzel 1 year, 3 months ago
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(-)

-- 
2.25.1
Re: [PATCH v2 0/3] xen/arm: Frametable hardening and config.h cleanup
Posted by Julien Grall 1 year, 3 months ago
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,

-- 
Julien Grall