1
linux/drivers/staging/bcm
Kevin McKinney 221fd753dd Staging: bcm: Fix an invalid dereference to a kmalloc in IOCTL_BCM_BULK_WRM
Variable IoBuffer.InputLength is chosen from userspace,
and can therefore be less than the intended size. In this
case,the memory from the kmalloc call is eventually cast
to a PBULKWRM_BUFFER. If the IoBuffer.InputLength does not
meet the minimum size of PBULKWRM_BUFFER, then we will get
a kernel Oops. To resolve this issue, this patch verifies
IoBuffer.InputLength meets the minimum size before invoking
the kmalloc call.

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>
2011-12-22 13:32:45 -08:00
..
Adapter.h
Bcmchar.c Staging: bcm: Fix an invalid dereference to a kmalloc in IOCTL_BCM_BULK_WRM 2011-12-22 13:32:45 -08:00
Bcmnet.c
CmHost.c
CmHost.h
cntrl_SignalingInterface.h
DDRInit.c
DDRInit.h
Debug.h
HandleControlPacket.c staging: bcm: HandleControlPacket.c: breaking of long lines 2011-12-12 16:49:26 -08:00
headers.h
hostmibs.c
HostMIBSInterface.h
InterfaceAdapter.h
InterfaceDld.c
InterfaceIdleMode.c
InterfaceIdleMode.h
InterfaceInit.c
InterfaceInit.h
InterfaceIsr.c
InterfaceIsr.h
InterfaceMacros.h
InterfaceMisc.c
InterfaceMisc.h
InterfaceRx.c
InterfaceRx.h
InterfaceTx.c
InterfaceTx.h
Ioctl.h
IPv6Protocol.c
IPv6ProtocolHdr.h
Kconfig
LeakyBucket.c
led_control.c staging: bcm: led_control.c: breaking of long lines 2011-12-08 12:43:41 -08:00
led_control.h
Macros.h
Makefile
Misc.c
nvm.c
nvm.h
PHSDefines.h
PHSModule.c
PHSModule.h
Protocol.h
Prototypes.h
Qos.c
Queue.h
sort.c
target_params.h
TODO
Transmit.c
Typedefs.h
vendorspecificextn.c
vendorspecificextn.h
Version.h