diff options
author | Tomas Bortoli <tomasbortoli@gmail.com> | 2018-07-13 16:58:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-07-14 11:11:09 -0700 |
commit | 02f51d45937f7bc7f4dee21e9f85b2d5eac37104 (patch) | |
tree | 1bc4f4e4a1d0ac12f67573c65d825478b9d62f4b /lib/raid6 | |
parent | e70cc2bd579e8a9d6d153762f0fe294d0e652ff0 (diff) | |
download | linux-02f51d45937f7bc7f4dee21e9f85b2d5eac37104.tar.gz linux-02f51d45937f7bc7f4dee21e9f85b2d5eac37104.tar.bz2 linux-02f51d45937f7bc7f4dee21e9f85b2d5eac37104.zip |
autofs: fix slab out of bounds read in getname_kernel()
The autofs subsystem does not check that the "path" parameter is present
for all cases where it is required when it is passed in via the "param"
struct.
In particular it isn't checked for the AUTOFS_DEV_IOCTL_OPENMOUNT_CMD
ioctl command.
To solve it, modify validate_dev_ioctl(function to check that a path has
been provided for ioctl commands that require it.
Link: http://lkml.kernel.org/r/153060031527.26631.18306637892746301555.stgit@pluto.themaw.net
Signed-off-by: Tomas Bortoli <tomasbortoli@gmail.com>
Signed-off-by: Ian Kent <raven@themaw.net>
Reported-by: syzbot+60c837b428dc84e83a93@syzkaller.appspotmail.com
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/raid6')
0 files changed, 0 insertions, 0 deletions