From: Greg Banks Date: Tue, 31 Mar 2009 20:28:15 +0000 (+1100) Subject: knfsd: fix reply cache memory corruption X-Git-Tag: v2.6.31-rc1~57^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf0a586cf41a1779edeee7562afb5d0ab46c7cf4;p=pandora-kernel.git knfsd: fix reply cache memory corruption Fix a regression in the reply cache introduced when the code was converted to use proper Linux lists. When a new entry needs to be inserted, the case where all the entries are currently being used by threads is not correctly detected. This can result in memory corruption and a crash. In the current code this is an extremely unlikely corner case; it would require the machine to have 1024 nfsd threads and all of them to be busy at the same time. However, upcoming reply cache changes make this more likely; a crash due to this problem was actually observed in field. Signed-off-by: Greg Banks Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed