NFS: Don't drop CB requests with invalid principals
authorChuck Lever <chuck.lever@oracle.com>
Wed, 29 Jun 2016 17:55:22 +0000 (13:55 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 Nov 2016 01:01:25 +0000 (01:01 +0000)
commit84f51dca935f35cdf0cd6c27365379970908629c
treee15936a43e119657c4b61c414576e5fb17791381
parent80f69c177edf53936ec365c1d2d5c055efd498d3
NFS: Don't drop CB requests with invalid principals

commit a4e187d83d88eeaba6252aac0a2ffe5eaa73a818 upstream.

Before commit 778be232a207 ("NFS do not find client in NFSv4
pg_authenticate"), the Linux callback server replied with
RPC_AUTH_ERROR / RPC_AUTH_BADCRED, instead of dropping the CB
request. Let's restore that behavior so the server has a chance to
do something useful about it, and provide a warning that helps
admins correct the problem.

Fixes: 778be232a207 ("NFS do not find client in NFSv4 ...")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/nfs/callback_xdr.c
net/sunrpc/svc.c