diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-03-25 15:37:31 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-03-25 18:22:58 +0100 |
commit | 421ab1be43bd015ffe744f4ea25df4f19d1ce6fe (patch) | |
tree | 1785c927d5e19320706b5fa78effe0fc9f271c71 /LICENSES | |
parent | NFSv4.1: don't retry BIND_CONN_TO_SESSION on session error (diff) | |
download | linux-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 'LICENSES')
0 files changed, 0 insertions, 0 deletions