linux-stable/drivers/net/wireless/cw1200
Solomon Peachy aa63e18e3d cw1200: Sanity-check arguments in copy_from_user()
The optional debugfs interface to the vendor's engineering tools wasn't
bounds checking at all, which made it trivial to perform a buffer
overflow if this interface was compiled in and then explicitly enabled
at runtime.

This patch checks both the length supplied as part of the data to ensure
it is sane, and also the amount of data compared to the remaining buffer
space.  If either is too large, fail immediately.

(This bug was spotted by Dan Carpenter <dan.carpenter@oracle.com>)

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2013-06-10 14:41:25 -04:00
..
bh.c cw1200: Rename 'sbus' to 'hwbus' 2013-06-03 15:54:37 -04:00
bh.h
cw1200.h cw1200: Rename 'sbus' to 'hwbus' 2013-06-03 15:54:37 -04:00
cw1200_sdio.c cw1200: rename the cw1200 platform definition header 2013-06-03 15:54:56 -04:00
cw1200_spi.c cw1200: rename the cw1200 platform definition header 2013-06-03 15:54:56 -04:00
debug.c cw1200: Sanity-check arguments in copy_from_user() 2013-06-10 14:41:25 -04:00
debug.h
fwio.c cw1200: Rename 'sbus' to 'hwbus' 2013-06-03 15:54:37 -04:00
fwio.h
hwbus.h cw1200: Rename 'sbus' to 'hwbus' 2013-06-03 15:54:37 -04:00
hwio.c cw1200: hwio: Remove an unnecessary goto 2013-06-10 14:41:25 -04:00
hwio.h
itp.c
itp.h
Kconfig cw1200: Rework SDIO platform support to prevent build problems. 2013-06-03 15:54:55 -04:00
main.c cw1200: Rename 'sbus' to 'hwbus' 2013-06-03 15:54:37 -04:00
Makefile cw1200: Rework SDIO platform support to prevent build problems. 2013-06-03 15:54:55 -04:00
pm.c cw1200: Rename 'sbus' to 'hwbus' 2013-06-03 15:54:37 -04:00
pm.h
queue.c
queue.h
scan.c
scan.h
sta.c
sta.h
txrx.c
txrx.h
wsm.c cw1200: remove duplicated include from wsm.c 2013-05-30 14:45:24 -04:00
wsm.h