mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] RDMA/nldev: Reply with the command of the request
@ 2026-11-01 14:15 Nikolaos Gkarlis
  2026-11-01 14:15 ` [PATCH 1/2] RDMA/nldev: Reply to RDMA_NLDEV_CMD_PORT_GET with its own command Nikolaos Gkarlis
  2026-11-01 14:15 ` [PATCH 2/2] RDMA/nldev: Reply to RDMA_NLDEV_CMD_STAT_DEL " Nikolaos Gkarlis
  0 siblings, 2 replies; 3+ messages in thread
From: Nikolaos Gkarlis @ 2026-11-01 14:15 UTC (permalink / raw)
  To: Jason Gunthorpe, Leon Romanovsky
  Cc: linux-rdma, linux-kernel, Nikolaos Gkarlis

Two doit handlers reply with another command's message type:
RDMA_NLDEV_CMD_PORT_GET with RDMA_NLDEV_CMD_GET, and RDMA_NLDEV_CMD_STAT_DEL
with RDMA_NLDEV_CMD_STAT_SET. A client that decodes replies based on their
type mis-decodes them. AFAIK iproute2 igores the reply type and rdma-core
does not use these commands. I spotted these when writing an RDMA netlink
client for Go.

I used AI to prepare the patches but I reviewed and tested myself.

Nikolaos Gkarlis (2):
  RDMA/nldev: Reply to RDMA_NLDEV_CMD_PORT_GET with its own command
  RDMA/nldev: Reply to RDMA_NLDEV_CMD_STAT_DEL with its own command

 drivers/infiniband/core/nldev.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


base-commit: c3e8e9451e6f1b69f685b75e0fbf14f3d0fb2539
-- 
2.55.0


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

end of thread, other threads:[~2026-11-01 14:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-01 14:15 [PATCH 0/2] RDMA/nldev: Reply with the command of the request Nikolaos Gkarlis
2026-11-01 14:15 ` [PATCH 1/2] RDMA/nldev: Reply to RDMA_NLDEV_CMD_PORT_GET with its own command Nikolaos Gkarlis
2026-11-01 14:15 ` [PATCH 2/2] RDMA/nldev: Reply to RDMA_NLDEV_CMD_STAT_DEL " Nikolaos Gkarlis

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

all inboxes | Powered by JetHome®