summaryrefslogtreecommitdiff
path: root/Documentation/sphinx-static
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-07-12 12:58:51 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-07-14 14:23:44 -0700
commit3f86ecbbcf53b267541c81c2d1ff51930cab3f7b (patch)
tree990278955e27ad08e5fdf2d546a57189e2c0f165 /Documentation/sphinx-static
parent73a84133ba701ee506ec8a31e6ea6cb71c061398 (diff)
xfs: don't expose misaligned extszinherit hints to userspacexfs-fixes-5.14_2021-07-14
Commit 603f000b15f2 changed xfs_ioctl_setattr_check_extsize to reject an attempt to set an EXTSZINHERIT extent size hint on a directory with RTINHERIT set if the hint isn't a multiple of the realtime extent size. However, I have recently discovered that it is possible to change the realtime extent size when adding a rt device to a filesystem, which means that the existence of directories with misaligned inherited hints is not an accident. As a result, it's possible that someone could have set a valid hint and added an rt volume with a different rt extent size, which invalidates the ondisk hints. After such a sequence, FSGETXATTR will report a misaligned hint, which FSSETXATTR will trip over, causing confusion if the user was doing the usual GET/SET sequence to change some other attribute. Change xfs_fill_fsxattr to omit the hint if it isn't aligned properly. Fixes: 603f000b15f2 ("xfs: validate extsz hints against rt extent size when rtinherit is set") Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'Documentation/sphinx-static')
0 files changed, 0 insertions, 0 deletions