Fix refcount leak in svc_rpc_gss_data under RPCSEC_GSS_DESTROY

A umount/mount loop for a krb5 mount was sending RPCSEC_GSS_DESTROY
calls at times. We end up a huge number of contexts that are expired but
not destroyed, eventually failing mounts after some time.

Release reference we got on GSS data object after deleting it from hash

Signed-off-by: Malahal Naineni <>
2 files changed