linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [REGRESSION] fuse: execve() fails with ETXTBSY due to async fuse_flush
@ 2023-08-14  6:03 Jürg Billeter
  2023-08-14 11:02 ` Miklos Szeredi
  0 siblings, 1 reply; 14+ messages in thread
From: Jürg Billeter @ 2023-08-14  6:03 UTC (permalink / raw)
  To: Miklos Szeredi, Eric W. Biederman
  Cc: Tycho Andersen, linux-fsdevel, linux-kernel, regressions

Since v6.3-rc1 commit 5a8bee63b1 ("fuse: in fuse_flush only wait if
someone wants the return code") `fput()` is called asynchronously if a
file is closed as part of a process exiting, i.e., if there was no
explicit `close()` before exit.

If the file was open for writing, also `put_write_access()` is called
asynchronously as part of the async `fput()`.

If that newly written file is an executable, attempting to `execve()`
the new file can fail with `ETXTBSY` if it's called after the writer
process exited but before the async `fput()` has run.

I've confirmed that this issue is absent in v6.2 and reverting
5a8bee63b1 on top of v6.4.10 fixes the regression.

#regzbot introduced: 5a8bee63b1

Jürg

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-08-29 17:42 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-14  6:03 [REGRESSION] fuse: execve() fails with ETXTBSY due to async fuse_flush Jürg Billeter
2023-08-14 11:02 ` Miklos Szeredi
2023-08-14 12:07   ` Bernd Schubert
2023-08-14 12:28     ` Miklos Szeredi
2023-08-14 12:38       ` Jürg Billeter
2023-08-14 13:44         ` Bernd Schubert
2023-08-14 14:00   ` Tycho Andersen
2023-08-14 14:35     ` Miklos Szeredi
2023-08-14 22:36       ` Tycho Andersen
2023-08-21 14:24         ` Miklos Szeredi
2023-08-21 15:02           ` Tycho Andersen
2023-08-21 15:31             ` Miklos Szeredi
2023-08-29 17:42               ` Tycho Andersen
2023-08-14 21:34     ` Bernd Schubert

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).