Re: [PATCH] iommu/amd: Convert from atomic_t to refcount_t on pasid_state->count

2021-07-26 Thread Joerg Roedel
On Mon, Jul 19, 2021 at 04:32:58PM +0800, Xiyu Yang wrote: > drivers/iommu/amd/iommu_v2.c | 13 +++-- > 1 file changed, 7 insertions(+), 6 deletions(-) Applied, thanks. ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxf

Re: [PATCH] iommu/amd: Convert from atomic_t to refcount_t on pasid_state->count

2021-07-22 Thread Suthikulpanit, Suravee via iommu
On 7/19/2021 3:32 AM, Xiyu Yang wrote: 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 Signed-off-by: Xin Tan Thanks, Reviewed-by: Suravee Suthikulpanit _

[PATCH] iommu/amd: Convert from atomic_t to refcount_t on pasid_state->count

2021-07-19 Thread Xiyu Yang via iommu
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 Signed-off-by: Xin Tan --- drivers/iommu/amd/iommu_v2.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff