aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx4
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2018-09-21 11:30:13 -0400
committerJason Gunthorpe <jgg@mellanox.com>2018-09-25 15:19:06 -0600
commitc6ce580716372d71cd119bacf73f14a62e9af2ea (patch)
treecfec93bc6ebd1580a7498589c05db2d516078b19 /drivers/infiniband/hw/mlx4
parentRDMA/umem: Minor optimizations (diff)
downloadlinux-dev-c6ce580716372d71cd119bacf73f14a62e9af2ea.tar.xz
linux-dev-c6ce580716372d71cd119bacf73f14a62e9af2ea.zip
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: 40ddacf2dda9 ("RDMA/umem: Don't hold mmap_sem for too long") Reported-by: Jason Gunthorpe <jgg@ziepe.ca> Signed-off-by: Doug Ledford <dledford@redhat.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4')
0 files changed, 0 insertions, 0 deletions