From: Oliver Upton <oliver.upton@linux.dev>
To: kvmarm@lists.linux.dev, Marc Zyngier <maz@kernel.org>,
linux-arm-kernel@lists.infradead.org
Cc: Oliver Upton <oliver.upton@linux.dev>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Zenghui Yu <yuzenghui@huawei.com>,
Alexander Potapenko <glider@google.com>,
James Morse <james.morse@arm.com>
Subject: Re: [PATCH] KVM: arm64: vgic: Hold config_lock while tearing down a CPU interface
Date: Thu, 8 Aug 2024 17:07:19 +0000 [thread overview]
Message-ID: <172313677523.561165.13999775650521712100.b4-ty@linux.dev> (raw)
In-Reply-To: <20240808091546.3262111-1-maz@kernel.org>
On Thu, 8 Aug 2024 10:15:46 +0100, Marc Zyngier wrote:
> Tearing down a vcpu CPU interface involves freeing the private interrupt
> array. If we don't hold the lock, we may race against another thread
> trying to configure it. Yeah, fuzzers do wonderful things...
>
> Taking the lock early solves this particular problem.
>
>
> [...]
Applied to kvmarm/fixes, thanks!
[1/1] KVM: arm64: vgic: Hold config_lock while tearing down a CPU interface
https://git.kernel.org/kvmarm/kvmarm/c/9eb18136af9f
--
Best,
Oliver
next prev parent reply other threads:[~2024-08-08 17:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-08 9:15 [PATCH] KVM: arm64: vgic: Hold config_lock while tearing down a CPU interface Marc Zyngier
2024-08-08 17:07 ` Oliver Upton [this message]
2024-08-19 9:39 ` Zenghui Yu
2024-08-19 10:53 ` Marc Zyngier
2024-08-19 12:31 ` Zenghui Yu
2024-08-19 12:48 ` Marc Zyngier
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=172313677523.561165.13999775650521712100.b4-ty@linux.dev \
--to=oliver.upton@linux.dev \
--cc=glider@google.com \
--cc=james.morse@arm.com \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=maz@kernel.org \
--cc=suzuki.poulose@arm.com \
--cc=yuzenghui@huawei.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