diff options
author | Zenghui Yu <yuzenghui@huawei.com> | 2024-08-17 18:15:41 +0800 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2024-08-19 17:04:36 +0000 |
commit | 2240a50e6294214de791729e9dcba6880fa7e44e (patch) | |
tree | a69e0365c0e1a733de41b733896b443843f99e0f /lib/crypto/mpi/mpiutil.c | |
parent | 9eb18136af9fe4dd688724070f2bfba271bd1542 (diff) |
KVM: arm64: vgic-debug: Don't put unmarked LPIs
If there were LPIs being mapped behind our back (i.e., between .start() and
.stop()), we would put them at iter_unmark_lpis() without checking if they
were actually *marked*, which is obviously not good.
Switch to use the xa_for_each_marked() iterator to fix it.
Cc: stable@vger.kernel.org
Fixes: 85d3ccc8b75b ("KVM: arm64: vgic-debug: Use an xarray mark for debug iterator")
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240817101541.1664-1-yuzenghui@huawei.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions