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 <smostafa@google.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Aneesh Kumar K.V (Arm) <aneesh.kumar@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
2026-07-17 18:49:12 +01:00
..
arm-cca-guest Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
efi_secret arm64: Enable EFI secret area Securityfs support 2025-09-19 10:12:01 +01:00
guest coco/guest: Remove unneeded selection of CRYPTO 2026-03-19 10:57:22 -07:00
pkvm-guest drivers/virt: pkvm: Fix end calculation in mmio_guard_ioremap_hook() 2026-07-17 18:49:12 +01:00
sev-guest virt: sev-guest: Explicitly leak pages in unknown state 2026-05-20 18:03:17 -07:00
tdx-guest Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
tdx-host Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
Kconfig coco/tdx-host: Introduce a "tdx_host" device 2026-06-03 08:14:51 -07:00
Makefile coco/tdx-host: Introduce a "tdx_host" device 2026-06-03 08:14:51 -07:00
tsm-core.c virt: coco: change tsm_class to a const struct 2026-04-02 15:45:18 -07:00