]> www.infradead.org Git - users/hch/misc.git/commit
NFSD: Refactor nfsd_setuser_and_check_port()
authorNeilBrown <neilb@suse.de>
Thu, 5 Sep 2024 19:09:39 +0000 (15:09 -0400)
committerAnna Schumaker <anna.schumaker@oracle.com>
Mon, 23 Sep 2024 19:03:30 +0000 (15:03 -0400)
commitb0d87dbd8bd311d4126f5b34a8494043c487695f
tree4f515a4c2a7491845e402f05b81898998936a638
parent0a183f24a7ae48b7c0f2327989754b5db5de02b8
NFSD: Refactor nfsd_setuser_and_check_port()

There are several places where __fh_verify unconditionally dereferences
rqstp to check that the connection is suitably secure.  They look at
rqstp->rq_xprt which is not meaningful in the target use case of
"localio" NFS in which the client talks directly to the local server.

Prepare these to always succeed when rqstp is NULL.

Signed-off-by: NeilBrown <neilb@suse.de>
Co-developed-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfsd/nfsfh.c