IB/usnic: Update with bug fixes from core code
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 13 Jun 2018 17:19:42 +0000 (11:19 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 25 Jun 2018 20:38:28 +0000 (14:38 -0600)
commit43cbd64b1fdc1da89abdad88a022d9e87a98e9c6
tree0c59c13d41702a2446e20af6291610a8d1cf503a
parent1975acd9f3fdc08d5e77fa95e740592e37c97fc0
IB/usnic: Update with bug fixes from core code

usnic has a modified version of the core codes' ib_umem_get() and
related, and the copy misses many of the bug fixes done over the years:

Commit bc3e53f682d9 ("mm: distinguish between mlocked and pinned pages")
Commit 87773dd56d54 ("IB: ib_umem_release() should decrement mm->pinned_vm
                      from ib_umem_get")
Commit 8494057ab5e4 ("IB/uverbs: Prevent integer overflow in ib_umem_get
                      address arithmetic")
Commit 8abaae62f3fd ("IB/core: disallow registering 0-sized memory region")
Commit 66578b0b2f69 ("IB/core: don't disallow registering region starting
                      at 0x0")
Commit 53376fedb9da ("RDMA/core: not to set page dirty bit if it's already
                      set.")
Commit 8e907ed48827 ("IB/umem: Use the correct mm during ib_umem_release")

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/usnic/usnic_ib_verbs.c
drivers/infiniband/hw/usnic/usnic_uiom.c
drivers/infiniband/hw/usnic/usnic_uiom.h