]> git.baikalelectronics.ru Git - kernel.git/commit
fs: fix reporting supported extra file attributes for statx()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 18 Apr 2021 03:03:50 +0000 (23:03 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 18 Apr 2021 03:03:50 +0000 (23:03 -0400)
commit03fff185fbd6b5f81f382d804cdd17d551b2d3a5
treedaf9ece96b42491f96e6f7a9157cd0779acd01c3
parent52d6663fe2c942e17e40ad0c45e804d77c0d7c40
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 6237041a0939e
("fs: move generic stat response attr handling to vfs_getattr_nosec")
and 95e740f96e653 ("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 0d4acc08afa9 ("xfs: fix reporting
supported extra file attributes for statx()")

Fixes: 6237041a0939e ("fs: move generic stat response attr handling to vfs_getattr_nosec")
Fixes: 95e740f96e653 ("fs/stat: Define DAX statx attribute")
Cc: stable@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/stat.c