From: Steven Whitehouse Date: Thu, 27 Nov 2008 08:27:28 +0000 (+0000) Subject: GFS2: Fix use-after-free bug on umount X-Git-Tag: v2.6.29-rc1~499^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3af165ac4d099385b12e3e75a9ee3ffd02da33e0;p=pandora-kernel.git GFS2: Fix use-after-free bug on umount There was a use-after-free with the GFS2 super block during umount. This patch moves almost all of the umount code from ->put_super into ->kill_sb, the only bit that cannot be moved being the glock hash clearing which has to remain as ->put_super due to umount ordering requirements. As a result its now obvious that the kfree is the final operation, whereas before it was hidden in ->put_super. Also gfs2_jindex_free is then only referenced from a single file so thats moved and marked static too. Signed-off-by: Steven Whitehouse --- Reading git-diff-tree failed