On Fri, Sep 21, 2018 at 11:30:13AM -0400, Doug Ledford wrote: > 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@xxxxxxxx> > Signed-off-by: Doug Ledford <dledford@xxxxxxxxxx> > --- > drivers/infiniband/core/umem.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature