ovl: support the FS_IOC_FS[SG]ETXATTR ioctls
authorAmir Goldstein <amir73il@gmail.com>
Sun, 26 May 2019 06:28:25 +0000 (09:28 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jun 2019 03:35:52 +0000 (11:35 +0800)
commit3cb5d7fa8f7db47cf4c0016df87c7589474ed09b
treed3b8f6905754df5345eedeb15f20d067ae575a31
parent76343a1363f8c87ea99d48d209bd26941ec329e8
ovl: support the FS_IOC_FS[SG]ETXATTR ioctls

[ Upstream commit b21d9c435f935014d3e3fa6914f2e4fbabb0e94d ]

They are the extended version of FS_IOC_FS[SG]ETFLAGS ioctls.
xfs_io -c "chattr <flags>" uses the new ioctls for setting flags.

This used to work in kernel pre v4.19, before stacked file ops
introduced the ovl_ioctl whitelist.

Reported-by: Dave Chinner <david@fromorbit.com>
Fixes: d1d04ef8572b ("ovl: stack file ops")
Cc: <stable@vger.kernel.org> # v4.19
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/overlayfs/file.c