Messages in this thread | | | From | Dionna Amalie Glaze <> | Date | Tue, 27 Sep 2022 12:04:30 -0700 | Subject | Re: [PATCH v5 1/6] x86/sev: Fix calculation of end address based on number of pages |
| |
> > 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@google.com>
-- -Dionna Glaze, PhD (she/her)
| |