linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Prevent re-use of FUSE superblock after force unmount
@ 2022-05-11 22:29 Daniil Lunev
  2022-05-11 22:29 ` [PATCH v2 1/2] fs/super: function to prevent super re-use Daniil Lunev
  2022-05-11 22:29 ` [PATCH v2 2/2] FUSE: Retire superblock on force unmount Daniil Lunev
  0 siblings, 2 replies; 12+ messages in thread
From: Daniil Lunev @ 2022-05-11 22:29 UTC (permalink / raw)
  To: linux-fsdevel
  Cc: hch, fuse-devel, tytso, miklos, viro, linux-kernel, Daniil Lunev

userspace counterpart. However, open file handles will prevent the
superblock from being reclaimed. An attempt to remount the filesystem at
the same endpoint will try re-using the superblock, if still present.
Since the superblock re-use path doesn't go through the fs-specific
superblock setup code, its state in FUSE case is already disfunctional,
and that will prevent the mount from succeeding.

Changes in v2:
- Remove super from list of superblocks instead of using a flag

Daniil Lunev (2):
  fs/super: function to prevent super re-use
  FUSE: Retire superblock on force unmount

 fs/fuse/inode.c    |  7 +++++--
 fs/super.c         | 51 ++++++++++++++++++++++++++++++++++++----------
 include/linux/fs.h |  1 +
 3 files changed, 46 insertions(+), 13 deletions(-)

-- 
2.31.0


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

end of thread, other threads:[~2022-05-30  1:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11 22:29 [PATCH v2 0/2] Prevent re-use of FUSE superblock after force unmount Daniil Lunev
2022-05-11 22:29 ` [PATCH v2 1/2] fs/super: function to prevent super re-use Daniil Lunev
2022-05-11 22:29 ` [PATCH v2 2/2] FUSE: Retire superblock on force unmount Daniil Lunev
2022-05-17 22:20   ` Al Viro
2022-05-17 22:32     ` Al Viro
2022-05-17 23:27       ` Daniil Lunev
2022-05-18 11:57       ` Miklos Szeredi
2022-05-18 22:55         ` Daniil Lunev
2022-05-23  0:25           ` Daniil Lunev
2022-05-24 14:22             ` Miklos Szeredi
2022-05-24 22:44               ` Daniil Lunev
2022-05-30  1:41                 ` Daniil Lunev

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