summaryrefslogtreecommitdiffstats
path: root/net/sctp/bind_addr.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2022-03-25 15:37:31 +0100
committerTrond Myklebust <trond.myklebust@hammerspace.com>2022-03-25 18:22:58 +0100
commit421ab1be43bd015ffe744f4ea25df4f19d1ce6fe (patch)
tree1785c927d5e19320706b5fa78effe0fc9f271c71 /net/sctp/bind_addr.c
parentNFSv4.1: don't retry BIND_CONN_TO_SESSION on session error (diff)
downloadlinux-421ab1be43bd015ffe744f4ea25df4f19d1ce6fe.tar.xz
linux-421ab1be43bd015ffe744f4ea25df4f19d1ce6fe.zip
SUNRPC: Do not dereference non-socket transports in sysfs
Do not cast the struct xprt to a sock_xprt unless we know it is a UDP or TCP transport. Otherwise the call to lock the mutex will scribble over whatever structure is actually there. This has been seen to cause hard system lockups when the underlying transport was RDMA. Fixes: b49ea673e119 ("SUNRPC: lock against ->sock changing during sysfs read") Cc: stable@vger.kernel.org Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'net/sctp/bind_addr.c')
0 files changed, 0 insertions, 0 deletions