]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: check owner of dir3 blocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 26 Oct 2022 06:28:25 +0000 (11:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Oct 2022 08:20:33 +0000 (10:20 +0200)
commit96d6affa727d436d51f27c64e7610b4ae911675e
treef88ca323c65ff7a0f4c63d11203406ac3403e018
parentc65969b7320e540275a00f2bc3627903ea540e33
xfs: check owner of dir3 blocks

commit 26e740a9e0a69f8564e8a5575565b79745374fc6 upstream.

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>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_dir2_block.c