]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] Do not access buffers after dropping reference count
authorLachlan McIlroy <lachlan@sgi.com>
Wed, 13 Aug 2008 05:42:10 +0000 (15:42 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Wed, 13 Aug 2008 05:42:10 +0000 (15:42 +1000)
commit41a24d60fad5209a75eddd45414da90c2e519c17
tree1445885f92de7f14034f4f5a647ea3e5ea6b43d8
parentf965f12cdc101a802aa746704570f2ce3cb8f0ef
[XFS] Do not access buffers after dropping reference count

We should not access a buffer after dropping it's reference count
otherwise we could race with another thread that releases the final
reference count and frees the buffer causing us to access potentially
unmapped memory. The bug this change fixes only occured on DEBUG XFS since
the offending code was in an ASSERT.

SGI-PV: 984429

SGI-Modid: xfs-linux-melb:xfs-kern:31715a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: David Chinner <david@fromorbit.com>
fs/xfs/linux-2.6/xfs_buf.c