aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2013-12-23 04:31:21 -0500
committerJ. Bruce Fields <bfields@redhat.com>2014-01-03 18:18:47 -0500
commitf403e450e85cd403b63fd163d29b6b7f5e8eaf77 (patch)
tree971d4893a058fedca25f24e6710d901edac51a65
parent2ce02b6b6cf3532df143b85a72bacd611a55616a (diff)
NFSD: fix a leak which can cause CREATE_SESSION failures
check_forechannel_attrs gets drc memory, so nfsd must put it when check_backchannel_attrs fails. After many requests with bad back channel attrs, nfsd will deny any client's CREATE_SESSION forever. A new test case named CSESS29 for pynfs will send in another mail. Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r--fs/nfsd/nfs4state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 1aed9be56414..9a6d088247fd 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1915,7 +1915,7 @@ nfsd4_create_session(struct svc_rqst *rqstp,
1915 return status; 1915 return status;
1916 status = check_backchannel_attrs(&cr_ses->back_channel); 1916 status = check_backchannel_attrs(&cr_ses->back_channel);
1917 if (status) 1917 if (status)
1918 return status; 1918 goto out_release_drc_mem;
1919 status = nfserr_jukebox; 1919 status = nfserr_jukebox;
1920 new = alloc_session(&cr_ses->fore_channel); 1920 new = alloc_session(&cr_ses->fore_channel);
1921 if (!new) 1921 if (!new)