virtio-fs.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: virtiofs-bot@sinrega.org
To: virtio-fs@redhat.com
Subject: [Virtio-fs] [virtiofsd] Issue opened: Fix listxattr() response when name list is empty
Date: Fri, 26 Aug 2022 18:36:25 +0000 (UTC)	[thread overview]
Message-ID: <88673.122082614362200701@us-mta-134.us.mimecast.lan> (raw)

FUSE_LISTXATTR returns a xattr name list. It is possible that all xattrs have been filtered out by server and resulting name list is empty. As of now rust version of code writes a null byte to client supplied buffer. This fails the kernel fuse code verification and return -EIO to user space.

Fix this by not writing a single null byte. Simply send a response back with error code 0 and virtiofs kernel code should be able to handle it and update variable argument size to 0.
---
https://gitlab.com/virtio-fs/virtiofsd/-/issues/55


                 reply	other threads:[~2022-08-26 18:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=88673.122082614362200701@us-mta-134.us.mimecast.lan \
    --to=virtiofs-bot@sinrega.org \
    --cc=virtio-fs@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).