• J. Bruce Fields's avatar
    svcrpc: don't leak contexts on PROC_DESTROY · 78794d18
    J. Bruce Fields authored
    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.
    
    Cc: stable@vger.kernel.org
    Fixes: c5b29f88 "sunrpc: use seconds since boot in expiry cache"
    Reported-by: default avatarAndy Adamson <andros@netapp.com>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    78794d18
svcauth_gss.c 45.8 KB