Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Sean Christopherson <seanjc@google.com>
To: Jack Wang <jinpu.wang@ionos.com>
Cc: gregkh@linuxfoundation.org, sashal@kernel.org,
	stable@vger.kernel.org,  Tom Lendacky <thomas.lendacky@amd.com>,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [stable-6.12 v2 3/3] KVM: SEV: Ignore Port I/O requests of length '0'
Date: Tue, 30 Jun 2026 07:53:47 -0700	[thread overview]
Message-ID: <akPYex6hm5MoHXs9@google.com> (raw)
In-Reply-To: <20260626193343.256956-4-jinpu.wang@ionos.com>

On Fri, Jun 26, 2026, Jack Wang wrote:
> From: Sean Christopherson <seanjc@google.com>
> 
> commit 3988bd2723de407ae90fa7a6f6029b4e60238c58 upstream.
> 
> Explicitly ignore Port I/O requests of length '0' (or count '0'), so that
> setting up the software scratch area (and other code) doesn't have to
> worry about underflowing the length, and to allow for WARNing on trying
> to configure the scratch area with len==0.
> 
> Fixes: 291bd20d5d88 ("KVM: SVM: Add initial support for a VMGEXIT VMEXIT")
> Cc: stable@vger.kernel.org
> Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
> Signed-off-by: Sean Christopherson <seanjc@google.com>
> Message-ID: <20260501202250.2115252-5-seanjc@google.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
> ---

Acked-by: Sean Christopherson <seanjc@google.com>

  reply	other threads:[~2026-06-30 14:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-26 19:28 [stable-6.12 v2 0/3] 3 SEV fixes backport Jack Wang
2026-06-26 19:28 ` [stable-6.12 v2 1/3] KVM: SEV: Ignore MMIO requests of length '0' Jack Wang
2026-06-30 14:42   ` Sean Christopherson
2026-07-01  4:10     ` Jinpu Wang
2026-06-26 19:28 ` [stable-6.12 v2 2/3] KVM: SEV: Reject MMIO requests larger than 8 bytes with GHCB v2+ Jack Wang
2026-06-30 14:45   ` Sean Christopherson
2026-06-26 19:28 ` [stable-6.12 v2 3/3] KVM: SEV: Ignore Port I/O requests of length '0' Jack Wang
2026-06-30 14:53   ` Sean Christopherson [this message]
2026-06-27 16:35 ` [stable-6.12 v2 0/3] 3 SEV fixes backport Sasha Levin

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=akPYex6hm5MoHXs9@google.com \
    --to=seanjc@google.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jinpu.wang@ionos.com \
    --cc=pbonzini@redhat.com \
    --cc=sashal@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=thomas.lendacky@amd.com \
    /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