mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sean Christopherson <seanjc@google.com>
To: James Houghton <jthoughton@google.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>, Peter Xu <peterx@redhat.com>,
	kvm@vger.kernel.org,  linux-kernel@vger.kernel.org,
	 syzbot+55eaa971f4924b62c9a5@syzkaller.appspotmail.com
Subject: Re: [PATCH v2 0/4] KVM: Don't let dirty ring resets pass dirty_index
Date: Thu, 3 Dec 2026 13:36:10 -0800	[thread overview]
Message-ID: <axHgyvVdj1H76ShL@seanjc-mac.roam.internal> (raw)
In-Reply-To: <20261203212054.2957430-1-jthoughton@google.com>

On Thu, Dec 03, 2026, James Houghton wrote:
> Fix a userspace-triggerable WARN in kvm_dirty_ring_push() reported by
> syzbot[1], and tidy up the memory ordering and annotations around the
> dirty ring indices while in the area.

...

> v2:
>  - Rebase onto v7.4-rc5.
>  - Selftest: clear the bogus RESET flags after verifying that KVM doesn't
>    reset them, so that they can't race with KVM pushing to the entries
>    while the ring is being reaped[2].

Doh, I was just a hair late in giving an update.  I pushed v1 to kvm-x86/generic
this morning, with a few comment tweaks to try to clarify some of the subtle
behavior around updating the index.  Can you take a look and make it sure I got
the fixups right (and didn't break anything else in the process)?

  4be77a92049629483a5ef993d7b76f6a7e914573 KVM: selftests: Verify KVM doesn't reset unused dirty ring entries
  5510a1d5371805ee0d77876f7f8ae904b792ea33 KVM: Annotate concurrent accesses to dirty ring indices
  32299d83582a9f7df297dbc1e3dfed30e009f3cd KVM: Use smp_store_release() to mark dirty ring entries as dirtied
  1a56dadc3c69b8ba654f9b12f3397dc7d451a6f8 KVM: Don't reset dirty ring entries that KVM hasn't pushe

> v1: https://lore.kernel.org/kvm/20261117212913.3634487-1-jthoughton@google.com

  parent reply	other threads:[~2026-12-03 21:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 21:20 James Houghton
2026-12-03 21:20 ` [PATCH v2 1/4] KVM: Don't reset dirty ring entries that KVM hasn't pushed James Houghton
2026-12-03 21:20 ` [PATCH v2 2/4] KVM: Use smp_store_release() to mark dirty ring entries as dirtied James Houghton
2026-12-03 21:20 ` [PATCH v2 3/4] KVM: Annotate concurrent accesses to dirty ring indices James Houghton
2026-12-03 21:20 ` [PATCH v2 4/4] KVM: selftests: Verify KVM doesn't reset unused dirty ring entries James Houghton
2026-12-03 21:36 ` Sean Christopherson [this message]
2026-12-03 21:47   ` [PATCH v2 0/4] KVM: Don't let dirty ring resets pass dirty_index James Houghton

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=axHgyvVdj1H76ShL@seanjc-mac.roam.internal \
    --to=seanjc@google.com \
    --cc=jthoughton@google.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=peterx@redhat.com \
    --cc=syzbot+55eaa971f4924b62c9a5@syzkaller.appspotmail.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®