XFS: Assertion failed: first <= last && last < BBTOB(bp->b_length), file: fs/xfs...
authorDave Chinner <dchinner@redhat.com>
Mon, 26 Aug 2013 04:13:30 +0000 (14:13 +1000)
committerBen Myers <bpm@sgi.com>
Fri, 30 Aug 2013 14:48:59 +0000 (09:48 -0500)
commit37804376121de1a25fb582bdd8970f139c4d9685
treed475f98cdb8fc0548a7e14f8eb480a58c855a1b3
parent0f0d334595105d982ea22ae1d5947723e462344f
XFS: Assertion failed: first <= last && last < BBTOB(bp->b_length), file: fs/xfs/xfs_trans_buf.c, line: 568

The calculation doesn't take into account the size of the dir v3
header, so overestimates the hash entries in a node. This causes
directory buffer overruns when splitting and merging nodes.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Tested-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_da_btree.h
fs/xfs/xfs_dir2.c