]> git.baikalelectronics.ru Git - kernel.git/commit
autofs: fix autofs_sbi() does not check super block type
authorIan Kent <raven@themaw.net>
Wed, 22 Aug 2018 04:51:45 +0000 (21:51 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Aug 2018 17:52:43 +0000 (10:52 -0700)
commit3aa60e2f253360297ba1e403d93d151f9255c7e3
treeee94fd9c9cc86c68eb38cab80c02a34982ac69aa
parenta1514c7ee4e8e5337df16ad73403949ccf5c8dae
autofs: fix autofs_sbi() does not check super block type

autofs_sbi() does not check the superblock magic number to verify it has
been given an autofs super block.

Link: http://lkml.kernel.org/r/153475422934.17131.7563724552005298277.stgit@pluto.themaw.net
Reported-by: <syzbot+87c3c541582e56943277@syzkaller.appspotmail.com>
Signed-off-by: Ian Kent <raven@themaw.net>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/autofs/autofs_i.h
fs/autofs/inode.c