]> git.baikalelectronics.ru Git - kernel.git/commit
NFSD: fix a leak which can cause CREATE_SESSION failures
authorKinglong Mee <kinglongmee@gmail.com>
Mon, 23 Dec 2013 09:31:21 +0000 (17:31 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 3 Jan 2014 23:18:47 +0000 (18:18 -0500)
commitec940240d5efa4f8ee974b5c7116d99488da5eeb
tree971d4893a058fedca25f24e6710d901edac51a65
parent18e68c56faf45a6377fa6cdf3ce7b9636a8f2749
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>
fs/nfsd/nfs4state.c