Skip to content
Snippets Groups Projects
Commit a2ff6d97 authored by Trond Myklebust's avatar Trond Myklebust Committed by Yang Yingliang
Browse files

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: default avatarTrond 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: default avatarZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Reviewed-by: default avatarYue Haibing <yuehaibing@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 94dc27cf
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment