On 05/05/2025 04:56, Stewart Hildebrand wrote:
> Erroneous logic was duplicated from add_ext_regions() into
> add_hwdom_free_regions(). Frame numbers are converted to addresses, but
> the end address (e) is rounded down to page size alignment. The logic to
> calculate the size assumes e points to the last address, not page,
> effectively leading to the region size being erroneously calculated to
> be 2M smaller than the actual size of the region.
>
> Fix by adding 1 to the frame number before converting back to address.
>
> Fixes: 02975cc38389 ("xen/arm: permit non direct-mapped Dom0 construction")
> Signed-off-by: Stewart Hildebrand <[email protected]>
Acked-by: Michal Orzel <[email protected]>
~Michal
- [PATCH 0/6] arm: extended regions fixes Stewart Hildebrand
- [PATCH 1/6] xen/arm: fix math in add_ext_regions Stewart Hildebrand
- Re: [PATCH 1/6] xen/arm: fix math in add_ext_r... Orzel, Michal
- [PATCH 2/6] xen/arm: fix math in add_hwdom_free_re... Stewart Hildebrand
- Re: [PATCH 2/6] xen/arm: fix math in add_hwdom... Orzel, Michal
- Re: [PATCH 2/6] xen/arm: fix math in add_h... Orzel, Michal
- Re: [PATCH 2/6] xen/arm: fix math in a... Stewart Hildebrand
- Re: [PATCH 2/6] xen/arm: fix math... Orzel, Michal
- [PATCH 3/6] xen/arm: switch find_domU_holes to ran... Stewart Hildebrand
- Re: [PATCH 3/6] xen/arm: switch find_domU_hole... Stefano Stabellini
- [PATCH 4/6] rangeset: introduce rangeset_subtract Stewart Hildebrand
- [PATCH 5/6] xen/arm: exclude xen,reg{-cacheable} f... Stewart Hildebrand
- Re: [PATCH 5/6] xen/arm: exclude xen,reg{-cach... Stefano Stabellini
- Re: [PATCH 5/6] xen/arm: exclude xen,reg{-... Stewart Hildebrand
- [PATCH 6/6] tools/arm: exclude iomem from domU ext... Stewart Hildebrand
