diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-04-15 14:54:39 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-04-15 14:58:51 -0700 |
commit | 402eef10a1bab0b428c418cfbaaa0a62efc9c951 (patch) | |
tree | 814dde00f4edf0950fc23c9ba5e467b266ed4f17 /fs/xfs/libxfs/xfs_dir2.h | |
parent | d44bea9b41ca25f91fd9f25ed2cc3bb2f6dab4bc (diff) | |
download | linux-402eef10a1bab0b428c418cfbaaa0a62efc9c951.tar.gz linux-402eef10a1bab0b428c418cfbaaa0a62efc9c951.tar.bz2 linux-402eef10a1bab0b428c418cfbaaa0a62efc9c951.zip |
xfs: validate directory leaf buffer owners
Check the owner field of directory leaf blocks.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_dir2.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_dir2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_dir2.h b/fs/xfs/libxfs/xfs_dir2.h index 8497d041f316..2f728c26a416 100644 --- a/fs/xfs/libxfs/xfs_dir2.h +++ b/fs/xfs/libxfs/xfs_dir2.h @@ -101,6 +101,8 @@ extern struct xfs_dir2_data_free *xfs_dir2_data_freefind( extern int xfs_dir_ino_validate(struct xfs_mount *mp, xfs_ino_t ino); +xfs_failaddr_t xfs_dir3_leaf_header_check(struct xfs_buf *bp, xfs_ino_t owner); + extern const struct xfs_buf_ops xfs_dir3_block_buf_ops; extern const struct xfs_buf_ops xfs_dir3_leafn_buf_ops; extern const struct xfs_buf_ops xfs_dir3_leaf1_buf_ops; |