]> asedeno.scripts.mit.edu Git - linux.git/commit
nfsd: fix unlikely NULL deref in mach_creds_match
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 20 Nov 2015 21:42:40 +0000 (16:42 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 24 Nov 2015 17:39:18 +0000 (10:39 -0700)
commit920dd9bb7d7cf9ae339e15240326a28a22f08a74
tree09637a832f3c4d4d1291ab990e162e903811b4f7
parent50c7b948adbd1f8f0475fa0c92abb51c8a49f847
nfsd: fix unlikely NULL deref in mach_creds_match

We really shouldn't allow a client to be created with cl_mach_cred set
unless it also has a principal name.

This also allows us to fail such cases immediately on EXCHANGE_ID as
opposed to waiting and incorrectly returning WRONG_CRED on the following
CREATE_SESSION.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c