Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1807110

Summary: rpc.gssd uses a lot of memory with krb5 mounts
Product: Red Hat Enterprise Linux 7 Reporter: Steve Dickson <steved>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: Yongcheng Yang <yoyang>
Severity: high Docs Contact:
Priority: high    
Version: 7.8CC: cww, gcase, plambri, rhandlin, steved, swhiteho, toneata, xzhou, yoyang
Target Milestone: rcKeywords: Patch, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: nfs-utils-1.3.0-0.67.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1528207
: 1809277 1828183 1828184 1828185 (view as bug list) Environment:
Last Closed: 2020-09-29 20:29:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1528207    
Bug Blocks: 1809277, 1828183, 1828184, 1828185    
Attachments:
Description Flags
The patch that closes the memory leaks
none
Updated patch that fixes memory leaks none

Comment 2 Steve Dickson 2020-02-25 15:58:38 UTC
Created attachment 1665692 [details]
The patch that closes the memory leaks

Comment 5 Yongcheng Yang 2020-02-26 02:53:11 UTC
(In reply to Steve Dickson from comment #2)
> Created attachment 1665692 [details]
> The patch that closes the memory leaks

Please NOTE this patch is a bit *different* with the one mentioned in:

https://bugzilla.redhat.com/show_bug.cgi?id=1528207#c38


Maybe we need this upstream commit also:

https://patchwork.kernel.org/patch/10935705/

Comment 6 Steve Whitehouse 2020-02-26 13:06:49 UTC
I think 7.9 plus z-stream should be enough here, so I've updated the flags. Let me know if you disagree.

Comment 8 Steve Dickson 2020-02-26 16:13:24 UTC
(In reply to Yongcheng Yang from comment #5)
> (In reply to Steve Dickson from comment #2)
> > Created attachment 1665692 [details]
> > The patch that closes the memory leaks
> 
> Please NOTE this patch is a bit *different* with the one mentioned in:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1528207#c38
this stop leaks during the mount

> 
> 
> Maybe we need this upstream commit also:
> 
> https://patchwork.kernel.org/patch/10935705/
This stop leaks in the error path which is why
it didn't show up in the testing. 

We could easy add it since it does apply cleaning...

Comment 9 Steve Dickson 2020-02-26 16:15:13 UTC
(In reply to Steve Whitehouse from comment #6)
> I think 7.9 plus z-stream should be enough here, so I've updated the flags.
> Let me know if you disagree.

I wish you would reconsider... 

This needs to back to all supported z-streams...

Comment 11 Steve Dickson 2020-03-06 14:15:21 UTC
Created attachment 1668114 [details]
Updated patch that fixes memory leaks

The updated  patch does fix the memory leaks on mounts
and non-error paths. There is the valgrind report after 
running the cthon tests simultaneously for a couple days. 

==00:18:09:53.849 2313== LEAK SUMMARY:
==00:18:09:53.849 2313==    definitely lost: 0 bytes in 0 blocks
==00:18:09:53.849 2313==    indirectly lost: 0 bytes in 0 blocks
==00:18:09:53.849 2313==      possibly lost: 0 bytes in 0 blocks
==00:18:09:53.849 2313==    still reachable: 100,413 bytes in 106 blocks
==00:18:09:53.849 2313==         suppressed: 0 bytes in 0 blocks
==00:18:09:53.849 2313== 
==00:18:09:53.849 2313== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

When there is a rhel7.9 branch I will do the commit

Comment 22 errata-xmlrpc 2020-09-29 20:29:55 UTC
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 (nfs-utils bug fix and enhancement update), 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-2020:4002