]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vfio/type1: sanitize for overflow using check_*_overflow()
authorAlex Mastro <amastro@fb.com>
Tue, 28 Oct 2025 16:15:00 +0000 (09:15 -0700)
committerAlex Williamson <alex@shazbot.org>
Tue, 28 Oct 2025 21:54:41 +0000 (15:54 -0600)
commit6012379ede6aa7477db6276bb9876fe7d67c4312
tree96307a8e7d6df1be154f433c0289f10f32500cd7
parentdcb6fa37fd7bc9c3d2b066329b0d27dedf8becaa
vfio/type1: sanitize for overflow using check_*_overflow()

Adopt check_*_overflow() functions to clearly express overflow check
intent.

Tested-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Fixes: 73fa0d10d077 ("vfio: Type1 IOMMU implementation")
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Signed-off-by: Alex Mastro <amastro@fb.com>
Link: https://lore.kernel.org/r/20251028-fix-unmap-v6-1-2542b96bcc8e@fb.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
drivers/vfio/vfio_iommu_type1.c