mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sean Christopherson <seanjc@google.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
	 Sean Christopherson <seanjc@google.com>
Subject: [GIT PULL] KVM: x86: guest_memfd changes for 7.2
Date: Thu, 11 Jun 2026 17:47:47 -0700	[thread overview]
Message-ID: <20260612004755.349925-3-seanjc@google.com> (raw)
In-Reply-To: <20260612004755.349925-1-seanjc@google.com>

Fix a few bugs found by AI (mostly by Sashiko pointing out pre-existing bugs).

The following changes since commit b7fbe9a1bf9ee6c967ef77d366ca58c35fcf1887:

  Merge branch 'kvm-apx-prepare' into HEAD (2026-05-13 12:38:31 -0400)

are available in the Git repository at:

  https://github.com/kvm-x86/linux.git tags/kvm-x86-gmem-7.2

for you to fetch changes up to 48dbe473219832788c3940c84faa7f1df4375d5d:

  KVM: guest_memfd: fix NUMA interleave index double-counting (2026-06-08 09:15:43 -0700)

----------------------------------------------------------------
KVM guest_memfd changes for 7.2

 - Return -EEXIST instead of -EINVAL if userspace attempts to bind a gmem
   range to multiple memslots, and fix the test that was supposed to ensure
   KVM returns -EEXIST.

 - Treat memslot binding offsets and sizes as unsigned values to fix a bug
   where KVM interprets a large "offset + size" as a negative value and allows
   a nonsensical offset.

 - Use the inode number instead of the page offset for the NUMA interleaving
   index to fix a bug where the effective index would jump by two for
   consecutive pages (the caller also adds in the page offset).

----------------------------------------------------------------
Michael S. Tsirkin (1):
      KVM: guest_memfd: fix NUMA interleave index double-counting

Sean Christopherson (4):
      KVM: selftests: Remove unnecessary "%s" formatting of a constant string
      KVM: guest_memfd: Treat memslot binding offset+size as unsigned values
      KVM: selftests: Expand the guest_memfd test macros to allow passing the VM
      KVM: selftests: Add guest_memfd regression test signed offset+size bug

Zongyao Chen (2):
      KVM: guest_memfd: Return -EEXIST for overlapping bindings
      KVM: selftests: Test guest_memfd binding overlap without GPA overlap

 tools/testing/selftests/kvm/guest_memfd_test.c     | 24 +++++++++++++++--
 .../testing/selftests/kvm/set_memory_region_test.c | 31 +++++++++++++++++++---
 virt/kvm/guest_memfd.c                             | 16 ++++++-----
 virt/kvm/kvm_mm.h                                  |  7 +++--
 4 files changed, 63 insertions(+), 15 deletions(-)

  parent reply	other threads:[~2026-06-12  0:48 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-12  0:47 [GIT PULL] KVM: x86 pull requests " Sean Christopherson
2026-06-12  0:47 ` [GIT PULL] KVM: x86: Generic changes " Sean Christopherson
2026-06-12  8:07   ` Paolo Bonzini
2026-06-12  0:47 ` Sean Christopherson [this message]
2026-06-12  8:10   ` [GIT PULL] KVM: x86: guest_memfd " Paolo Bonzini
2026-06-12  0:47 ` [GIT PULL] KVM: x86: Misc " Sean Christopherson
2026-06-12  8:14   ` Paolo Bonzini
2026-06-12  0:47 ` [GIT PULL] KVM: x86: MMU " Sean Christopherson
2026-06-12  8:14   ` Paolo Bonzini
2026-06-12  0:47 ` [GIT PULL] KVM: x86: Selftests " Sean Christopherson
2026-06-12  8:12   ` Paolo Bonzini
2026-06-12  0:47 ` [GIT PULL] KVM: x86: SEV " Sean Christopherson
2026-06-12  8:13   ` Paolo Bonzini
2026-06-12  0:47 ` [GIT PULL] KVM: x86: SVM " Sean Christopherson
2026-06-12  0:47 ` [GIT PULL] KVM: VFIO " Sean Christopherson
2026-06-12  8:14   ` Paolo Bonzini
2026-06-12  0:47 ` [GIT PULL] KVM: x86: VMX " Sean Christopherson
2026-06-12  8:15   ` Paolo Bonzini

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=20260612004755.349925-3-seanjc@google.com \
    --to=seanjc@google.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pbonzini@redhat.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

all inboxes | Powered by JetHome®