RDMA/bnxt_re: Generic driver fixes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest15 patches 4 repliesIn review
- v111 patches 1 replySuperseded
Changes in v2 from the cover letter
- Added patches for SRQ/CQ resource teardown in HW before freeing the toggle page to avoid any access from NQ processing after the page is freed
- Fixed synchronization issues pointer for Sasiko for the patch that handles multiple WC page allocation
- Adding a cq and srq reference to avoid UAF
- Add a zero check ureq->sq_slots
- Adds a rollback code when ioremap fails
- Handles request to getting toggle mem on devices that doesn't support the feature
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | RDMA/bnxt_re: Initialize dpi variable to zerodrivers/ | +1 | 0 replies | |
| 2/15 | RDMA/bnxt_re: Free SRQ toggle page after firmware teardowndrivers/ | +3 | 0 replies | |
| 3/15 | RDMA/bnxt_re: Free CQ toggle page after firmware teardowndrivers/ | +3 | 0 replies | |
| 4/15 | RDMA/bnxt_re: Avoid any race while handling the hash list of CQdrivers/ drivers/ drivers/ +2 more | +35 | 1 reply | |
| 5/15 | RDMA/bnxt_re: Avoid any race while handling the hash list of SRQdrivers/ drivers/ drivers/ +2 more | +36 | 0 replies | |
| 6/15 | RDMA/bnxt_re: Add ownership check while getting the CQ toggle pagedrivers/ drivers/ drivers/ | +7 | 1 reply | |
| 7/15 | RDMA/bnxt_re: Add ownership check while getting the SRQ toggle pagedrivers/ drivers/ drivers/ | +7 | 0 replies | |
| 8/15 | RDMA/bnxt_re: Avoid displaying the kernel pointerdrivers/ | +0 | 0 replies | |
| 9/15 | RDMA/bnxt_re: Add a max slot check for SQdrivers/ drivers/ | +4 | 0 replies | |
| 10/15 | RDMA/bnxt_re: Proper rollback if the ioremap failsdrivers/ | +11 | 0 replies | |
| 11/15 | RDMA/bnxt_re: Avoid repeated requests to allocate WC pagesdrivers/ drivers/ drivers/ | +29 | 0 replies | |
| 12/15 | RDMA/bnxt_re: Fix the cleanup upon error during SRQ createdrivers/ | +15 | 0 replies | |
| 13/15 | RDMA/bnxt_re: Fix the cleanup upon error during CQ createdrivers/ | +16 | 0 replies | |
| 14/15 | RDMA/bnxt_re: Fail DBR related page allocation UAPIs if the feature is disableddrivers/ | +4 | 0 replies | |
| 15/15 | RDMA/bnxt_re: Reject GET_TOGGLE_MEM when toggle page was not allocateddrivers/ | +4 | 0 replies |
Reviews trailers per patch
12 of 15 patches have a Reviewed-by or Acked-by.
| Patch | Anantha Prabhu | Sriharsha Basavapatna | Kalesh AP |
|---|---|---|---|
| 1/15 | R-b | ||
| 2/15 | |||
| 3/15 | |||
| 4/15 | R-b | ||
| 5/15 | R-b | ||
| 6/15 | R-b | ||
| 7/15 | R-b | ||
| 8/15 | R-b | ||
| 9/15 | R-b | ||
| 10/15 | R-b | ||
| 11/15 | R-b | ||
| 12/15 | R-b | ||
| 13/15 | R-b | ||
| 14/15 | R-b | ||
| 15/15 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH rdma-rc v2 00/15] RDMA/bnxt_re: Generic driver fixes
Includes fixes for few issues pointed by sashiko. Also, some generic fixes found during internal code reviews.
Please review and Apply.
Thanks,
Selvin Xavier
v1 -> v2:
- Added patches for SRQ/CQ resource teardown in HW before freeing the toggle page to avoid any access from NQ processing after the page is freed
- Fixed synchronization issues pointer for Sasiko for the patch that handles multiple WC page allocation
- Adding a cq and srq reference to avoid UAF
- Add a zero check ureq->sq_slots
- Adds a rollback code when ioremap fails
- Handles request to getting toggle mem on devices that doesn't support the feature
Selvin Xavier (15):
RDMA/bnxt_re: Initialize dpi variable to zero RDMA/bnxt_re: Free SRQ toggle page after firmware teardown RDMA/bnxt_re: Free CQ toggle page after firmware teardown RDMA/bnxt_re: Avoid any race while handling the hash list of CQ RDMA/bnxt_re: Avoid any race while handling the hash list of SRQ RDMA/bnxt_re: Add ownership check while getting the CQ toggle page RDMA/bnxt_re: Add ownership check while getting the SRQ toggle page RDMA/bnxt_re: Avoid displaying the kernel pointer RDMA/bnxt_re: Add a max slot check for SQ
RDMA/bnxt_re: Proper rollback if the ioremap fails RDMA/bnxt_re: Avoid repeated requests to allocate WC pages RDMA/bnxt_re: Fix the cleanup upon error during SRQ create RDMA/bnxt_re: Fix the cleanup upon error during CQ create RDMA/bnxt_re: Fail DBR related page allocation UAPIs if the feature is
disabled
RDMA/bnxt_re: Reject GET_TOGGLE_MEM when toggle page was not allocated
drivers/infiniband/hw/bnxt_re/bnxt_re.h | 2 + drivers/infiniband/hw/bnxt_re/ib_verbs.c | 97 +++++++++++++++++++++-- drivers/infiniband/hw/bnxt_re/ib_verbs.h | 9 +++ drivers/infiniband/hw/bnxt_re/main.c | 4 +- drivers/infiniband/hw/bnxt_re/qplib_res.c | 11 +++ drivers/infiniband/hw/bnxt_re/qplib_sp.h | 1 + drivers/infiniband/hw/bnxt_re/uapi.c | 61 ++++++++++++-- 7 files changed, 169 insertions(+), 16 deletions(-)
Signature · 1 line
2.39.3