]> www.infradead.org Git - users/jedix/linux-maple.git/commit
atm: fix info leak in getsockopt(SO_ATMPVC)
authorMathias Krause <minipli@googlemail.com>
Wed, 15 Aug 2012 11:31:44 +0000 (11:31 +0000)
committerGuangyu Sun <guangyu.sun@oracle.com>
Mon, 8 Oct 2012 17:00:01 +0000 (10:00 -0700)
commitde3629979433fa9711014e1d1ce948543fca2ef0
treeebc2085750aac413409bdf04d4864491c8c1b209
parent80dbd28aa717477f07947f433746d9b8f7d983a1
atm: fix info leak in getsockopt(SO_ATMPVC)

[ Upstream commit e862f1a9b7df4e8196ebec45ac62295138aa3fc2 ]

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>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
net/atm/common.c