]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: fix misuse of the XFS_ATTR_INCOMPLETE flag
authorChristoph Hellwig <hch@lst.de>
Sat, 14 Mar 2020 02:59:39 +0000 (22:59 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Sat, 14 Mar 2020 02:59:39 +0000 (22:59 -0400)
commit804b760ddc131efedddf54bbd0f2416fdaa7a704
treea255d73d93c3fe8fc9499cf48c4f6ad871ba54dc
parent352abebff73ff8e1878bdb890e37664e6e132a60
xfs: fix misuse of the XFS_ATTR_INCOMPLETE flag

Source kernel commit: 780d29057781d986cd87dbbe232cd02876ad430f

XFS_ATTR_INCOMPLETE is a flag in the on-disk attribute format, and thus
in a different namespace as the ATTR_* flags in xfs_da_args.flags.
Switch to using a XFS_DA_OP_INCOMPLETE flag in op_flags instead.  Without
this users might be able to inject this flag into operations using the
attr by handle ioctl.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_attr.c
libxfs/xfs_attr_leaf.c
libxfs/xfs_da_btree.h
libxfs/xfs_da_format.h