Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Colton Lewis" <coltonlewis@google.com>
Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org,
	"Oliver Upton" <oupton@kernel.org>,
	"Marc Zyngier" <maz@kernel.org>
Subject: Re: [PATCH v2 2/2] KVM: arm64: nv: Avoid duplicate guest stage-2 mapping entries
Date: Mon, 23 Nov 2026 23:32:18 +0000	[thread overview]
Message-ID: <sashiko-outbox-230210@kernel.org> (raw)
In-Reply-To: <20261123232647.3733149-3-coltonlewis@google.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] KVM: arm64: nv: missing Fixes trailer for
  kvm_record_guest_s2_mapping() leak
--

commit 948b2b35956480d91765ab46d7a685fc1f8ebecc
Author: Colton Lewis <coltonlewis@google.com>

> KVM: arm64: nv: Avoid duplicate guest stage-2 mapping entries
>
> kvm_record_guest_s2_mapping() unconditionally inserts a new entry into
> both guest_s2_mappings interval trees. Parallel stage-2 faults on the
> same IPA or retries after -EAGAIN can therefore insert identical
> entries for the same nested and canonical IPA range.
>
> Check mmu->guest_s2_mappings under guest_s2_tracking_lock before
> inserting, and free the new entry if an identical one is already
> present.
>
> Signed-off-by: Colton Lewis <coltonlewis@google.com>

[Severity: Low]
This fixes unconditional insertion in kvm_record_guest_s2_mapping().
Should the commit message include a Fixes tag:

  Fixes: c2778d14cd2f ("KVM: arm64: nv: Track guest stage-2 mapping creation")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123232647.3733149-1-coltonlewis@google.com?part=2

      reply	other threads:[~2026-11-23 23:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 23:26 [PATCH v2 0/2] KVM: arm64: nv: Fix stale and duplicate guest S2 tracking entries Colton Lewis
2026-11-23 23:26 ` [PATCH v2 1/2] KVM: arm64: nv: Discard undersized TTL hints in compute_tlb_inval_range() Colton Lewis
2026-11-23 23:26 ` [PATCH v2 2/2] KVM: arm64: nv: Avoid duplicate guest stage-2 mapping entries Colton Lewis
2026-11-23 23:32   ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-230210@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=coltonlewis@google.com \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.linux.dev \
    --cc=maz@kernel.org \
    --cc=oupton@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox