summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNicolin Chen <nicolinc@nvidia.com>2026-06-01 13:42:33 -0700
committerJason Gunthorpe <jgg@nvidia.com>2026-06-05 11:07:11 -0300
commit00203ca8323f9714630408c19a209b52397975e6 (patch)
tree1c2fa7b15d36adc84571e19a004d8609f9884b93 /scripts
parent01e41ad76c12ae5c49ab4ef4fc7dd54e9b8784d6 (diff)
iommufd: Reject invalid read count in iommufd_veventq_fops_read()
The read count must be large enough to hold a vEVENT header. For a normal vEVENT, it must also hold the trailing data following the header. iommufd_veventq_fops_read() does not validate the count, but returns 0 as if the read had succeeded while leaving the pending event in the queue. Return -EINVAL in both undersize cases. Fixes: e36ba5ab808e ("iommufd: Add IOMMUFD_OBJ_VEVENTQ and IOMMUFD_CMD_VEVENTQ_ALLOC") Link: https://patch.msgid.link/r/e1111adcc8a8882fbfd84accd6674dc846dc5689.1780343944.git.nicolinc@nvidia.com Cc: stable@vger.kernel.org Signed-off-by: Nicolin Chen <nicolinc@nvidia.com> Reviewed-by: Pranjal Shrivastava <praan@google.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions