This bug should be fixed in Linux kernel 6.16; see:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fe78e02600f83d81e55f6fc352d82c4f264a2901
For what it's worth, Coreutils decided not to work around the bug,
and instead to suggest updating to a fixed kernel or to a future
version of libattr with at least the following patches:
https://cgit.git.savannah.gnu.org/cgit/attr.git/commit/?id=58abfe6eba0d8d58a61ee8bee0615f74d393fff2
https://cgit.git.savannah.gnu.org/cgit/attr.git/commit/?id=504ab19d7b032212755ab3c7df16be98d5b5212e
---
 doc/glibc-functions/flistxattr.texi | 3 +++
 doc/glibc-functions/listxattr.texi  | 3 +++
 doc/glibc-functions/llistxattr.texi | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/doc/glibc-functions/flistxattr.texi 
b/doc/glibc-functions/flistxattr.texi
index 8aa4eb73a9..9b9d21a6d8 100644
--- a/doc/glibc-functions/flistxattr.texi
+++ b/doc/glibc-functions/flistxattr.texi
@@ -25,4 +25,7 @@ Linux kernel 6.12.
 This function does not report synthetic @code{security.*} extended attributes
 on @code{tmpfs} and @code{kernfs}-based file systems:
 Linux kernel 6.14.
+@item
+This function can fail with @code{ERANGE} even if the buffer is large enough:
+Linux kernel 6.15.
 @end itemize
diff --git a/doc/glibc-functions/listxattr.texi 
b/doc/glibc-functions/listxattr.texi
index 769d69edd4..c47b4b50fb 100644
--- a/doc/glibc-functions/listxattr.texi
+++ b/doc/glibc-functions/listxattr.texi
@@ -25,4 +25,7 @@ Linux kernel 6.12.
 This function does not report synthetic @code{security.*} extended attributes
 on @code{tmpfs} and @code{kernfs}-based file systems:
 Linux kernel 6.14.
+@item
+This function can fail with @code{ERANGE} even if the buffer is large enough:
+Linux kernel 6.15.
 @end itemize
diff --git a/doc/glibc-functions/llistxattr.texi 
b/doc/glibc-functions/llistxattr.texi
index 8801ccdca5..0db5c5004b 100644
--- a/doc/glibc-functions/llistxattr.texi
+++ b/doc/glibc-functions/llistxattr.texi
@@ -22,4 +22,7 @@ Linux kernel 6.12.
 This function does not report synthetic @code{security.*} extended attributes
 on @code{tmpfs} and @code{kernfs}-based file systems:
 Linux kernel 6.14.
+@item
+This function can fail with @code{ERANGE} even if the buffer is large enough:
+Linux kernel 6.15.
 @end itemize
-- 
2.48.1


Reply via email to