Files
erofs-linux/drivers/virt/coco
Mostafa Saleh 62c740f823 drivers/virt: pkvm: Fix end calculation in mmio_guard_ioremap_hook()
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: 0f12694958 ("drivers/virt: pkvm: Intercept ioremap using pKVM MMIO_GUARD hypercall")
Signed-off-by: Mostafa Saleh <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Tested-by: Aneesh Kumar K.V (Arm) <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
2026-07-17 18:49:12 +01:00
..