Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Daniel Wade" <danjwade95@gmail.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH 2/2] RDMA/iwpm: reject a port-mapper reply meant for another request type
Date: Sat, 05 Dec 2026 14:55:41 +0000	[thread overview]
Message-ID: <sashiko-outbox-251666@kernel.org> (raw)
In-Reply-To: <20261205144111.8366-2-danjwade95@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] RDMA/iwpm: missing kernel-doc @nl_op entry for
  iwpm_get_nlmsg_request()
--

commit f2b6abe4027924cd727a004c636c95f6fb0f0a7b
Author: Daniel Wade <danjwade95@gmail.com>

RDMA/iwpm: reject a port-mapper reply meant for another request type

This commit records the expected netlink op on each iWARP port-mapper
request and rejects replies whose op does not match.

> diff --git a/drivers/infiniband/core/iwpm_util.h b/drivers/infiniband/core/iwpm_util.h
> index d6fc8402158a3..d612d0fc2c173 100644
> --- a/drivers/infiniband/core/iwpm_util.h
> +++ b/drivers/infiniband/core/iwpm_util.h

[ ... ]

> @@ -103,7 +104,8 @@ struct iwpm_admin_data {
>   * otherwise returns NULL
>   */
>  struct iwpm_nlmsg_request *iwpm_get_nlmsg_request(__u32 nlmsg_seq,
> -						u8 nl_client, gfp_t gfp);
> +						u16 nl_op, u8 nl_client,
> +						gfp_t gfp);

[Severity: Low]
Should the kernel-doc comment for iwpm_get_nlmsg_request() also document
the new @nl_op parameter?  Documentation/driver-api/infiniband.rst
includes drivers/infiniband/core/iwpm_util.h via kernel-doc, so omitting
@nl_op introduces a kernel-doc warning on documentation and W=1 builds.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261205144111.8366-1-danjwade95@gmail.com?part=2

  reply	other threads:[~2026-12-05 14:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05 14:41 [PATCH 1/2] RDMA/iwpm: fix use-after-free of the netlink request object Daniel Wade
2026-12-05 14:41 ` [PATCH 2/2] RDMA/iwpm: reject a port-mapper reply meant for another request type Daniel Wade
2026-12-05 14:55   ` sashiko-bot [this message]
2026-12-05 14:55 ` [PATCH 1/2] RDMA/iwpm: fix use-after-free of the netlink request object sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-251666@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=danjwade95@gmail.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox