From: Lukas Czerner Date: Fri, 20 May 2011 17:55:29 +0000 (-0400) Subject: ext4: fix possible use-after-free in ext4_remove_li_request() X-Git-Tag: v2.6.39.1~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e73b1f4f61142e32ec5acbda8e50bfc79dbec87;p=pandora-kernel.git ext4: fix possible use-after-free in ext4_remove_li_request() commit 1bb933fb1fa8e4cb337a0d5dfd2ff4c0dc2073e8 upstream. We need to take reference to the s_li_request after we take a mutex, because it might be freed since then, hence result in accessing old already freed memory. Also we should protect the whole ext4_remove_li_request() because ext4_li_info might be in the process of being freed in ext4_lazyinit_thread(). Signed-off-by: Lukas Czerner Signed-off-by: "Theodore Ts'o" Reviewed-by: Eric Sandeen Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed