Thread (4 messages) 4 messages, 2 authors, 2011-07-11

Re: [PATCH] ext4: Avoid memory leak of ext4_groupinfo_caches in ext4_groupinfo_create_slab.

From: Ted Ts'o <tytso@mit.edu>
Date: 2011-07-11 22:37:48

On Mon, Jul 11, 2011 at 11:26:55PM +0800, Tao Ma wrote:
From: Tao Ma <redacted>

In ext4_groupinfo_create_slab, we create ext4_groupinfo_caches within
ext4_grpinfo_slab_create_mutex, but set it outside the lock, and there
does exist some case that we may create it twice and causes a memory
leak. So set it before we call mutex_unlock.

Signed-off-by: Tao Ma <redacted>
Applied, with a slightly reworded one-line summary:

    ext4: fix a race which could leak memory in ext4_groupinfo_create_slab()

    	      	     	   	      	     	- Ted
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help