Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-dm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-dm
  • Repository
Switch branch/tag
  • linux-dm
  • fs
  • namespace.c
Find file BlameHistoryPermalink
  • Al Viro's avatar
    fix the struct mount leak in umount_tree() · 19a1c409
    Al Viro authored Jul 24, 2019
    	We need to drop everything we remove from the tree, whether
    mnt_has_parent() is true or not.  Usually the bug manifests as a slow
    memory leak (leaked struct mount for initramfs); it becomes much more
    visible in mount_subtree() users, such as btrfs.  There we leak
    a struct mount for btrfs superblock being mounted, which prevents
    fs shutdown on subsequent umount.
    
    Fixes: 56cbb429
    
     ("switch the remnants of releasing the mountpoint away from fs_pin")
    Reported-by: default avatarNikolay Borisov <nborisov@suse.com>
    Tested-by: default avatarNikolay Borisov <nborisov@suse.com>
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    19a1c409