From: Mathias Krause Date: Wed, 15 Aug 2012 11:31:52 +0000 (+0000) Subject: l2tp: fix info leak via getsockname() X-Git-Tag: v3.6-rc3~10^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04d4fbca1017c11381e7d82acea21dd741e748bc;p=pandora-kernel.git l2tp: fix info leak via getsockname() The L2TP code for IPv6 fails to initialize the l2tp_unused member of struct sockaddr_l2tpip6 and that for leaks two bytes kernel stack via the getsockname() syscall. Initialize l2tp_unused with 0 to avoid the info leak. Signed-off-by: Mathias Krause Cc: James Chapman Signed-off-by: David S. Miller --- Reading git-diff-tree failed