Bug 656836
Summary: | Memory leak in virtio-console driver if driver probe routine fails | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Amit Shah <amit.shah> |
Component: | kernel | Assignee: | Amit Shah <amit.shah> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 5.7 | CC: | amit.shah, branto, juzhang, ndai, tburke, virt-maint |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 656835 | Environment: | |
Last Closed: | 2011-07-21 10:23:51 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: | 656835 | ||
Bug Blocks: | 580946 |
Description
Amit Shah
2010-11-24 09:35:46 UTC
Testing notes: not easily testable. Was found by a static code checker and confirmed by code reading. Unlikely to happen in practice as it can happen only in very low memory conditions. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. in kernel-2.6.18-245.el5 You can download this test kernel (or newer) from http://people.redhat.com/jwilson/el5 Detailed testing feedback is always welcomed. Verified on 2.6.18-265.el5 1.download kernel-2.6.18-265.el5 sources code and check,The patch is applied. --snip of source code-- + if (!vqs || !io_callbacks || !io_names || !portdev->in_vqs || + !portdev->out_vqs) { err = -ENOMEM; - goto free_invqs; + goto free; } 2.#rpm -ql kernel --changelog | grep 656836 - [char] virtio_console: fix memory leak (Amit Shah) [656836] - [char] virtio_console: fix memory leak (Amit Shah) [656836] - [char] virtio_console: fix memory leak (Amit Shah) [656836] This issue has been fixed. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-1065.html |