NFSv4.1: Don't rebind to the same source port when reconnecting to the server
mainline inclusion from mainline-v5.5-rc1 commit e6237b6f category: bugfix bugzilla: NA CVE: NA -------------------------------- NFSv2, v3 and NFSv4 servers often have duplicate replay caches that look at the source port when deciding whether or not an RPC call is a replay of a previous call. This requires clients to perform strange TCP gymnastics in order to ensure that when they reconnect to the server, they bind to the same source port. NFSv4.1 and NFSv4.2 have sessions that provide proper replay semantics, that do not look at the source port of the connection. This patch therefore ensures they can ignore the rebind requirement. Signed-off-by:Trond Myklebust <trond.myklebust@hammerspace.com> Conflicts: fs/lockd/host.c fs/nfs/client.c fs/nfs/nfs4client.c include/linux/nfs_fs_sb.h include/linux/sunrpc/clnt.h Signed-off-by:
Zhang Xiaoxu <zhangxiaoxu5@huawei.com> Reviewed-by:
Yue Haibing <yuehaibing@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Showing
- fs/lockd/host.c 2 additions, 1 deletionfs/lockd/host.c
- fs/nfs/client.c 3 additions, 0 deletionsfs/nfs/client.c
- fs/nfs/nfs4client.c 3 additions, 0 deletionsfs/nfs/nfs4client.c
- include/linux/nfs_fs_sb.h 1 addition, 0 deletionsinclude/linux/nfs_fs_sb.h
- include/linux/sunrpc/clnt.h 1 addition, 0 deletionsinclude/linux/sunrpc/clnt.h
- include/linux/sunrpc/xprt.h 2 additions, 1 deletioninclude/linux/sunrpc/xprt.h
- net/sunrpc/clnt.c 6 additions, 1 deletionnet/sunrpc/clnt.c
- net/sunrpc/xprtsock.c 1 addition, 1 deletionnet/sunrpc/xprtsock.c
Please register or sign in to comment