Eric Biggers 1b0b9cc8d3 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 <mark.rutland@arm.com>
Reported-by: syzbot+99de05d099a170867f22@syzkaller.appspotmail.com
Reported-by: syzbot+7008b8b8ba7df475fdc8@syzkaller.appspotmail.com
Fixes: 93766fbd2696 ("vfs: syscall: Add fsmount() to create a mount for a superblock")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2019-06-17 17:36:07 -04:00
..
2019-06-11 15:10:15 -10:00
2019-05-31 13:49:50 -07:00
2019-05-31 08:34:32 -07:00
2019-06-08 12:52:42 -07:00
2019-06-06 12:19:37 -07:00
2019-05-29 13:03:37 +02:00
2019-06-08 12:52:42 -07:00
2019-06-06 12:36:54 -07:00
2019-04-08 18:21:02 -05:00
2019-03-08 14:48:40 -08:00
2019-05-07 18:14:36 -07:00
2019-01-30 17:44:07 -05:00
2019-06-17 17:36:07 -04:00
2019-04-09 19:20:57 -04:00
2019-02-07 16:38:35 +01:00