]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fs: fix reporting supported extra file attributes for statx()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 18 Apr 2021 03:09:35 +0000 (23:09 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 18 Apr 2021 17:10:48 +0000 (13:10 -0400)
commit173e84953eaaf17864a707efa2b8cd4c233b3129
tree07468b504c00fbc31c7196680543be88a4053c03
parent4f0ed93fb92d3528c73c80317509df3f800a222b
fs: fix reporting supported extra file attributes for statx()

statx(2) notes that any attribute that is not indicated as supported
by stx_attributes_mask has no usable value.  Commits 801e523796004
("fs: move generic stat response attr handling to vfs_getattr_nosec")
and 712b2698e4c02 ("fs/stat: Define DAX statx attribute") sets
STATX_ATTR_AUTOMOUNT and STATX_ATTR_DAX, respectively, without setting
stx_attributes_mask, which can cause xfstests generic/532 to fail.

Fix this in the same way as commit 1b9598c8fb99 ("xfs: fix reporting
supported extra file attributes for statx()")

Fixes: 801e523796004 ("fs: move generic stat response attr handling to vfs_getattr_nosec")
Fixes: 712b2698e4c02 ("fs/stat: Define DAX statx attribute")
Cc: stable@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/stat.c