Prevent re-use of FUSE block-device-based superblock after force unmount
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest2 patches 1 replyApplied
- v42 patches 8 repliesSuperseded
- v32 patches 2 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 2 patches | 9 replies | Superseded | |
| v1 | 2 patches | 12 replies | Superseded |
Changes in v5 from the cover letter
- Update commit messages to specify that only block-device-based superblocks are affected
- Restrict retire_super call in FUSE to be issued for fuseblk only.
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | fs/super: function to prevent re-use of block-device-based superblocksfs/ include/ | +32 | 0 replies | |
| 2/2 | FUSE: Retire block-device-based superblock on force unmountfs/ | +8 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Christoph Hellwig |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/2] Prevent re-use of FUSE block-device-based superblock after force unmount
Force unmount of fuse severes the connection between FUSE driver and its 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 v5:
- Update commit messages to specify that only block-device-based superblocks are affected
- Restrict retire_super call in FUSE to be issued for fuseblk only.
Changes in v4:
- Simplify condition according to Christoph Hellwig's comments.
Changes in v3:
- Back to state tracking from v1
- Use s_iflag to mark superblocked ignored
- Only unregister private bdi in retire, without freeing
Changes in v2:
- Remove super from list of superblocks instead of using a flag
Daniil Lunev (2):
fs/super: function to prevent re-use of block-device-based superblocks
FUSE: Retire block-device-based superblock on force unmount
fs/fuse/inode.c | 10 ++++++++-- fs/super.c | 32 ++++++++++++++++++++++++++++++-- include/linux/fs.h | 2 ++ 3 files changed, 40 insertions(+), 4 deletions(-)
Signature · 1 line
2.31.0