Re: [PATCH 2/3] drivers/virt: pkvm: Fix end calculation in mmio_guard_ioremap_hook()
From: Catalin Marinas
Date: Thu Jul 09 2026 - 05:08:57 EST
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@xxxxxxxxxx>
Reviewed-by: Catalin Marinas <catalin.marinas@xxxxxxx>