mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sean Christopherson <seanjc@google.com>
To: Sean Christopherson <seanjc@google.com>,
	Paolo Bonzini <pbonzini@redhat.com>, Gokul K <gokul02k@gmail.com>
Cc: Shuah Khan <shuah@kernel.org>,
	kvm@vger.kernel.org, linux-kselftest@vger.kernel.org,
	 linux-kernel@vger.kernel.org
Subject: Re: [PATCH] KVM: selftests: Fix the bounds of the SEV debug dst buffer check
Date: Mon, 21 Sep 2026 07:05:30 -0700	[thread overview]
Message-ID: <178999927506.754839.13676560116435386306.b4-ty@google.com> (raw)
In-Reply-To: <20260808061934.400892-1-gokul02k@gmail.com>

On Sat, 08 Aug 2026 11:49:34 +0530, Gokul K wrote:
> validate_dst() is passed a starting offset and a byte count, but bounds
> its loop with "i < nr_bytes", comparing the offset against the count
> rather than against offset + nr_bytes.  Only calls that pass offset 0
> check the region they were asked to check.  Every other call checks too
> few bytes, and any call whose offset is >= the count returns without
> checking anything at all.
> 
> [...]

Applied to kvm-x86 selftests, thanks!

[1/1] KVM: selftests: Fix the bounds of the SEV debug dst buffer check
      https://github.com/kvm-x86/linux/commit/622a09f6deb5

--
https://github.com/kvm-x86/linux/tree/next

      parent reply	other threads:[~2026-09-21 14:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-08  6:19 Gokul K
2026-08-21  5:38 ` Gokul K
2026-08-21 12:27   ` Sean Christopherson
2026-09-21 14:05 ` Sean Christopherson [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=178999927506.754839.13676560116435386306.b4-ty@google.com \
    --to=seanjc@google.com \
    --cc=gokul02k@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=shuah@kernel.org \
    /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

all inboxes | Powered by JetHome®