From: David Chinner Date: Thu, 28 Sep 2006 01:06:03 +0000 (+1000) Subject: [XFS] Really fix use after free in xfs_iunpin. X-Git-Tag: v2.6.19-rc1~653^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f273ab848b7cbc0088b0ac7457b3769e6566074e;p=pandora-kernel.git [XFS] Really fix use after free in xfs_iunpin. The previous attempts to fix the linux inode use-after-free in xfs_iunpin simply made the problem harder to hit. We actually need complete exclusion between xfs_reclaim and xfs_iunpin, as well as ensuring that the i_flags are consistent during both of these functions. Introduce a new spinlock for exclusion and the i_flags, and fix up xfs_iunpin to use igrab before marking the inode dirty. SGI-PV: 952967 SGI-Modid: xfs-linux-melb:xfs-kern:26964a Signed-off-by: David Chinner Signed-off-by: Tim Shimmin --- Reading git-diff-tree failed