diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-16 13:53:46 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2020-07-24 23:03:11 +0200 |
commit | f7e6b19bc76471ba03725fe58e0c218a3d6266c3 (patch) | |
tree | 7b99597d0d1f8e0a6eb9457076b2741a9f4fbbf1 /CREDITS | |
parent | d15be546031cf65a0fc34879beca02fd90fe7ac7 (diff) | |
download | linux-f7e6b19bc76471ba03725fe58e0c218a3d6266c3.tar.bz2 |
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 'CREDITS')
0 files changed, 0 insertions, 0 deletions