summaryrefslogtreecommitdiff
path: root/net/mac80211
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2022-03-25 10:37:31 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2022-03-25 13:22:58 -0400
commit421ab1be43bd015ffe744f4ea25df4f19d1ce6fe (patch)
tree1785c927d5e19320706b5fa78effe0fc9f271c71 /net/mac80211
parent1d15d121cc2ad4d016a7dc1493132a9696f91fc5 (diff)
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/mac80211')
0 files changed, 0 insertions, 0 deletions