Re: [PATCH v5 1/6] x86/sev: Fix calculation of end address based on number of pages

From: Dionna Amalie Glaze
Date: Tue Sep 27 2022 - 15:04:52 EST


>
> When calculating an end address based on an unsigned int number of pages,
> the number of pages must be cast to an unsigned long so that any value
> greater than or equal to 0x100000 does not result in zero after the shift.
>
> Fixes: 5e5ccff60a29 ("x86/sev: Add helper for validating pages in early enc attribute changes")

Tested-by: Dionna Glaze <dionnaglaze@xxxxxxxxxx>

--
-Dionna Glaze, PhD (she/her)