[PATCH v2 0/3] RDMA/iwpm: fix the port-mapper request lifetime

From: Daniel Wade

Date: Sun Dec 06 2026 - 01:57:48 EST


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@xxxxxxxxx/
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(-)