linux_dsm_epyc7002/drivers/infiniband
Selvin Xavier 84cf229f40 RDMA/bnxt_re: Fix the qp table indexing
qp->id can be a value outside the max number of qp. Indexing the qp table
with the id can cause out of bounds crash. So changing the qp table
indexing by (qp->id % max_qp -1).

Allocating one extra entry for QP1. Some adapters create one more than the
max_qp requested to accommodate QP1.  If the qp->id is 1, store the
inforamtion in the last entry of the qp table.

Fixes: f218d67ef0 ("RDMA/bnxt_re: Allow posting when QPs are in error")
Link: https://lore.kernel.org/r/1598292876-26529-4-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-08-27 09:30:43 -03:00
..
core RDMA/core: Fix spelling mistake "Could't" -> "Couldn't" 2020-08-20 08:31:41 -03:00
hw RDMA/bnxt_re: Fix the qp table indexing 2020-08-27 09:30:43 -03:00
sw RDMA/rxe: Fix panic when calling kmem_cache_create() 2020-08-27 09:14:41 -03:00
ulp RDMA/rtrs-srv: Replace device_register with device_initialize and device_add 2020-08-24 13:44:53 -03:00
Kconfig IB/uverbs: Enable CQ ioctl commands by default 2020-07-06 19:50:33 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00