diff options
author | Jason Gunthorpe <[email protected]> | 2023-02-13 10:32:21 -0400 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2023-02-14 16:49:55 -0400 |
commit | b3551ead616318ea155558cdbe7e91495b8d9b33 (patch) | |
tree | 9ac199f32398b8bea2cfbbe085a4bc9fcb707ac2 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | bed9e516f1183faa0e484479701cc669efd9049a (diff) |
iommufd: Make sure to zero vfio_iommu_type1_info before copying to user
Missed a zero initialization here. Most of the struct is filled with
a copy_from_user(), however minsz for that copy is smaller than the
actual struct by 8 bytes, thus we don't fill the padding.
Cc: [email protected] # 6.1+
Fixes: d624d6652a65 ("iommufd: vfio container FD ioctl compatibility")
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Kevin Tian <[email protected]>
Reported-by: [email protected]
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions