xfs: don't accept inode buffers with suspicious unlinked chains
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 23 Mar 2018 17:06:56 +0000 (10:06 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 24 Mar 2018 01:05:08 +0000 (18:05 -0700)
commit6a96c5650568a2218712d43ec16f3f82296a6c53
treef3f2067eac84a9daca478fc03eb2e285c97ef2e3
parent8bb82bc12a9e75dd47047d9a2e53135cc5e5787b
xfs: don't accept inode buffers with suspicious unlinked chains

When we're verifying inode buffers, sanity-check the unlinked pointer.
We don't want to run the risk of trying to purge something that's
obviously broken.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/libxfs/xfs_inode_buf.c