aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_prog_array_init.c
diff options
context:
space:
mode:
authorTrond Myklebust <[email protected]>2022-03-25 10:37:31 -0400
committerTrond Myklebust <[email protected]>2022-03-25 13:22:58 -0400
commit421ab1be43bd015ffe744f4ea25df4f19d1ce6fe (patch)
tree1785c927d5e19320706b5fa78effe0fc9f271c71 /tools/testing/selftests/bpf/progs/test_prog_array_init.c
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: [email protected] Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions