All of lore.kernel.org
 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 v3 2/2] KVM: arm64: nv: Avoid duplicate guest stage-2 mapping entries
Date: Wed, 02 Dec 2026 00:20:07 +0000	[thread overview]
Message-ID: <sashiko-outbox-244488@kernel.org> (raw)
In-Reply-To: <20261202001335.2306714-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() fix
--

commit 529876ab2bddccb2258e29269f467dd215036eb5
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 the unconditional interval-tree insertion in
kvm_record_guest_s2_mapping().  Should the commit message include:

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

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

      reply	other threads:[~2026-12-02  0:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  0:13 [PATCH v3 0/2] KVM: arm64: nv: Fix stale and duplicate guest S2 tracking entries Colton Lewis
2026-12-02  0:13 ` [PATCH v3 1/2] KVM: arm64: nv: Remove unmapped guest stage-2 mapping entries Colton Lewis
2026-12-02  0:13 ` [PATCH v3 2/2] KVM: arm64: nv: Avoid duplicate " Colton Lewis
2026-12-02  0:20   ` 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-244488@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.