Thread (2 messages) 2 messages, 2 authors, 2026-03-13

Re: [PATCH] net/smc: fix NULL pointer dereference in smc_tcp_syn_recv_sock

From: Eric Dumazet <edumazet@google.com>
Date: 2026-03-13 15:23:25
Also in: linux-rdma, linux-s390, lkml

On Fri, Mar 13, 2026 at 4:16 PM [off-list ref] wrote:
From: Henry Martin <redacted>

smc_tcp_syn_recv_sock() gets the SMC listener through
smc_clcsock_user_data(sk), but then dereferences it unconditionally.

During concurrent teardown, sk_user_data can already be cleared while the
hooked syn_recv_sock path is still reached, leaving smc as NULL. This
causes a NULL pointer dereference at atomic_read(&smc->queued_smc_hs).
https://lkml.org/lkml/2026/3/11/173
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help