diff options
author | Jerry Hoemann <jerry.hoemann@hpe.com> | 2016-01-06 16:03:41 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-12 09:08:39 -0700 |
commit | 83250e67a9d65a662c5fdec6075f3c2dee0e79a0 (patch) | |
tree | 0e53178094834342c2db3645ab06dcf87e036335 /drivers/md/dm-snap.c | |
parent | b9d26f81ae9fa23988a5b503455f300bcef292fb (diff) |
libnvdimm: Fix security issue with DSM IOCTL.
commit 07accfa9d1a8bac8262f6d24a94a54d2d1f35149 upstream.
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).
Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/md/dm-snap.c')
0 files changed, 0 insertions, 0 deletions