]> git.baikalelectronics.ru Git - kernel.git/commit
proc connector: fix info leaks
authorMathias Krause <minipli@googlemail.com>
Mon, 30 Sep 2013 20:03:06 +0000 (22:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2013 20:03:50 +0000 (16:03 -0400)
commitadbd777e2275a3bd94702ecd220d0f17081ecfd5
treef9e161f1ec2cba611a40603b3b9c4d5244930bab
parenta84bc0d96a54fc12e51153bb67b4aad1e2917bc8
proc connector: fix info leaks

Initialize event_data for all possible message types to prevent leaking
kernel stack contents to userland (up to 20 bytes). Also set the flags
member of the connector message to 0 to prevent leaking two more stack
bytes this way.

Cc: stable@vger.kernel.org # v2.6.15+
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/connector/cn_proc.c