xfs: filter out obviously bad btree pointers

commit d5a91baeb6 upstream.

Don't let anybody load an obviously bad btree pointer.  Since the values
come from disk, we must return an error, not just ASSERT.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Darrick J. Wong 2017-02-02 15:13:58 -08:00 • committed by Greg Kroah-Hartman
commit efab3ae29c
3 changed files with 4 additions and 6 deletions