lkml.org 
[lkml]   [2026]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] drivers/virt: pkvm: Fix end calculation in mmio_guard_ioremap_hook()
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@google.com>

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

\
 
 \ /
  Last update: 2026-07-09 11:20    [W:0.177 / U:19.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog