diff options
author | Kevin McKinney <klmckinney1@gmail.com> | 2011-11-06 14:40:11 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-27 01:11:58 (GMT) |
commit | 41c7b7c0fa2f68afb1154e88597ff6b9b97334cf (patch) | |
tree | 37f8f318c8c02d890be2b77f3ad625a460ef14f5 /tools/perf/builtin.h | |
parent | 57bfa9d41741614cb945064521fc8904440313c7 (diff) | |
download | linux-fsl-qoriq-41c7b7c0fa2f68afb1154e88597ff6b9b97334cf.tar.xz |
Staging: bcm: Fix information leak in ioctl: IOCTL_BCM_REGISTER_READ_PRIVATE, IOCTL_BCM_EEPROM_REGISTER_READ
This patch fixes an information leak in ioctl
IOCTL_BCM_REGISTER_READ_PRIVATE and
IOCTL_BCM_EEPROM_REGISTER_READ when determining
the number of bytes to copy to user space. Function,
usb_control_msg, returns the correct number of
bytes from the hardware. Instead of using
this value, we were using a value derived from
user space. In this case, this value could be more
than the hardware allocated. Therefore, this
patch copies the proper number of bytes from
the hardware, and uses this value as the maximum
number of bytes for user space.
Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'tools/perf/builtin.h')
0 files changed, 0 insertions, 0 deletions