]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libnvdimm: Fix security issue with DSM IOCTL.
authorJerry Hoemann <jerry.hoemann@hpe.com>
Wed, 6 Jan 2016 23:03:41 +0000 (16:03 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 5 Mar 2016 20:24:06 +0000 (12:24 -0800)
commit07accfa9d1a8bac8262f6d24a94a54d2d1f35149
treee1c5fa13f27d8094d61a630d47cd1f6a621d3443
parent4dc0e7be884e0f99211107dd75e6e1884b7b3754
libnvdimm: Fix security issue with DSM IOCTL.

Code attempts to prevent certain IOCTL DSM from being called
when device is opened read only.  This security feature can
be trivially overcome by changing the size portion of the
ioctl_command which isn't used.

Check only the _IOC_NR (i.e. the command).

Cc: <stable@vger.kernel.org>
Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/bus.c