linux-stable/include/linux/irqchip
Marc Zyngier 1442ee0011 irqchip/gic-v4: Don't allow a VMOVP on a dying VPE
Kunkun Jiang reported that there is a small window of opportunity for
userspace to force a change of affinity for a VPE while the VPE has already
been unmapped, but the corresponding doorbell interrupt still visible in
/proc/irq/.

Plug the race by checking the value of vmapp_count, which tracks whether
the VPE is mapped ot not, and returning an error in this case.

This involves making vmapp_count common to both GICv4.1 and its v4.0
ancestor.

Fixes: 64edfaa9a2 ("irqchip/gic-v4.1: Implement the v4.1 flavour of VMAPP")
Reported-by: Kunkun Jiang <jiangkunkun@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/c182ece6-2ba0-ce4f-3404-dba7a3ab6c52@huawei.com
Link: https://lore.kernel.org/all/20241002204959.2051709-1-maz@kernel.org
2024-10-08 17:44:27 +02:00
..
arm-gic-common.h irqchip/gic-v3: Make distributor priorities variables 2024-06-24 18:16:44 +01:00
arm-gic-v3-prio.h arm64: irqchip/gic-v3: Select priorities at boot time 2024-06-24 18:16:45 +01:00
arm-gic-v3.h irqchip/gic-v3: Make distributor priorities variables 2024-06-24 18:16:44 +01:00
arm-gic-v4.h irqchip/gic-v4: Don't allow a VMOVP on a dying VPE 2024-10-08 17:44:27 +02:00
arm-gic.h irqchip/gic: Drop support for board files 2023-04-08 10:50:04 +01:00
arm-vgic-info.h KVM: arm64: vgic: Let an interrupt controller advertise lack of HW deactivation 2021-06-01 10:45:59 +01:00
arm-vic.h
chained_irq.h
irq-bcm2836.h
irq-davinci-aintc.h
irq-davinci-cp-intc.h
irq-madera.h
irq-omap-intc.h
irq-partition-percpu.h cpumask: make core headers including cpumask_types.h where possible 2024-06-24 22:25:02 -07:00
irq-sa11x0.h
riscv-aplic.h irqchip: Add RISC-V advanced PLIC driver for direct-mode 2024-03-25 17:38:29 +01:00
riscv-imsic.h irqchip/riscv-imsic: Add ACPI support 2024-08-27 15:48:36 +02:00
xtensa-mx.h
xtensa-pic.h