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_node.c | |
| parent | d44bea9b41ca25f91fd9f25ed2cc3bb2f6dab4bc (diff) | |
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_node.c')
| -rw-r--r-- | fs/xfs/libxfs/xfs_dir2_node.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_dir2_node.c b/fs/xfs/libxfs/xfs_dir2_node.c index 1ad7405f9c38..e21965788188 100644 --- a/fs/xfs/libxfs/xfs_dir2_node.c +++ b/fs/xfs/libxfs/xfs_dir2_node.c @@ -1562,7 +1562,8 @@ xfs_dir2_leafn_toosmall( /* * Read the sibling leaf block. */ - error = xfs_dir3_leafn_read(state->args->trans, dp, blkno, &bp); + error = xfs_dir3_leafn_read(state->args->trans, dp, + state->args->owner, blkno, &bp); if (error) return error; |