Re: [PATCH 2/2] RDMA/umem: Fix potential addition overflow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux