Bug 175143 - sys_io_setup() can leak an mm reference on failure
sys_io_setup() can leak an mm reference on failure
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel (Show other bugs)
3.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeffrey Moyer
Brian Brock
:
: 172809 (view as bug list)
Depends On:
Blocks: RHEL3U8CanFix
  Show dependency treegraph
 
Reported: 2005-12-06 17:20 EST by Zach Brown
Modified: 2007-11-30 17:07 EST (History)
4 users (show)

See Also:
Fixed In Version: RHSA-2006-0437
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-07-20 09:37:21 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
drop mm ref in ioctx_alloc() exit path; against 2.4.21-32 (322 bytes, patch)
2005-12-06 17:20 EST, Zach Brown
no flags Details | Diff

  None (edit)
Description Zach Brown 2005-12-06 17:20:34 EST
sys_io_setup() can leak an mm_context reference in a failure path.  This was
found when trying to figure out why shared mem segment attachments weren't being
torn down after all the tasks that attached them had exited.  A patch that drops
the reference is attached and similar code is found in the equivalent 2.6
failure path.
Comment 1 Zach Brown 2005-12-06 17:20:35 EST
Created attachment 121948 [details]
drop mm ref in ioctx_alloc() exit path; against 2.4.21-32
Comment 2 Jeffrey Moyer 2005-12-06 18:55:52 EST
Good catch.  Would I be correct to assume that you are going to post the
upstream version of this patch (for 2.6)?

I'll try to cook up a reproducer for this.

Thanks,
Jeff
Comment 3 Zach Brown 2005-12-07 10:25:59 EST
> Would I be correct to assume that you are going to post the
> upstream version of this patch (for 2.6)?

You would have been correct to assume that, yeah, but 2.6 already has the fix :)
Comment 5 Ernie Petrides 2005-12-08 20:19:39 EST
*** Bug 172809 has been marked as a duplicate of this bug. ***
Comment 7 Jeffrey Moyer 2005-12-12 12:48:22 EST
The patch has been posted for internal review.
Comment 15 Ernie Petrides 2006-02-15 19:49:20 EST
A fix for this problem has just been committed to the RHEL3 U8
patch pool this evening (in kernel version 2.4.21-40.1.EL).
Comment 20 Red Hat Bugzilla 2006-07-20 09:37:22 EDT
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 the 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-2006-0437.html

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