Skip to content

nfsd: fix v4.0 GSSAPI callback channel auth failures

Jeff Layton linux-nfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 0 repliesNew

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3auth_gss: fetch the acceptor name out of the downcallinclude/linux/sunrpc/auth_gss.h net/sunrpc/auth_gss/auth_gss.c+18 -30 replies
2/3sunrpc: add a new "stringify_acceptor" rpc_credopinclude/linux/sunrpc/auth.h net/sunrpc/auth.c net/sunrpc/auth_gss/auth_gss.c+53 -200 replies
3/3nfs4: copy acceptor name from context to nfs_clientfs/nfs/callback.c fs/nfs/client.c fs/nfs/nfs4proc.c +2 more+47 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] nfsd: fix v4.0 GSSAPI callback channel auth failures

This is a respin of the kernel patchset that I sent back in early April to fix the client's GSSAPI authentication in the v4.0 callback channel. The userland piece of this has already been merged into nfs-utils.

The only real change here is to move the "stringification" of the acceptor name out of the rpc_done callback and into the synchronous caller. As Trond pointed out, we can't do that in rpciod callbacks as it could recurse into writeback.

The callback now just takes a reference to the rpccred and stores a pointer to it in the nfs4_setclientid struct. If that's non-NULL after the call returns, we do the stringification there and then put the cred.

Jeff Layton (3):
auth_gss: fetch the acceptor name out of the downcall
sunrpc: add a new "stringify_acceptor" rpc_credop
nfs4: copy acceptor name from context to nfs_client

 fs/nfs/callback.c               | 12 ++++++
 fs/nfs/client.c                 |  1 +
 fs/nfs/nfs4proc.c               | 33 ++++++++++++++++-
 include/linux/nfs_fs_sb.h       |  1 +
 include/linux/nfs_xdr.h         |  1 +
 include/linux/sunrpc/auth.h     |  2 +
 include/linux/sunrpc/auth_gss.h |  1 +
 net/sunrpc/auth.c               |  9 +++++
 net/sunrpc/auth_gss/auth_gss.c  | 82 +++++++++++++++++++++++++++++------------
 9 files changed, 118 insertions(+), 24 deletions(-)
Signature · 1 line
1.9.3