]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit74479f347ba2c02952cacffadd2acbe14a305304
tree0c59c13d41702a2446e20af6291610a8d1cf503a
parentdb647fd3226eda1c32614da1f4a4295afa507010
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 d367e78e2e0e ("mm: distinguish between mlocked and pinned pages")
Commit a88cb8d3789f ("IB: ib_umem_release() should decrement mm->pinned_vm
                      from ib_umem_get")
Commit 4ef7e5859d16 ("IB/uverbs: Prevent integer overflow in ib_umem_get
                      address arithmetic")
Commit 74c1b8ce5e89 ("IB/core: disallow registering 0-sized memory region")
Commit 9c5afa841956 ("IB/core: don't disallow registering region starting
                      at 0x0")
Commit 6d2ec69f2166 ("RDMA/core: not to set page dirty bit if it's already
                      set.")
Commit c651eb0b4aa1 ("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