From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.70 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796333772; b=X7USE94OWui/3qquUvZjgSRXXTRJm+9dA8jtpAbmIPMWsX/Cz15trej3iECAsqwDQnEv axvJu2oGmgbLdoJIUPyfc90eYHmef4QNnONCm8HmWUQXkRCdfsLC3nZ+5PFNX6SiEP7pc NXZGXvmQlvmQegIgDj1B7Zk0cGvFZhhN4kq7evHTGx2MUwcXlhXlAUL5JersWNMAdJns/ MsAddhBK0DMG6Y/dEc9XRnI+selK2Jpg9If01Pj3xJAskC6eJvfCssj7TAV043FQfnFa5 CnuZn70/xw2apTupQ4rekd/09uLabQ55krX1Uwd+3CAvDVKJVxyq3KrVNFGd3xXQsYg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796333772; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:Message-ID:Subject:From:To:Cc:Content-Type; bh=jEJ5+G6e/Yf4RVpiQogJ9p7DVWODsVCxssScWWb02qc=; b=0Je1WxOrarh9hOI2szhHGdXx20wAxGWrUndmJClciKrpMk8CDwTtFNR3Vewb3IWykqBC 91IrTr0ZRqeYattXzxRjqlIU2XQlkAhslIRnPklGeShW12SjjqULl8xcnuw4dwTIE0piM R18W62h3VyzFpg6FZ/RUsVAUkSU0su5fL3eCn4o/o0ap4jSsn7tyzd8ffi4CiUm6j8tYc nuIzMG0KnWXTSKYXW22ZXRhsRSXXYoBqjALvXVLD4QzTycH7C68AN0AdflnIRO2mPwScd OWbZgyg7GzLrdGwqYPUPRd8ZUjTAI3P8bk71lz7M6I6G1VPNeitPmBqfcpWp+rsY0ew== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=h7wXiMxv; arc=none smtp.remote-ip=209.85.216.70 Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 63A60606A322 for ; Thu, 3 Dec 2026 21:36:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 63A60606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=h7wXiMxv Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3b539019e1aso241964a91.0 for ; Thu, 03 Dec 2026 13:36:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796333772; x=1796938572; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=jEJ5+G6e/Yf4RVpiQogJ9p7DVWODsVCxssScWWb02qc=; b=h7wXiMxvk/XfZr6ILXUckfpK+SVHkhS/pmNF7UyQG6E1dd7fEKOg1a1HUPsIH6Yend 0s1288T9uDI8W05S2os/zDnBQD/6FU8pGtsAXHT3Pk+Ixj4mEqXB0UGLnx1/+Ka6sNef Wy7ByTCT4CSmn2GsGYwpW/JEqoLCCLGCJXWWLquHghQtKbyEdzwnhAMmqYYqPjhQhvh2 7GzCPIlq3WGdO0Hyky8oMyfsXIjPh1aiKTcWZAYcHUFsmIXS75R4lwdIzfNC72VFcMxf puRRHmO9YbKcPNnWJ6d5sTDkrtqghSPBbwUwKdQilkReMdlMjwXipk2zrTRM37o+2lIF BNeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796333772; x=1796938572; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=jEJ5+G6e/Yf4RVpiQogJ9p7DVWODsVCxssScWWb02qc=; b=uVFd62psGkTwwvo8CZjfCKqxGW8p7sECyHo3nRWFzlemHjX7o4VAa9lsEA3rz7xAC1 XwYn5bQdShQk6trxPnMEpLHmbNuyD9N/MQN9fyD8bORV4nhHPZ0WwV6IRA/1uQGKHFQM eTm5WgrUiry1GO8kp5ajGCcoGtQpL7BlXSqbIV16Jc+vk183KUhtrr1xMkRECCXEjX25 9sg5ywZsBeh3D9B8roLLRQNdwY+xbzRgKzpYTaq9RjGBztaLtH6chi5R/+P+64mouUxf i+6q0gLWaNYjsfcatL5KtISgZrAl6+7/3tKWEdK5GzzJOAoIoCzUFq7Wl4+lfoH3xyae iisg== X-Forwarded-Encrypted: i=1; AL+hErEogKG85+vtQXBHuwFJHthDsZ8zV57NiE3vBar3Vmu/wxCVqMjgNbi96U9GWsvTrBw0YvKmlegXLHBq4NY=@vger.kernel.org X-Gm-Message-State: APuU4Z/BQlsh49UNi0qibas6xGRiMX7YZT9cZq7K5FT/jdg2Ns08uawE ncNdyNu8taxu+f70TpKtIJDUGkan8Z7zakFB6ooe5e1S81Y97K2HvJzE+Ni4mAL1TcCb4sr/+TH pb6zfMw== X-Received: from pjbmg4.prod.google.com ([2002:a17:90b:3704:b0:3b4:1351:6107]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:3f0f:b0:3a0:b312:1fbe with SMTP id 98e67ed59e1d1-3b41c9006d4mr62336150a91.23.1796333771490; Thu, 03 Dec 2026 13:36:11 -0800 (PST) Date: Thu, 3 Dec 2026 13:36:10 -0800 In-Reply-To: <20261203212054.2957430-1-jthoughton@google.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261203212054.2957430-1-jthoughton@google.com> Message-ID: Subject: Re: [PATCH v2 0/4] KVM: Don't let dirty ring resets pass dirty_index From: Sean Christopherson To: James Houghton Cc: Paolo Bonzini , Peter Xu , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+55eaa971f4924b62c9a5@syzkaller.appspotmail.com Content-Type: text/plain; charset="us-ascii" 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