diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-16 14:53:46 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2020-07-25 00:03:11 +0300 |
commit | f7e6b19bc76471ba03725fe58e0c218a3d6266c3 (patch) | |
tree | 7b99597d0d1f8e0a6eb9457076b2741a9f4fbbf1 /arch/arm/boot/dts/kirkwood-ds209.dts | |
parent | d15be546031cf65a0fc34879beca02fd90fe7ac7 (diff) | |
download | linux-f7e6b19bc76471ba03725fe58e0c218a3d6266c3.tar.xz |
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 'arch/arm/boot/dts/kirkwood-ds209.dts')
0 files changed, 0 insertions, 0 deletions