[PATCH 2/3] drivers/virt: pkvm: Fix end calculation in mmio_guard_ioremap_hook()

Catalin Marinas catalin.marinas at arm.com
Thu Jul 9 02:08:47 PDT 2026


On Wed, Jun 03, 2026 at 11:05:21AM +0000, Mostafa Saleh wrote:
> Sashiko (locally) reports a logical issues in mmio_guard_ioremap_hook()
> 
> mmio_guard_ioremap_hook() attempts to handle unaligned addresses and
> sizes. However, aligning the start address before adding the size, might
> shift the end to the page before.
> 
> Fixes: 0f1269495800 ("drivers/virt: pkvm: Intercept ioremap using pKVM MMIO_GUARD hypercall")
> Signed-off-by: Mostafa Saleh <smostafa at google.com>

Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>



More information about the linux-arm-kernel mailing list