[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220511222910.635307-1-dlunev@chromium.org>
Date: Thu, 12 May 2022 08:29:08 +1000
From: Daniil Lunev <dlunev@...omium.org>
To: linux-fsdevel@...r.kernel.org
Cc: hch@...radead.org, fuse-devel@...ts.sourceforge.net, tytso@....edu,
miklos@...redi.hu, viro@...iv.linux.org.uk,
linux-kernel@...r.kernel.org, Daniil Lunev <dlunev@...omium.org>
Subject: [PATCH v2 0/2] Prevent re-use of FUSE superblock after force unmount
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
Powered by blists - more mailing lists