diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2009-09-15 12:22:42 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-10-05 09:32:12 -0700 |
commit | b9703d921e254b499b300d652b4f35420176d509 (patch) | |
tree | 84db478cafa1aa3a4cfc33fc46ced4eefa8e7437 /drivers/net | |
parent | 7abf3aa8294d95e3f0be375f30e8d933f874ada0 (diff) |
nfsd4: fix null dereference creating nfsv4 callback client
commit 886e3b7fe6054230c89ae078a09565ed183ecc73 upstream.
On setting up the callback to the client, we attempt to use the same
authentication flavor the client did. We find an rpc cred to use by
calling rpcauth_lookup_credcache(), which assumes that the given
authentication flavor has a credentials cache. However, this is not
required to be true--in particular, auth_null does not use one.
Instead, we should call the auth's lookup_cred() method.
Without this, a client attempting to mount using nfsv4 and auth_null
triggers a null dereference.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions