diff options
| author | J. Bruce Fields <bfields@redhat.com> | 2017-01-09 17:15:18 -0500 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2017-06-17 15:50:17 +0200 |
| commit | 025c16196e71db536e3ec4b3b30c07c3990e1fbf (patch) | |
| tree | 7827097e82d209581f2a39c95f8e54479134f297 /drivers/mtd | |
| parent | 94fcfc610f18a4a34fa9045f72794256eab4362e (diff) | |
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: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'drivers/mtd')
0 files changed, 0 insertions, 0 deletions
