| Summary: | Memory leak in gp_add_krb5_creds (in src/gp_creds.c). | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Thomas Gardner <thgardne> |
| Component: | gssproxy | Assignee: | Robbie Harwood <rharwood> |
| Status: | CLOSED ERRATA | QA Contact: | Abhijeet Kasurde <akasurde> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.4 | CC: | dpal, fs-qe, ipa-qe, nsoman, rharwood, yoyang |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | gssproxy-0.6.2-4.el7 | Doc Type: | No Doc Update |
| Doc Text: |
Fixed several memory leaks in gssproxy. (Group 1379005, 1379482, 1379616, 1380490 together as a single line item.)
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-08-01 20:55:26 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 1298243, 1399979 | ||
|
Description
Thomas Gardner
2016-09-27 08:44:31 UTC
Couple things I forgot to mention: 1) Of course, somewhere in those calls to gss_acquire_cred_from we could be just copying pointers (instead of making copies of the data that are pointed to by those pointers and setting up pointers to those copies). I couldn't see where this could be happening, but then again, I didn't track down those function pointers to see if those might be doing it. I'll do that. 2) If #1 up there checks out OK, I'm thinking the fix could probably be something simple like adding: if (cred_store.elements) free_cred_store_elements (&cred_store); to the code after the "done" label in the gp_add_krb5_cred function. I'm not seeing any direct returns (all returns seem to be done through a "goto done;") in that function. I'm going to try to track down those function pointers and see what they're doing. That's starting to bother me, now. Yeah, I got lost trying to figure out what functions would be in those function pointers. I'm going to leave that to someone who's already familiar with the code, and probably already knows if they are doing any freeing in there or copying any pointers without copying the data or not. I doubt very seriously they are. I've spent enough time on this particular one for now. Sorry. Verified using GSSProxy :: gssproxy-0.7.0-3.el7.x86_64 Marking BZ as verified as sanityonly. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2033 |