mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] KVM: Fix guest_memfd binding overlap errno and selftest
@ 2026-05-22 17:21 Sean Christopherson
  2026-05-22 17:21 ` [PATCH v2 1/3] KVM: guest_memfd: Return -EEXIST for overlapping bindings Sean Christopherson
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Sean Christopherson @ 2026-05-22 17:21 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: kvm, linux-kernel, Zongyao Chen, Ackerley Tng, Sean Christopherson

Fix a goof where KVM rejects guest_memfd bindings that overlap an existing
binding with EINVAL instead of the intended EEXIST, and then add that specific
scenario to testcase that's supposed to verify overlap checks.

v2:
 - Collect Ackerley's reviews.
 - Keep the GPA overlap testcases (because why not). [Sean]
 - Add a patch to remove superfluous %s formatting. [Ackerley]

v1: https://lore.kernel.org/all/20260518070943.2091287-1-ZongYao.Chen@linux.alibaba.com

Sean Christopherson (1):
  KVM: selftests: Remove unnecessary "%s" formatting of a constant
    string

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

 .../selftests/kvm/set_memory_region_test.c    | 31 ++++++++++++++++---
 virt/kvm/guest_memfd.c                        |  1 +
 2 files changed, 28 insertions(+), 4 deletions(-)


base-commit: b7fbe9a1bf9ee6c967ef77d366ca58c35fcf1887
-- 
2.54.0.794.g4f17f83d09-goog


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-05-27 18:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-22 17:21 [PATCH v2 0/3] KVM: Fix guest_memfd binding overlap errno and selftest Sean Christopherson
2026-05-22 17:21 ` [PATCH v2 1/3] KVM: guest_memfd: Return -EEXIST for overlapping bindings Sean Christopherson
2026-05-22 17:21 ` [PATCH v2 2/3] KVM: selftests: Test guest_memfd binding overlap without GPA overlap Sean Christopherson
2026-05-22 17:21 ` [PATCH v2 3/3] KVM: selftests: Remove unnecessary "%s" formatting of a constant string Sean Christopherson
2026-05-22 17:52   ` Ackerley Tng
2026-05-27 18:10 ` [PATCH v2 0/3] KVM: Fix guest_memfd binding overlap errno and selftest Sean Christopherson

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®