diff options
author | Jean-Philippe Brucker <jean-philippe@linaro.org> | 2022-04-26 14:04:45 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-05-06 16:25:39 +0100 |
commit | cbd23144f7662b00bcde32a938c4a4057e476d68 (patch) | |
tree | 258cc5bf56bc772f6db3fef3915dbc3820f1bdf3 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b131fa8c1d2afd05d0b7598621114674289c2fbb (diff) |
iommu/arm-smmu-v3-sva: Fix mm use-after-free
We currently call arm64_mm_context_put() without holding a reference to
the mm, which can result in use-after-free. Call mmgrab()/mmdrop() to
ensure the mm only gets freed after we unpinned the ASID.
Fixes: 32784a9562fb ("iommu/arm-smmu-v3: Implement iommu_sva_bind/unbind()")
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Tested-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Link: https://lore.kernel.org/r/20220426130444.300556-1-jean-philippe@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions