login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
30
Re: [PATCH] unionfs: fix memory leak
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Erez Zadok <ezk@...>
To: Hugh Dickins <hugh@...>
Cc: Erez Zadok <ezk@...>, Andrew Morton <akpm@...>, <linux-kernel@...>
Subject:
Re: [PATCH] unionfs: fix memory leak
Date: Monday, June 30, 2008 - 2:11 pm
In message <Pine.LNX.4.64.0806290105430.20280@blonde.site>, Hugh Dickins writes:
quoted text
> Unionfs has slowly been leaking memory: although many places do explicitly > free the dentry's lower_paths array (and I've not changed those, in case > the ordering is important), not all do - and adding a WARN_ON didn't seem > to finger any particular culprit. So free_dentry_private_data needs to > kfree lower_paths (other freeers are good about setting it to NULL). > > Signed-off-by: Hugh Dickins <hugh@veritas.com> > --- > Should follow mmotm's git-unionfs-fixup.patch > > fs/unionfs/lookup.c | 1 + > 1 file changed, 1 insertion(+) > > --- mmotm/fs/unionfs/lookup.c 2008-06-27 13:39:18.000000000 +0100 > +++ linux/fs/unionfs/lookup.c 2008-06-27 14:08:00.000000000 +0100 > @@ -498,6 +498,7 @@ void free_dentry_private_data(struct den > { > if (!dentry || !dentry->d_fsdata) > return; > + kfree(UNIONFS_D(dentry)->lower_paths); > kmem_cache_free(unionfs_dentry_cachep, dentry->d_fsdata); > dentry->d_fsdata = NULL; > }
Thanks, I'll take a closer look at this to ensure that all paths kfree lower_paths as needed. Erez. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] fsstack: fsstack_copy_inode_size locking
, Hugh Dickins
, (Sat Jun 28, 8:05 pm)
Re: [PATCH] fsstack: fsstack_copy_inode_size locking
,
, (Mon Jun 30, 12:31 am)
Re: [PATCH] fsstack: fsstack_copy_inode_size locking
, Hugh Dickins
, (Mon Jun 30, 8:10 am)
Re: [PATCH] fsstack: fsstack_copy_inode_size locking
,
, (Mon Jun 30, 9:08 am)
Re: [PATCH] fsstack: fsstack_copy_inode_size locking
, Christoph Hellwig
, (Sun Jun 29, 3:15 am)
Re: [PATCH] fsstack: fsstack_copy_inode_size locking
, Hugh Dickins
, (Sun Jun 29, 7:56 am)
Re: [PATCH] fsstack: fsstack_copy_inode_size locking
, Erez Zadok
, (Mon Jun 30, 2:19 pm)
Re: [PATCH] fsstack: fsstack_copy_inode_size locking
, Michael Halcrow
, (Mon Jun 30, 5:49 pm)
Re: [PATCH] fsstack: fsstack_copy_inode_size locking
, Christoph Hellwig
, (Tue Jul 1, 3:03 am)
Re: [PATCH] fsstack: fsstack_copy_inode_size locking
, Erez Zadok
, (Tue Jul 1, 8:00 pm)
[PATCH] unionfs: fix memory leak
, Hugh Dickins
, (Sat Jun 28, 8:07 pm)
Re: [PATCH] unionfs: fix memory leak
, Erez Zadok
, (Mon Jun 30, 2:11 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
David Newall
Re: Slow DOWN, please!!!
Peter Zijlstra
[PATCH 00/23] per device dirty throttling -v8
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
git
:
Colocation donated by:
Who's online
There are currently
1 user
and
652 guests
online.
Online users
roundthejollyro
Syndicate