summaryrefslogtreecommitdiff
path: root/.get_maintainer.ignore
diff options
context:
space:
mode:
authorHagar Hemdan <hagarhem@amazon.com>2024-05-31 19:21:44 +0300
committerThomas Gleixner <tglx@linutronix.de>2024-06-03 19:20:00 +0300
commitb97e8a2f7130a4b30d1502003095833d16c028b3 (patch)
tree1b8acf9649f7886913a32c9ed40fbb28576c3598 /.get_maintainer.ignore
parente306a894bd511804ba9db7c00ca9cc05b55df1f2 (diff)
downloadlinux-b97e8a2f7130a4b30d1502003095833d16c028b3.tar.xz
irqchip/gic-v3-its: Fix potential race condition in its_vlpi_prop_update()
its_vlpi_prop_update() calls lpi_write_config() which obtains the mapping information for a VLPI without lock held. So it could race with its_vlpi_unmap(). Since all calls from its_irq_set_vcpu_affinity() require the same lock to be held, hoist the locking there instead of sprinkling the locking all over the place. This bug was discovered using Coverity Static Analysis Security Testing (SAST) by Synopsys, Inc. [ tglx: Use guard() instead of goto ] Fixes: 015ec0386ab6 ("irqchip/gic-v3-its: Add VLPI configuration handling") Suggested-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Hagar Hemdan <hagarhem@amazon.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: stable@vger.kernel.org Reviewed-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20240531162144.28650-1-hagarhem@amazon.com
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions