RDMA/rxe: copy send WQE to kernel buffer (TOCTOU hardening)
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v10 Latest2 patches 3 repliesApplied
- v92 patches 0 repliesSuperseded
- v82 patches 0 repliesSuperseded
Earlier versions · 7
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v7 | 2 patches | 0 replies | Superseded | |
| v6 | 2 patches | 1 reply | Superseded | |
| v5 | 2 patches | 0 replies | Superseded | |
| v4 | 2 patches | 3 replies | Superseded | |
| v3 | 2 patches | 0 replies | Superseded | |
| v2 | 2 patches | 3 replies | Superseded | |
| v1 | 2 patches | 3 replies | Superseded |
Changes in v10 from the cover letter
- Patch 1: check dma.resid != sizeof(u64) instead of just > to also catch undersized resid that leaks uninitialized pad bytes.
- Bisection fix: move qp->comp.comp_wqe_valid invalidation from patch 1 to patch 2, where the field is first defined.
Patches in v10 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | RDMA/rxe: copy send WQE to kernel buffer before processingdrivers/ drivers/ drivers/ | +73 | 1 reply | |
| 2/2 | RDMA/rxe: copy send WQE to kernel buffer in completer pathdrivers/ drivers/ drivers/ +1 more | +82 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Zhu Yanjun |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v10 0/2] RDMA/rxe: copy send WQE to kernel buffer (TOCTOU hardening)
The SoftRoCE (rxe) send queue is mmap-ed into userspace, allowing the requester and completer to process work queue entries (WQEs) whose fields can change between kernel reads.
This series copies each WQE to a kernel-private buffer before
processing: patch 1 for the requester, patch 2 for the completer. Both paths validate opcode bounds and SGE indices after copying, preserve DMA progress across multi-packet operations, and write back updated fields to the shared queue via WRITE_ONCE / smp_store_release.
Changes since v9:
- Patch 1: check dma.resid != sizeof(u64) instead of just > to also catch undersized resid that leaks uninitialized pad bytes.
- Bisection fix: move qp->comp.comp_wqe_valid invalidation from patch 1 to patch 2, where the field is first defined.
Tristan Madani (2):
RDMA/rxe: copy send WQE to kernel buffer before processing RDMA/rxe: copy send WQE to kernel buffer in completer path
drivers/infiniband/sw/rxe/rxe_comp.c | 76 ++++++++++++++++++++++++++- drivers/infiniband/sw/rxe/rxe_qp.c | 2 + drivers/infiniband/sw/rxe/rxe_req.c | 72 +++++++++++++++++++++++-- drivers/infiniband/sw/rxe/rxe_verbs.h | 12 +++++ 4 files changed, 155 insertions(+), 7 deletions(-)
Signature · 1 line
2.47.3