]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: filter out obviously bad btree pointers
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 2 Feb 2017 23:13:58 +0000 (15:13 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 2 Feb 2017 23:13:58 +0000 (15:13 -0800)
commita2982272fe78a7b99616828b1c0fff3d2beb43ca
treef8a831534ecc6270b9cf57164de9e881b46ce02c
parent7d510c3ea99b022aea05f4e58a3d5bbe8e1a7268
xfs: filter out obviously bad btree pointers

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>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_btree.c
fs/xfs/libxfs/xfs_btree.h