Skip to content
Commit 1b0b9cc8 authored by Eric Biggers's avatar Eric Biggers Committed by Al Viro
Browse files

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: default avatarMark Rutland <mark.rutland@arm.com>
Reported-by: default avatar <syzbot+99de05d099a170867f22@syzkaller.appspotmail.com>
Reported-by: default avatar <syzbot+7008b8b8ba7df475fdc8@syzkaller.appspotmail.com>
Fixes: 93766fbd

 ("vfs: syscall: Add fsmount() to create a mount for a superblock")
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 9e0babf2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment