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)
commite727ca82e0e9616ab4844301e6bae60ca7327682
treef9e161f1ec2cba611a40603b3b9c4d5244930bab
parentc31eeaced22ce8bd61268a3c595d542bb38c0a4f
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