diff options
author | Xiyu Yang via iommu <iommu@lists.linux-foundation.org> | 2021-07-19 16:32:58 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2021-07-26 13:46:57 +0200 |
commit | 8bc54824da4e8fcf0ed679cf09ac32f23d83254a (patch) | |
tree | 1184c4ce24a49aee108dda9ebd2f3d55ba216c63 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ff1176468d368232b684f75e82563369208bc371 (diff) |
iommu/amd: Convert from atomic_t to refcount_t on pasid_state->count
refcount_t type and corresponding API can protect refcounters from
accidental underflow and overflow and further use-after-free situations.
Signed-off-by: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Signed-off-by: Xin Tan <tanxin.ctf@gmail.com>
Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Link: https://lore.kernel.org/r/1626683578-64214-1-git-send-email-xiyuyang19@fudan.edu.cn
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions