aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/lpt_commit.c
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2019-06-12 18:43:13 +0000
committerAl Viro <[email protected]>2019-06-17 21:36:07 +0000
commit1b0b9cc8d3793e31b313e6c9685513b08cd883c4 (patch)
tree35a629a4bfb4025cf8a49335d5d3d39dd0187d01 /fs/ubifs/lpt_commit.c
parentLinux 5.2-rc5 (diff)
downloadkernel-1b0b9cc8d3793e31b313e6c9685513b08cd883c4.tar.gz
kernel-1b0b9cc8d3793e31b313e6c9685513b08cd883c4.zip
vfs: fsmount: add missing mntget()
sys_fsmount() needs to take a reference to the new mount when adding it to the anonymous mount namespace. Otherwise the filesystem can be unmounted while it's still in use, as found by syzkaller. Reported-by: Mark Rutland <[email protected]> Reported-by: [email protected] Reported-by: [email protected] Fixes: 93766fbd2696 ("vfs: syscall: Add fsmount() to create a mount for a superblock") Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'fs/ubifs/lpt_commit.c')
0 files changed, 0 insertions, 0 deletions