aboutsummaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorOliver Upton <[email protected]>2024-01-04 18:32:32 +0000
committerMarc Zyngier <[email protected]>2024-01-04 19:26:34 +0000
commitad362fe07fecf0aba839ff2cc59a3617bd42c33f (patch)
treef0fabc18b2c1ae7a9202ee2a62d317275c525ba1 /tools/testing
parent39084ba8d0fceb477a264e2bb8dfd3553876b84c (diff)
KVM: arm64: vgic-its: Avoid potential UAF in LPI translation cache
There is a potential UAF scenario in the case of an LPI translation cache hit racing with an operation that invalidates the cache, such as a DISCARD ITS command. The root of the problem is that vgic_its_check_cache() does not elevate the refcount on the vgic_irq before dropping the lock that serializes refcount changes. Have vgic_its_check_cache() raise the refcount on the returned vgic_irq and add the corresponding decrement after queueing the interrupt. Cc: [email protected] Signed-off-by: Oliver Upton <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions