Re: [PATCH v2 rdma-rc] RDMA/siw: Fix NULL dereference when disconnect races the RTR callback

From: Leon Romanovsky

Date: Tue Dec 01 2026 - 14:14:39 EST



On Sat, 28 Nov 2026 15:24:52 -0500, Andrew Stellman wrote:
> 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:
>
> [...]

Applied, thanks!

[1/1] RDMA/siw: Fix NULL dereference when disconnect races the RTR callback
https://git.kernel.org/rdma/rdma/c/068e263fb4aeaa

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>