Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* [PATCH v2 0/3] RDMA/iwpm: fix the port-mapper request lifetime
@ 2026-12-06  6:57 Daniel Wade
  2026-12-06  6:57 ` [PATCH v2 1/3] RDMA/iwpm: fix use-after-free of the netlink request object Daniel Wade
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Daniel Wade @ 2026-12-06  6:57 UTC (permalink / raw)
  To: Jason Gunthorpe, Leon Romanovsky
  Cc: Jeffin Philip, Shuangpeng Bai, linux-rdma, linux-kernel

Patch 1 gives the request a single owner. Patch 2 records which reply
each request expects. Patch 3 uses that to keep the data inside the
request, so no stack address reaches a netlink callback. Patch 3 needs
the field patch 2 adds.

Only patch 1 is tagged for stable.

v1: https://lore.kernel.org/all/20261205144111.8366-1-danjwade95@gmail.com/
v2: document @nl_op, which kernel-doc warns about at W=1;
    new patch 3, which removes the stack pointer raised against
    v1 1/2.


Daniel Wade (3):
  RDMA/iwpm: fix use-after-free of the netlink request object
  RDMA/iwpm: reject a port-mapper reply meant for another request type
  RDMA/iwpm: keep the port-mapper request data inside the request

 drivers/infiniband/core/iwpm_msg.c  | 65 ++++++++++++++++++++---------
 drivers/infiniband/core/iwpm_util.c | 10 ++---
 drivers/infiniband/core/iwpm_util.h | 14 +++++--
 3 files changed, 62 insertions(+), 27 deletions(-)


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

end of thread, other threads:[~2026-12-06  7:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-06  6:57 [PATCH v2 0/3] RDMA/iwpm: fix the port-mapper request lifetime Daniel Wade
2026-12-06  6:57 ` [PATCH v2 1/3] RDMA/iwpm: fix use-after-free of the netlink request object Daniel Wade
2026-12-06  6:57 ` [PATCH v2 2/3] RDMA/iwpm: reject a port-mapper reply meant for another request type Daniel Wade
2026-12-06  6:57 ` [PATCH v2 3/3] RDMA/iwpm: keep the port-mapper request data inside the request Daniel Wade
2026-12-06  7:10   ` sashiko-bot
2026-12-06  7:41     ` Daniel Wade
2026-12-06  7:12 ` [PATCH v2 0/3] RDMA/iwpm: fix the port-mapper request lifetime sashiko-bot

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