aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorNicolin Chen <[email protected]>2023-07-28 06:33:26 +0000
committerJason Gunthorpe <[email protected]>2023-07-28 16:31:24 +0000
commit6129b59fcdf374b5d82e1f4518884da13de38b1a (patch)
treeca5b776d4d4cc09599730a79a07d751be4ca708d /tools/perf/scripts/python/libxed.py
parentiommufd: Add iommufd_access_change_ioas(_id) helpers (diff)
downloadkernel-6129b59fcdf374b5d82e1f4518884da13de38b1a.tar.gz
kernel-6129b59fcdf374b5d82e1f4518884da13de38b1a.zip
iommufd: Use iommufd_access_change_ioas in iommufd_access_destroy_object
Update iommufd_access_destroy_object() to call the new iommufd_access_change_ioas() helper. It is impossible to legitimately race iommufd_access_destroy_object() with iommufd_access_change_ioas() as iommufd_access_destroy_object() is only called once the refcount reache zero, so any concurrent iommufd_access_change_ioas() is already UAFing the memory. Link: https://lore.kernel.org/r/f9fbeca2cde7f8515da18d689b3e02a6a40a5e14.1690523699.git.nicolinc@nvidia.com Reviewed-by: Kevin Tian <[email protected]> Signed-off-by: Nicolin Chen <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions