mbox series

[0/4] fuse: Some fixes for submounts

Message ID 20210525150230.157586-1-groug@kaod.org (mailing list archive)
Headers show
Series fuse: Some fixes for submounts | expand

Message

Greg Kurz May 25, 2021, 3:02 p.m. UTC
While working on adding syncfs() support in FUSE, I've hit some severe
bugs with submounts (a crash and an infinite loop). The fix for the
crash is straightforward (patch 1), but the fix for the infinite loop
is more invasive : as suggested by Miklos, a simple bug fix is applied
first (patch 2) and the final fix (patch 3) is applied on top.

Greg Kurz (4):
  fuse: Fix crash in fuse_dentry_automount() error path
  fuse: Fix infinite loop in sget_fc()
  fuse: Call vfs_get_tree() for submounts
  fuse: Make fuse_fill_super_submount() static

 fs/fuse/dir.c       | 46 ++++++++++---------------------------------
 fs/fuse/fuse_i.h    |  9 +++------
 fs/fuse/inode.c     | 48 +++++++++++++++++++++++++++++++++++++++++++--
 fs/fuse/virtio_fs.c |  3 +++
 4 files changed, 62 insertions(+), 44 deletions(-)