linux/drivers/infiniband/hw
Lijun Ou 4772e03d23 RDMA/hns: Fix bug that caused srq creation to fail
Due to the incorrect use of the seg and obj information, the position of
the mtt is calculated incorrectly, and the free space of the page is not
enough to store the entire mtt, resulting in access to the next page. This
patch fixes this problem.

 Unable to handle kernel paging request at virtual address ffff00006e3cd000
 ...
 Call trace:
  hns_roce_write_mtt+0x154/0x2f0 [hns_roce]
  hns_roce_buf_write_mtt+0xa8/0xd8 [hns_roce]
  hns_roce_create_srq+0x74c/0x808 [hns_roce]
  ib_create_srq+0x28/0xc8

Fixes: 0203b14c4f ("RDMA/hns: Unify the calculation for hem index in hip08")
Signed-off-by: chenglang <chenglang@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-04-08 13:27:58 -03:00
..
bnxt_re 5.1 Merge Window Pull Request 2019-03-09 15:53:03 -08:00
cxgb3 RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
cxgb4 5.1 Merge Window Pull Request 2019-03-09 15:53:03 -08:00
hfi1 IB/hfi1: Fix the allocation of RSM table 2019-03-27 14:34:31 -03:00
hns RDMA/hns: Fix bug that caused srq creation to fail 2019-04-08 13:27:58 -03:00
i40iw i40iw: Avoid panic when handling the inetdev event 2019-03-17 21:40:40 -03:00
mlx4 IB/mlx4: Fix race condition between catas error reset and aliasguid flows 2019-03-17 21:40:39 -03:00
mlx5 IB/mlx5: Reset access mask when looping inside page fault handler 2019-03-27 15:27:11 -03:00
mthca RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
nes RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
ocrdma RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
qedr RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
qib drivers/IB,qib: Fix pinned/locked limit check in qib_get_user_pages() 2019-02-20 14:42:41 -07:00
usnic RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
vmw_pvrdma RDMA/vmw_pvrdma: Fix memory leak on pvrdma_pci_remove 2019-04-08 13:04:46 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00