Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1484954 Details for
Bug 1618375
rpc.gssd memory use grows unbounded when user accesses krb5 mount without having kerberos credentials
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to free the tls_last_status memory
gssproxy-free_tls_last_status.patch (text/plain), 1.95 KB, created by
Frank Sorenson
on 2018-09-19 22:39:10 UTC
(
hide
)
Description:
patch to free the tls_last_status memory
Filename:
MIME Type:
Creator:
Frank Sorenson
Created:
2018-09-19 22:39:10 UTC
Size:
1.95 KB
patch
obsolete
>commit a1f03e255b6e1408b3845493ca3303695954100d >Author: Frank Sorenson <sorenson@redhat.com> >Date: 2018-09-19 17:24:28 -0500 > > Don't leak the memory allocated per-thread for tls_last_status > > Although the tls_last_status variable itself is thread-specific, > the data it points to is allocated on the heap, and is not > released when the thread exits. > > Signed-off-by: Frank Sorenson <sorenson@redhat.com> > >diff --git a/src/client/gpm_display_status.c b/src/client/gpm_display_status.c >index bbb546f..e4f0baf 100644 >--- a/src/client/gpm_display_status.c >+++ b/src/client/gpm_display_status.c >@@ -6,14 +6,20 @@ __thread gssx_status *tls_last_status = NULL; > > /* Thread local storage for return status. > * FIXME: it's not the most portable construct, so may need fixing in future */ >-void gpm_save_status(gssx_status *status) >+void gpm_free_tls_last_status(void) > { >- int ret; >- > if (tls_last_status) { > xdr_free((xdrproc_t)xdr_gssx_status, (char *)tls_last_status); > free(tls_last_status); >+ tls_last_status = NULL; > } >+} >+ >+void gpm_save_status(gssx_status *status) >+{ >+ int ret; >+ >+ gpm_free_tls_last_status(); > > ret = gp_copy_gssx_status_alloc(status, &tls_last_status); > if (ret) { >@@ -64,6 +70,7 @@ OM_uint32 gpm_display_status(OM_uint32 *minor_status, > status_string->value = tmp.utf8string_val; > status_string->length = tmp.utf8string_len; > *minor_status = 0; >+ gpm_free_tls_last_status(); > return GSS_S_COMPLETE; > } else { > /* if we do not have it, make it clear */ >@@ -88,6 +95,7 @@ OM_uint32 gpm_display_status(OM_uint32 *minor_status, > } > status_string->value = tmp.utf8string_val; > status_string->length = tmp.utf8string_len; >+ gpm_free_tls_last_status(); > } else { > /* if we do not have it, make it clear */ > return GSS_S_UNAVAILABLE;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1618375
:
1484480
| 1484954