net: tipc: fix information leak to userland
commit4312007ec44ba76536bd660a236701a7de21e98b
authorKulikov Vasiliy <segooon@gmail.com>
Sun, 31 Oct 2010 07:10:32 +0000 (31 07:10 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Apr 2011 23:53:50 +0000 (14 16:53 -0700)
tree991b362ef29f622317cc9b08e2bf06b845890759
parentfe540c34cb49e6f1d5501fa89b5e552819f45c93
net: tipc: fix information leak to userland

commit 88f8a5e3e7defccd3925cabb1ee4d3994e5cdb52 upstream.

Structure sockaddr_tipc is copied to userland with padding bytes after
"id" field in union field "name" unitialized.  It leads to leaking of
contents of kernel stack memory.  We have to initialize them to zero.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Moritz Muehlenhoff <jmm@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/tipc/socket.c