WSL2-Linux-Kernel/net/sunrpc
NeilBrown b49ea673e1 SUNRPC: lock against ->sock changing during sysfs read
->sock can be set to NULL asynchronously unless ->recv_mutex is held.
So it is important to hold that mutex.  Otherwise a sysfs read can
trigger an oops.
Commit 17f09d3f61 ("SUNRPC: Check if the xprt is connected before
handling sysfs reads") appears to attempt to fix this problem, but it
only narrows the race window.

Fixes: 17f09d3f61 ("SUNRPC: Check if the xprt is connected before handling sysfs reads")
Fixes: a8482488a7 ("SUNRPC query transport's source port")
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
2022-02-08 09:14:26 -05:00
..
auth_gss NFS Client Updates for Linux 5.17 2022-01-25 20:16:03 +02:00
xprtrdma xprtrdma: fix pointer derefs in error cases of rpcrdma_ep_create 2022-02-08 09:14:26 -05:00
Kconfig
Makefile
addr.c
auth.c
auth_null.c
auth_unix.c
backchannel_rqst.c
cache.c proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
clnt.c
debugfs.c
fail.h
netns.h
rpc_pipe.c fsnotify: fix fsnotify hooks in pseudo filesystems 2022-01-24 14:17:02 +01:00
rpcb_clnt.c
sched.c
socklib.c
socklib.h
stats.c proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
sunrpc.h
sunrpc_syms.c
svc.c
svc_xprt.c Highlights: 2022-01-16 07:42:58 +02:00
svcauth.c
svcauth_unix.c
svcsock.c
sysctl.c
sysfs.c SUNRPC: lock against ->sock changing during sysfs read 2022-02-08 09:14:26 -05:00
sysfs.h
timer.c
xdr.c
xprt.c
xprtmultipath.c
xprtsock.c SUNRPC: lock against ->sock changing during sysfs read 2022-02-08 09:14:26 -05:00