linux_dsm_epyc7002/drivers/infiniband/hw
Naresh Kumar PBS 934d0ac9a6 RDMA/bnxt_re: Fix driver crash on unaligned PSN entry address
When computing the first psn entry, driver checks for page alignment. If
this address is not page aligned,it attempts to compute the offset in that
page for later use by using ALIGN macro. ALIGN macro does not return
offset bytes but the requested aligned address and hence cannot be used
directly to store as offset.  Since driver was using the address itself
instead of offset, it resulted in invalid address when filling the psn
buffer.

Fixed driver to use PAGE_MASK macro to calculate the offset.

Fixes: fddcbbb02a ("RDMA/bnxt_re: Simplify obtaining queue entry from hw ring")
Link: https://lore.kernel.org/r/1598292876-26529-7-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Naresh Kumar PBS <nareshkumar.pbs@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-08-27 09:30:44 -03:00
..
bnxt_re RDMA/bnxt_re: Fix driver crash on unaligned PSN entry address 2020-08-27 09:30:44 -03:00
cxgb4 RDMA 5.9 merge window pull request 2020-08-06 16:43:36 -07:00
efa RDMA 5.9 merge window pull request 2020-08-06 16:43:36 -07:00
hfi1 RDMA/hfi1: Correct an interlock issue for TID RDMA WRITE request 2020-08-20 08:31:41 -03:00
hns Revert "RDMA/hns: Reserve one sge in order to avoid local length error" 2020-08-20 08:35:19 -03:00
i40iw RDMA 5.9 merge window pull request 2020-08-06 16:43:36 -07:00
mlx4 RDMA/mlx4: Read pkey table length instead of hardcoded value 2020-08-27 09:17:05 -03:00
mlx5 RDMA 5.9 merge window pull request 2020-08-06 16:43:36 -07:00
mthca treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
ocrdma RDMA: Remove the udata parameter from alloc_mr callback 2020-07-06 19:25:53 -03:00
qedr RDMA 5.9 merge window pull request 2020-08-06 16:43:36 -07:00
qib treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
usnic RDMA/usnic: Fix spelling mistake "transistion" -> "transition" 2020-08-18 13:18:53 -03:00
vmw_pvrdma RDMA: Remove the udata parameter from alloc_mr callback 2020-07-06 19:25:53 -03:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00