aboutsummaryrefslogtreecommitdiffstats
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-16 13:53:46 +0200
committerRichard Weinberger <richard@nod.at>2020-07-24 23:03:11 +0200
commitf7e6b19bc76471ba03725fe58e0c218a3d6266c3 (patch)
tree7b99597d0d1f8e0a6eb9457076b2741a9f4fbbf1 /fs/buffer.c
parentMerge tag 'media/v5.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media into master (diff)
downloadlinux-dev-f7e6b19bc76471ba03725fe58e0c218a3d6266c3.tar.xz
linux-dev-f7e6b19bc76471ba03725fe58e0c218a3d6266c3.zip
mtd: properly check all write ioctls for permissions
When doing a "write" ioctl call, properly check that we have permissions to do so before copying anything from userspace or anything else so we can "fail fast". This includes also covering the MEMWRITE ioctl which previously missed checking for this. Cc: Miquel Raynal <miquel.raynal@bootlin.com> Cc: Richard Weinberger <richard@nod.at> Cc: Vignesh Raghavendra <vigneshr@ti.com> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [rw: Fixed locking issue] Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/buffer.c')
0 files changed, 0 insertions, 0 deletions