Christoph Hellwig 2809f76afc xfs: sanity check attr fork size
Recently we have quite a few kerneloops reports about dereferencing a NULL
if_data in the attribute fork.  From looking over the code this can only
happen if we pass a 0 size argument to xfs_iformat_local.  This implies some
sort of corruption and in fact the only mailinglist report about this from
earlier this year was after a powerfail presumably on a system with write
cache and without barriers.

Add a quick sanity check for the attr fork size in xfs_iformat to catch
these early and without an oops.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
2009-01-19 02:04:16 +01:00
..
2008-12-04 15:39:25 +11:00
2008-07-28 16:58:35 +10:00
2008-02-07 18:14:38 +11:00
2007-10-15 16:49:49 +10:00
2007-10-15 16:49:49 +10:00
2008-12-01 11:37:35 +11:00
2008-10-30 17:53:24 +11:00
2009-01-19 02:04:16 +01:00
2008-12-29 16:47:18 +11:00
2008-12-04 15:39:21 +11:00
2008-11-17 17:37:10 +11:00
2008-10-30 17:53:24 +11:00
2008-12-04 15:39:22 +11:00
2008-12-11 13:13:33 +11:00
2008-12-29 16:47:18 +11:00
2008-10-30 16:55:13 +11:00