]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: validate explicit directory block 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)
commit482abce5724c8cfddb2b34ac960fe183f6b7e5e5
treecacb125463a376f8a9ffe1550306109bd96c639c
parent72386ff077f2da4bf48af035bb69a269c6c0d58a
xfs: validate explicit directory block buffer owners

Source kernel commit: 29b41ce919b7f0b0c2220e088e450d9b132bec36

Port the existing directory block 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_priv.h
libxfs/xfs_exchmaps.c