]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: check owner of dir3 data blocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 11 Mar 2020 17:37:56 +0000 (10:37 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Mar 2020 14:58:12 +0000 (07:58 -0700)
commitd707ee7a82bbe0246dc06cc64f337ef07d06081e
treece05379500b483fd379cf31715b883fa69ce96d2
parente6425d2b8c3dd822044446c905f3b8447215b22a
xfs: check owner of dir3 data blocks

Check the owner field of dir3 data block headers.  If it's corrupt,
release the buffer and return EFSCORRUPTED.  All callers handle this
properly.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_dir2_data.c