diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2024-02-20 14:43:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-03-01 13:41:57 +0100 |
commit | 2ab22db7753c8765b2ffc86ee62c4a6a0f42ed9e (patch) | |
tree | 8eb985fd4fe92753895213bdc9e554e19c28422d /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 4771ff553d8c5b9fb90976eb560777c8eac3f4c2 (diff) |
iommufd: Reject non-zero data_type if no data_len is provided
[ Upstream commit 7adc0c1cfa7732b81bf7bf2ed16ffb99719ceebf ]
Since the current design doesn't forward the data_type to the driver to
check unless there is a data_len/uptr for a driver specific struct we
should check and ensure that data_type is 0 if data_len is 0. Otherwise
any value is permitted.
Fixes: bd529dbb661d ("iommufd: Add a nested HW pagetable object")
Link: https://lore.kernel.org/r/0-v1-9b1ea6869554+110c60-iommufd_ck_data_type_jgg@nvidia.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions