[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.0906120420080.26259@p34.internal.lan>
Date: Fri, 12 Jun 2009 04:37:32 -0400 (EDT)
From: Justin Piszcz <jpiszcz@...idpixels.com>
To: Felix Blyakher <felixb@....com>
cc: Eric Sandeen <sandeen@...deen.net>, linux-kernel@...r.kernel.org,
xfs@....sgi.com
Subject: Re: Kernel 2.6.30: Memory/XFS leak, OOM killer kills many
processes
On Thu, 11 Jun 2009, Felix Blyakher wrote:
>
> On Jun 11, 2009, at 12:31 PM, Eric Sandeen wrote:
>
>> Justin Piszcz wrote:
>>>
>>> On Thu, 11 Jun 2009, Justin Piszcz wrote:
>>>
> The following should fix it:
>
> diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c
> index 4b0f6ef..7928b99 100644
> --- a/fs/xfs/xfs_bmap.c
> +++ b/fs/xfs/xfs_bmap.c
> @@ -6086,6 +6086,7 @@ xfs_getbmap(
> break;
> }
>
> + kmem_free(out);
> return error;
> }
>
>
> Felix
Just FYI if anyone tries to run the patch it will not work:
# patch -p1 < ../xfs.patch
patching file fs/xfs/xfs_bmap.c
patch: **** malformed patch at line 11: }
So just goto line ~6086 and add the kmem_free(out); above the return
error.
Status:
This patch fixes the problem, thanks!
Justin.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists