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] MR merged: Fix `listxattr()` response when xattr name list is empty
Date: Tue, 13 Sep 2022 07:36:09 +0000 (UTC)	[thread overview]
Message-ID: <96909.122091303360600320@us-mta-640.us.mimecast.lan> (raw)

FUSE_LISTXATTR returns a xattr name list. It is possible that the name
list is empty, because either there are no xattrs or all xattrs have
been filtered out by the server.

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.

We need to send a response back with error code 0 and virtiofs kernel
code will handle it and update the variable argument size to 0.

Closes #55
---
https://gitlab.com/virtio-fs/virtiofsd/-/merge_requests/132


                 reply	other threads:[~2022-09-13  7: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=96909.122091303360600320@us-mta-640.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).