Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RDMA/umem: Fix potential addition overflow
Given a large enough memory allocation, it is possible to wrap the pinned_vm counter. Check for addition overflow to prevent such eventualities. Fixes: 40ddacf ("RDMA/umem: Don't hold mmap_sem for too long") Reported-by: Jason Gunthorpe <[email protected]> Signed-off-by: Doug Ledford <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
- Loading branch information