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 v2 rdma-rc] RDMA/siw: Fix NULL dereference when disconnect races the RTR callback
Date: Sat, 28 Nov 2026 20:32:10 +0000	[thread overview]
Message-ID: <sashiko-outbox-239020@kernel.org> (raw)
In-Reply-To: <20261128202452.45307-1-bugs@stellman-greene.com>

> From: Andrew Stellman <astellman@stellman-greene.com>
> 
> siw_rtr_data_ready() releases sk_callback_lock and then calls
> siw_qp_socket_assoc(), which reads cep->sock->sk before it takes the
> write lock. A concurrent disconnect can disassociate the socket and
> clear cep->sock in that gap.
> 
> In QEMU (arm64) on mainline as of 2026-11-28 with KASAN, a test server
> accepted an MPA v2 connection that waits for the peer's RTR frame. The
> server calls rdma_disconnect() when it gets the ESTABLISHED event. The
> peer sent an incomplete RTR header. With a test-only one second delay
> added after the callback unlock, this oopsed:
> 
>   Unable to handle kernel paging request at virtual address dfff800000000003
>   KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
> [ ... ]
> The fix and this changelog were drafted with OpenAI GPT-6 (Codex) and
> Claude Opus 5.5, and both were 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/20261128202452.45307-1-bugs@stellman-greene.com?part=1

      reply	other threads:[~2026-11-28 20:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 14:08 [PATCH rdma-rc] RDMA/siw: Fix NULL dereference when disconnect races the RTR callback Andrew Stellman
2026-11-28 14:21 ` sashiko-bot
2026-11-28 20:24 ` [PATCH v2 " Andrew Stellman
2026-11-28 20:32   ` 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-239020@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