diff options
author | Eric Biggers | 2019-06-12 20:43:13 +0200 |
---|---|---|
committer | Al Viro | 2019-06-17 23:36:07 +0200 |
commit | 1b0b9cc8d3793e31b313e6c9685513b08cd883c4 (patch) | |
tree | 35a629a4bfb4025cf8a49335d5d3d39dd0187d01 /drivers/net/wireless/intel/iwlegacy | |
parent | Linux 5.2-rc5 (diff) | |
download | kernel-qcow2-linux-1b0b9cc8d3793e31b313e6c9685513b08cd883c4.tar.gz kernel-qcow2-linux-1b0b9cc8d3793e31b313e6c9685513b08cd883c4.tar.xz kernel-qcow2-linux-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 <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>
Diffstat (limited to 'drivers/net/wireless/intel/iwlegacy')
0 files changed, 0 insertions, 0 deletions