diff options
| author | Marc Zyngier <[email protected]> | 2024-10-02 20:49:59 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2024-10-08 15:44:27 +0000 |
| commit | 1442ee0011983f0c5c4b92380e6853afb513841a (patch) | |
| tree | 78f047d12e66129a3021e639081e7974e020fe22 /rust/helpers/helpers.c | |
| parent | irqchip/sifive-plic: Return error code on failure (diff) | |
| download | kernel-1442ee0011983f0c5c4b92380e6853afb513841a.tar.gz kernel-1442ee0011983f0c5c4b92380e6853afb513841a.zip | |
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: 64edfaa9a234 ("irqchip/gic-v4.1: Implement the v4.1 flavour of VMAPP")
Reported-by: Kunkun Jiang <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
