Source: fuse3
Version: 3.13.0-1
Severity: serious
Forwarded: https://github.com/libfuse/libfuse/issues/730
Control: affects -1 src:ostree

Hi Maintainer

Since the upload of 3.13.0-1, the 'name' string passed to
fs->op.setxattr has the first 8 characters missing.

Steps to reproduce:

$ dget https://deb.debian.org/debian/pool/main/f/fuse3/fuse3_3.14.0-1.dsc
$ cd fuse3-3.14.0/
$ debuild -us -uc
$ cd obj-x86_64-linux-gnu/example/
$ mkdir mnt/
$ ./passthrough mnt/
$ touch mnt/tmp/anewfile-for-fuse
$ setfattr -n user.foo -v bar mnt/tmp/anewfile-for-fuse
setfattr: mnt/tmp/anewfile-for-fuse: Numerical result out of range

Now try setfattr again with 8 dummy characters in front of the name string:

$ setfattr -n 12345678user.foo -v bar mnt/tmp/anewfile-for-fuse
$ getfattr -d -m . mnt/tmp/anewfile-for-fuse
# file: mnt/tmp/anewfile-for-fuse
user.foo="bar"

$ umount mnt/
$ rmdir mnt/

Regards
Graham

Reply via email to