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

Check the owner field of dir3 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_block.c