]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
nfsd4: fix nfs4 stateid leak
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 29 Aug 2012 22:21:58 +0000 (15:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Oct 2012 16:27:57 +0000 (09:27 -0700)
commit17170f0bbf4842a5a52dc61cf4d66a824fee9aaf
tree252278e7cbb28c0f61e29c4ded2178a67dda4f5d
parentdb0a62c4cce1011c6412648cdd9c8767206befc7
nfsd4: fix nfs4 stateid leak

commit cf9182e90b2af04245ac4fae497fe73fc71285b4 upstream.

Processes that open and close multiple files may end up setting this
oo_last_closed_stid without freeing what was previously pointed to.
This can result in a major leak, visible for example by watching the
nfsd4_stateids line of /proc/slabinfo.

Reported-by: Cyril B. <cbay@excellency.fr>
Tested-by: Cyril B. <cbay@excellency.fr>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4state.c