kernel_samsung_a53x/net/sunrpc
Liu Jian a2b36338fd sunrpc: clear XPRT_SOCK_UPD_TIMEOUT when reset transport
[ Upstream commit 4db9ad82a6c823094da27de4825af693a3475d51 ]

Since transport->sock has been set to NULL during reset transport,
XPRT_SOCK_UPD_TIMEOUT also needs to be cleared. Otherwise, the
xs_tcp_set_socket_timeouts() may be triggered in xs_tcp_send_request()
to dereference the transport->sock that has been set to NULL.

Fixes: 7196dbb02ea0 ("SUNRPC: Allow changing of the TCP timeout parameters on the fly")
Signed-off-by: Li Lingfeng <lilingfeng3@huawei.com>
Signed-off-by: Liu Jian <liujian56@huawei.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:23 +01:00
..
auth_gss SUNRPC: Convert rpc_client refcount to use refcount_t 2024-12-17 13:24:22 +01:00
xprtrdma Revert "svcrdma: Catch another Reply chunk overflow case" 2024-11-24 00:23:42 +01:00
addr.c net: sunrpc: Fix an off by one in rpc_sockaddr2uaddr() 2024-11-19 08:44:57 +01:00
auth.c
auth_null.c
auth_unix.c
backchannel_rqst.c
cache.c SUNRPC: make sure cache entry active before cache_show 2024-12-17 13:24:20 +01:00
clnt.c sunrpc: remove unnecessary test in rpc_task_set_client() 2024-12-17 13:24:22 +01:00
debugfs.c SUNRPC: Convert rpc_client refcount to use refcount_t 2024-12-17 13:24:22 +01:00
Kconfig
Makefile
netns.h
rpc_pipe.c SUNRPC: Convert rpc_client refcount to use refcount_t 2024-12-17 13:24:22 +01:00
rpcb_clnt.c
sched.c SUNRPC: Fix a race to wake a sync task 2024-11-23 23:20:24 +01:00
socklib.c
socklib.h
stats.c Revert "sunrpc: use the struct net as the svc proc private" 2024-11-24 00:23:44 +01:00
sunrpc.h
sunrpc_syms.c
svc.c Revert "sunrpc: don't change ->sv_stats if it doesn't exist" 2024-11-24 00:23:45 +01:00
svc_xprt.c Revert "nfsd: Don't call freezable_schedule_timeout() after each successful page allocation in svc_alloc_arg()." 2024-11-24 00:23:50 +01:00
svcauth.c SUNRPC: Add svc_rqst::rq_auth_stat 2024-11-19 12:27:45 +01:00
svcauth_unix.c SUNRPC: Set rq_auth_stat in the pg_authenticate() callout 2024-11-19 12:27:45 +01:00
svcsock.c nfsd: fix double fget() bug in __write_ports_addfd() 2024-11-19 12:28:32 +01:00
sysctl.c
timer.c
xdr.c NFSD: Refactor common code out of dirlist helpers 2024-11-19 12:28:23 +01:00
xprt.c
xprtmultipath.c
xprtsock.c sunrpc: clear XPRT_SOCK_UPD_TIMEOUT when reset transport 2024-12-17 13:24:23 +01:00