linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Antonio SJ Musumeci <trapexit@spawn.link>
To: The 8472 <kernel@infinite-source.de>, linux-fsdevel@vger.kernel.org
Subject: Re: EBADF returned from close() by FUSE
Date: Fri, 19 Apr 2024 22:47:57 +0000	[thread overview]
Message-ID: <aaabfbe6-2c61-46dc-ab82-b8d555f30238@spawn.link> (raw)
In-Reply-To: <f764ac09-bd84-41f0-847b-bc89016a4613@infinite-source.de>

On 4/19/24 17:04, The 8472 wrote:
> I'm writing to a linux mailing list, am I not? And referring to linux-specific
> manpages, not the POSIX ones. The way the linux kernel chooses to pass
> what FUSE sends to userspace is under its control.
>
> I would like linux to adhere more closely to its own API contract or improve its
> documentation.

And you're talking about FUSE which is a cross platform (Linux, FreeBSD, 
MacOS, Windows) protocol. And that protocol defacto includes what 
happens when the FUSE server returns and error. If Linux suddenly 
changes what happens when the server returns an error it will affect 
everyone.

> I don't understand what would be broken here. In a previous mail you agreed
> that FUSE servers have no business sending EBADF and should have a
> bug filed against them. If that's the case then sanitizing problematic cases
> should be ok.

I said: "it is likely a bug or bad decision" but I don't claim to know 
the mind of the author. I've seen FUSE filesystems designed for fuzzing 
apps via filesystem APIs and they by their nature desire to return all 
kinds of random errors. I've seen non-standard errors to indicate 
special edge cases or more accurately indicate the underlying resource's 
issue (like when interacting with remote system.) Or even uncommon 
values used to indicate something to software which was written to know 
it was dealing with a special filesystem. Filesystems are just not 
uniform in behavior generally let alone errors.



  reply	other threads:[~2024-04-19 22:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-18 22:10 EBADF returned from close() by FUSE The 8472
2024-04-19  3:30 ` Antonio SJ Musumeci
2024-04-19  6:55   ` The 8472
     [not found]     ` <8c7552b1-f371-4a75-98cc-f2c89816becb@spawn.link>
2024-04-19 18:18       ` The 8472
2024-04-19 20:07         ` Antonio SJ Musumeci
2024-04-19 20:45           ` The 8472
2024-04-19 21:29             ` Antonio SJ Musumeci
2024-04-19 22:04               ` The 8472
2024-04-19 22:47                 ` Antonio SJ Musumeci [this message]
2024-04-19 23:04                   ` The 8472
2024-04-23 12:46                     ` Miklos Szeredi
2024-04-23 13:24                       ` Antonio SJ Musumeci
2024-04-23 13:38                         ` Miklos Szeredi
     [not found]                           ` <692a9f0b-9c2b-4850-b8bc-48f09fe41762@infinite-source.de>
2024-04-23 21:38                             ` The 8472
2024-04-26  8:52                               ` Miklos Szeredi

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=aaabfbe6-2c61-46dc-ab82-b8d555f30238@spawn.link \
    --to=trapexit@spawn.link \
    --cc=kernel@infinite-source.de \
    --cc=linux-fsdevel@vger.kernel.org \
    /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 NNTP newsgroup(s).