diff options
| author | Nicolin Chen <[email protected]> | 2025-07-10 20:23:54 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2025-07-14 16:46:27 +0000 |
| commit | 5510bd89da24508f0e9ae04396e7eb6929ec0e18 (patch) | |
| tree | 29fd4f97c100de45f8a094f70de583ea5768503e /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | iommu/tegra241-cmdqv: Add IOMMU_VEVENTQ_TYPE_TEGRA241_CMDQV support (diff) | |
| download | kernel-5510bd89da24508f0e9ae04396e7eb6929ec0e18.tar.gz kernel-5510bd89da24508f0e9ae04396e7eb6929ec0e18.zip | |
iommufd: Do not allow _iommufd_object_alloc_ucmd if abort op is set
An abort op was introduced to allow its caller to invoke it within a lock
in the caller's function. On the other hand, _iommufd_object_alloc_ucmd()
would invoke the abort op in iommufd_object_abort_and_destroy() that must
be outside the caller's lock. So, these two cannot work together.
Add a validation in the _iommufd_object_alloc_ucmd(). Pick -EOPNOTSUPP to
reject the function call, indicating that the object allocator is buggy.
Link: https://patch.msgid.link/r/[email protected]
Suggested-by: Xu Yilun <[email protected]>
Signed-off-by: Nicolin Chen <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Reviewed-by: Xu Yilun <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
