unix_diag: fix info leak
authorMathias Krause <minipli@googlemail.com>
Mon, 30 Sep 2013 20:05:40 +0000 (22:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2013 12:31:02 +0000 (04:31 -0800)
commit39283085a92262f9446b95d36df9724902b7579a
treec416c8b00c519e8ded53981fc5d398ade745d5c2
parent3a26736015acfc8745db623efa7f57bc982ed516
unix_diag: fix info leak

[ Upstream commit 6865d1e834be84ddd5808d93d5035b492346c64a ]

When filling the netlink message we miss to wipe the pad field,
therefore leak one byte of heap memory to userland. Fix this by
setting pad to 0.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/unix/diag.c