diff options
author | Greg Banks <gnb@sgi.com> | 2009-03-31 16:28:15 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-05-27 14:14:02 -0400 |
commit | cf0a586cf41a1779edeee7562afb5d0ab46c7cf4 (patch) | |
tree | 3ede97c75e5adf69b19c397209dd60904ee26f4e /fs/block_dev.c | |
parent | fca4217c5bab31019b5247e977673c9fcc385f6b (diff) |
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 <gnb@sgi.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/block_dev.c')
0 files changed, 0 insertions, 0 deletions