]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
SUNRPC: rpcbind should never reset the port to the value '0'
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 24 Mar 2025 23:05:48 +0000 (19:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:41:55 +0000 (14:41 +0200)
commit4a8ebc45f202195be92b5da0a2b7a600e693beb4
tree95f5e8decd9d5f9b88512d8b6589c78e14da9016
parent3ef02a05c86b4443c7af61b5edfb6b756411446e
SUNRPC: rpcbind should never reset the port to the value '0'

[ Upstream commit 214c13e380ad7636631279f426387f9c4e3c14d9 ]

If we already had a valid port number for the RPC service, then we
should not allow the rpcbind client to set it to the invalid value '0'.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sunrpc/rpcb_clnt.c