Red Hat Bugzilla – Bug 175143
sys_io_setup() can leak an mm reference on failure
Last modified: 2007-11-30 17:07:09 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
Created attachment 121948 [details]
drop mm ref in ioctx_alloc() exit path; against 2.4.21-32
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.
> 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 :)
*** Bug 172809 has been marked as a duplicate of this bug. ***
The patch has been posted for internal review.
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).
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.