On Mon, Jun 01, 2026 at 01:42:35PM -0700, Nicolin Chen wrote:
> The read count must be large enough to hold one fault or a group's faults.
> 
> iommufd_fault_fops_read() does not validate the count, but returns 0 as if
> the read had succeeded while leaving the pending fault in the queue.
> 
> Return -EINVAL in the undersize cases.
> 
> Fixes: 07838f7fd529 ("iommufd: Add iommufd fault object")
> Cc: [email protected]
> Signed-off-by: Nicolin Chen <[email protected]>

Reviewed-by: Pranjal Shrivastava <[email protected]>

Thanks,
Praan

Reply via email to