Bug 2041641 - Fix inotify leak and kubelet retaining memory
Summary: Fix inotify leak and kubelet retaining memory
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 4.6
Hardware: Unspecified
OS: All
Target Milestone: ---
: 4.10.0
Assignee: Ryan Phillips
QA Contact: Sunil Choudhary
: 2040399 (view as bug list)
Depends On:
Blocks: 2044438 2060515
TreeView+ depends on / blocked
Reported: 2022-01-17 23:04 UTC by Ryan Phillips
Modified: 2022-03-11 04:03 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2044438 2060515 (view as bug list)
Last Closed: 2022-03-10 16:40:08 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift kubernetes pull 1122 0 None Merged Bug 2041641: Backport k8s.io/utils fix for a memory leak within the inotify utilities 2022-01-27 14:44:00 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:40:32 UTC

Description Ryan Phillips 2022-01-17 23:04:21 UTC
Description of problem:


Kubelet had a memory leak where it could retain gigabytes of RAM in shared memory (via mmap and open file descriptors).

Patch: https://github.com/kubernetes/utils/pull/228

The patch checks the return code of the inotify and allows the map deletes to happen. The kubelet would skip over the map removals prior to this patch.

Version-Release number of selected component (if applicable):
4.6, 4.7, 4.8, 4.9, 4.10

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:

Comment 6 Sunil Choudhary 2022-01-27 11:25:57 UTC
This is upstream fix which is now merged. Marking it verified.

Comment 9 errata-xmlrpc 2022-03-10 16:40:08 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 (Moderate: OpenShift Container Platform 4.10.3 security 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.


Comment 10 Harshal Patil 2022-03-11 04:03:52 UTC
*** Bug 2040399 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.