]> git.karo-electronics.de Git - karo-tx-linux.git/commit
atm: fix info leak via getsockname()
authorMathias Krause <minipli@googlemail.com>
Wed, 15 Aug 2012 11:31:45 +0000 (11:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 16:47:06 +0000 (09:47 -0700)
commitd5d3ca708a08caa3a55531b6b781edcb0f64724d
tree3f2747a82f3c89c2b5af4d55aa58075bd7d7b891
parent9a897ce370b0bbe57961372c67bd0ffc2dd3f7ea
atm: fix info leak via getsockname()

[ Upstream commit 3c0c5cfdcd4d69ffc4b9c0907cec99039f30a50a ]

The ATM code fails to initialize the two padding bytes of struct
sockaddr_atmpvc inserted for alignment. Add an explicit memset(0)
before filling the structure to avoid the info leak.

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/atm/pvc.c