diff options
author | 2024-10-17 00:19:46 +0000 | |
---|---|---|
committer | 2024-10-17 09:20:48 +0100 | |
commit | 5978d4ec7e82ffc472ac2645601dd10b09e61b0f (patch) | |
tree | 25414eae137077cf243ffd15f36e230f36550f3f /scripts/gdb/linux/modules.py | |
parent | KVM: arm64: Fix shift-out-of-bounds bug (diff) | |
download | wireguard-linux-5978d4ec7e82ffc472ac2645601dd10b09e61b0f.tar.xz wireguard-linux-5978d4ec7e82ffc472ac2645601dd10b09e61b0f.zip |
KVM: arm64: vgic: Don't check for vgic_ready() when setting NR_IRQS
KVM commits to a particular sizing of SPIs when the vgic is initialized,
which is before the point a vgic becomes ready. On top of that, KVM
supplies a default amount of SPIs should userspace not explicitly
configure this.
As such, the check for vgic_ready() in the handling of
KVM_DEV_ARM_VGIC_GRP_NR_IRQS is completely wrong, and testing if nr_spis
is nonzero is sufficient for preventing userspace from playing games
with us.
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20241017001947.2707312-2-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions