WSL2-Linux-Kernel/drivers/staging/bcm
Dan Carpenter eccbf04a90 Staging: bcm: use get_user() to access user pointers
This fixes some places that dereference user pointers directly instead
of using get_user().

Please especially check my changes to IOCTL_BCM_GET_CURRENT_STATUS.  The
original code modified the struct which "arg" was pointing to.  I think
this was a bug in the original code and that we only wanted to write to
the OutputBuffer. Also with the original code you could read as much
memory as you wanted so I had to put a cap on OutputLength.  The only
value of OutputLength that makes sense is sizeof(LINK_STATE) so now if
OutputLength is not sizeof(LINK_STATE) it returns -EINVAL.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-11-09 13:32:36 -08:00
..
Adapter.h Staging: bcm: make major and minor signed 2010-10-08 07:29:54 -07:00
Arp.c
Bcmchar.c Staging: bcm: use get_user() to access user pointers 2010-11-09 13:32:36 -08:00
Bcmnet.c Staging: bcm: fix up network device reference counting 2010-10-28 09:54:23 -07:00
CmHost.c Staging: bcm: silence off by one warning 2010-10-08 07:29:57 -07:00
CmHost.h
DDRInit.c
DDRInit.h
Debug.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
Debug.h
HandleControlPacket.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
HostMIBSInterface.h
HostMibs.h
IPv6Protocol.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
IPv6ProtocolHdr.h
InterfaceAdapter.h
InterfaceDld.c Staging: bcm: return -EFAULT on copy_to_user() errors 2010-10-08 07:29:56 -07:00
InterfaceIdleMode.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
InterfaceIdleMode.h staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
InterfaceInit.c Staging: bcm: remove unneeded NULL check 2010-10-08 07:29:56 -07:00
InterfaceInit.h
InterfaceIsr.c
InterfaceIsr.h
InterfaceMacros.h
InterfaceMisc.c
InterfaceMisc.h
InterfaceRx.c
InterfaceRx.h
InterfaceTx.c
InterfaceTx.h
Interfacemain.h
Ioctl.h staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
Kconfig
LeakyBucket.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
Macros.h Staging: bcm: mocro expansion bug 2010-10-08 07:29:55 -07:00
Makefile Staging: bcm: Makefile: replace the use of <module>-objs with <module>-y 2010-10-08 07:23:52 -07:00
Misc.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
Osal_Misc.c
PHSDefines.h staging/bcm: fix most build warnings 2010-10-05 08:50:15 -07:00
PHSModule.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
PHSModule.h
Protocol.h
Prototypes.h staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
Qos.c Staging: bcm: silence off by one warning 2010-10-08 07:29:57 -07:00
Queue.h
TODO
Transmit.c staging/bcm: fix most build warnings 2010-10-05 08:50:15 -07:00
Typedefs.h
Version.h
cntrl_SignalingInterface.h
headers.h
hostmibs.c
led_control.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
led_control.h
nvm.c staging/bcm: add sparse annotations 2010-10-05 08:50:15 -07:00
nvm.h
osal_misc.h
sort.c
target_params.h
vendorspecificextn.c
vendorspecificextn.h