]> git.baikalelectronics.ru Git - kernel.git/commit
fs/fuse: fix ioctl type confusion
authorJann Horn <jann@thejh.net>
Sun, 16 Aug 2015 18:27:01 +0000 (20:27 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 16 Aug 2015 19:35:44 +0000 (12:35 -0700)
commit78a92388f98b245dff8a20b70673344479af2ca0
tree9f388d7ec994747b8703d371b49e1e27921b2533
parent2650b02dcc28d48b634a2fd8c9de781b5778ef28
fs/fuse: fix ioctl type confusion

fuse_dev_ioctl() performed fuse_get_dev() on a user-supplied fd,
leading to a type confusion issue. Fix it by checking file->f_op.

Signed-off-by: Jann Horn <jann@thejh.net>
Acked-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/dev.c