diff options
author | J. Bruce Fields <bfields@redhat.com> | 2017-01-09 22:15:18 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-26 07:24:37 (GMT) |
commit | f29f3616b9328e17f902f1839634b2440ca07982 (patch) | |
tree | 19fd8f7cb6b46507d5b842e580305c957a1c1ecd /fs/fuse/dev.c | |
parent | a297ed84b92846963b4a7c5efd90910cea9c39a5 (diff) | |
download | linux-f29f3616b9328e17f902f1839634b2440ca07982.tar.xz |
svcrpc: don't leak contexts on PROC_DESTROY
commit 78794d1890708cf94e3961261e52dcec2cc34722 upstream.
Context expiry times are in units of seconds since boot, not unix time.
The use of get_seconds() here therefore sets the expiry time decades in
the future. This prevents timely freeing of contexts destroyed by
client RPC_GSS_PROC_DESTROY requests. We'd still free them eventually
(when the module is unloaded or the container shut down), but a lot of
contexts could pile up before then.
Fixes: c5b29f885afe "sunrpc: use seconds since boot in expiry cache"
Reported-by: Andy Adamson <andros@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/fuse/dev.c')
0 files changed, 0 insertions, 0 deletions