Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* [PATCH 5.10.y 0/4] RDMA/rxe: Fix TOCTOU heap overflow in get_srq_wqe
@ 2026-09-03 20:08 Bjoern Doebel
  2026-09-03 20:08 ` [PATCH 5.10.y 1/4] RDMA/rxe: Fix over copying " Bjoern Doebel
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Bjoern Doebel @ 2026-09-03 20:08 UTC (permalink / raw)
  To: stable
  Cc: gregkh, sashal, linux-rdma, Tristan Madani, Bob Pearson,
	Dan Carpenter, Jason Gunthorpe, Zhu Yanjun, doebel

Upstream commit 22b8fbded65b ("RDMA/rxe: Fix TOCTOU heap overflow in
get_srq_wqe") fixes a heap buffer overflow in the rxe responder.

The fix does not apply to 5.10.y as-is because get_srq_wqe() there
predates three earlier cleanups. This series therefore backports those
prerequisites from 5.14 first, and then the actual fix:

  1/4 ec0fa2445c18 RDMA/rxe: Fix over copying in get_srq_wqe
      (context adjusted for 5.10)
  2/4 36941dfe0e8c RDMA/rxe: Missing unlock on error in get_srq_wqe()
      (clean cherry-pick)
  3/4 e2a05339fa11 RDMA/rxe: Use the correct size of wqe when processing SRQ
      (clean cherry-pick)
  4/4 22b8fbded65b RDMA/rxe: Fix TOCTOU heap overflow in get_srq_wqe
      (cherry-picked from the v6.1.178 backport 3cfa2a3adc51, context
       adjusted)

Tested in the Amazon Linux kernel test suite.

Bjoern

Bob Pearson (2):
  RDMA/rxe: Fix over copying in get_srq_wqe
  RDMA/rxe: Use the correct size of wqe when processing SRQ

Dan Carpenter (1):
  RDMA/rxe: Missing unlock on error in get_srq_wqe()

Tristan Madani (1):
  RDMA/rxe: Fix TOCTOU heap overflow in get_srq_wqe

 drivers/infiniband/sw/rxe/rxe_resp.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

-- 
2.50.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-09-03 20:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03 20:08 [PATCH 5.10.y 0/4] RDMA/rxe: Fix TOCTOU heap overflow in get_srq_wqe Bjoern Doebel
2026-09-03 20:08 ` [PATCH 5.10.y 1/4] RDMA/rxe: Fix over copying " Bjoern Doebel
2026-09-03 20:08 ` [PATCH 5.10.y 2/4] RDMA/rxe: Missing unlock on error in get_srq_wqe() Bjoern Doebel
2026-09-03 20:08 ` [PATCH 5.10.y 3/4] RDMA/rxe: Use the correct size of wqe when processing SRQ Bjoern Doebel
2026-09-03 20:08 ` [PATCH 5.10.y 4/4] RDMA/rxe: Fix TOCTOU heap overflow in get_srq_wqe Bjoern Doebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox