]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: bcm: Fix information leak in IOCTL_BCM_GET_DRIVER_VERSION
authorKevin McKinney <klmckinney1@gmail.com>
Thu, 15 Dec 2011 03:44:33 +0000 (22:44 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Dec 2011 21:32:45 +0000 (13:32 -0800)
commit38178e06d7fb3d76bb2b4a42045a4b60671fe5e3
tree3d284a1e03b1725c5c0f1f6d19a67d9a9f188d19
parent2ac9c9c2746b49381d90d6eeb438396aeb5763b2
Staging: bcm: Fix information leak in IOCTL_BCM_GET_DRIVER_VERSION

This ioctl, IOCTL_BCM_GET_DRIVER_VERSION, is
responsible for sending the driver version
to userspace. However, the requested size stored
in IoBuffer.OutputLength may be incorrect.
Therefore, we altered the code to send the
exact length of the version, plus one for the
null character.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/bcm/Bcmchar.c