fs: don't call posix_acl_listxattr in generic_listxattr
authorJeff Layton <jlayton@kernel.org>
Tue, 16 May 2023 12:46:54 +0000 (08:46 -0400)
committerChristian Brauner <brauner@kernel.org>
Wed, 17 May 2023 13:25:20 +0000 (15:25 +0200)
commit3a7bb21b6f49b4d1695d4ba8ff31e9619cbcebe3
tree5fb290b407ddb9e6e0e4cfde498a37f57340cc13
parentf15afbd34d8fadbd375f1212e97837e32bc170cc
fs: don't call posix_acl_listxattr in generic_listxattr

Commit f2620f166e2a caused the kernel to start emitting POSIX ACL xattrs
for NFSv4 inodes, which it doesn't support. The only other user of
generic_listxattr is HFS (classic) and it doesn't support POSIX ACLs
either.

Fixes: f2620f166e2a xattr: simplify listxattr helpers
Reported-by: Ondrej Valousek <ondrej.valousek.xm@renesas.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Message-Id: <20230516124655.82283-1-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/xattr.c