Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Andrew Stellman" <bugs@stellman-greene.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH rdma-rc] RDMA/siw: Reject an MPA reply too short for the IRD/ORD block
Date: Sat, 28 Nov 2026 14:26:47 +0000	[thread overview]
Message-ID: <sashiko-outbox-238775@kernel.org> (raw)
In-Reply-To: <20261128140838.58976-1-bugs@stellman-greene.com>

> From: Andrew Stellman <astellman@stellman-greene.com>
> 
> When a siw initiator uses enhanced connection setup (MPA v2),
> siw_proc_mpareply() reads the IRD/ORD block from the reply's private
> data without checking that the responder sent one. The responder
> chooses the PD_Length of its reply.
> 
> With a PD_Length of 0 there is no private data buffer and siw
> dereferences NULL:
> 
>   Unable to handle kernel paging request at virtual address dfff800000000000
>   KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
>   Call trace:
>    siw_cm_work_handler+0xfa8/0x1b5c (P)
>    process_one_work+0x5cc/0xc90
> [ ... ]
> The fix and this changelog were drafted with Claude Opus 5.5 and
> reviewed by me.
> 
> Fixes: 6c52fdc244b5 ("rdma/siw: connection management")
> Signed-off-by: Andrew Stellman <astellman@stellman-greene.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261128140838.58976-1-bugs@stellman-greene.com?part=1

      reply	other threads:[~2026-11-28 14:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 14:08 [PATCH rdma-rc] RDMA/siw: Reject an MPA reply too short for the IRD/ORD block Andrew Stellman
2026-11-28 14:26 ` sashiko-bot [this message]

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-238775@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=bugs@stellman-greene.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