Commit ada14b9
iommu: Require passing new handles to APIs supporting handle
Add kdoc to highligt the caller of iommu_[attach|replace]_group_handle()
and iommu_attach_device_pasid() should always provide a new handle. This
can avoid race with lockless reference to the handle. e.g. the
find_fault_handler() and iommu_report_device_fault() in the PRI path.
Link: https://patch.msgid.link/r/20250321171940.7213-2-yi.l.liu@intel.com
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>1 parent 06d54f0 commit ada14b9
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3365 | 3365 | | |
3366 | 3366 | | |
3367 | 3367 | | |
| 3368 | + | |
| 3369 | + | |
| 3370 | + | |
3368 | 3371 | | |
3369 | 3372 | | |
3370 | 3373 | | |
| |||
3525 | 3528 | | |
3526 | 3529 | | |
3527 | 3530 | | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
3528 | 3534 | | |
3529 | 3535 | | |
3530 | 3536 | | |
| |||
3594 | 3600 | | |
3595 | 3601 | | |
3596 | 3602 | | |
| 3603 | + | |
| 3604 | + | |
| 3605 | + | |
3597 | 3606 | | |
3598 | 3607 | | |
3599 | 3608 | | |
| |||
0 commit comments