]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: validate explicit directory data buffer owners
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:22:38 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:00 +0000 (17:01 -0700)
commit72386ff077f2da4bf48af035bb69a269c6c0d58a
tree5bf64adc7004d00fdfdc5d241709fe648668f958
parent17e0d66d96b5ad46efb5641b26fa4b716309f162
xfs: validate explicit directory data buffer owners

Source kernel commit: cc6740ddb423db2066f7669eaaa377fdbf84ab1e

Port the existing directory data header checking function to accept an
owner number instead of an xfs_inode, then update the callsites to use
xfs_da_args.owner when possible.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
db/namei.c
libxfs/xfs_dir2.h
libxfs/xfs_dir2_block.c
libxfs/xfs_dir2_data.c
libxfs/xfs_dir2_leaf.c
libxfs/xfs_dir2_node.c
libxfs/xfs_dir2_priv.h