]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: tipc: fix information leak to userland
authorKulikov Vasiliy <segooon@gmail.com>
Sun, 31 Oct 2010 07:10:32 +0000 (07:10 +0000)
committerAndi Kleen <ak@linux.intel.com>
Thu, 28 Apr 2011 15:21:01 +0000 (08:21 -0700)
commit153e4ee16df4ec1660a97c6040715e5993f9032e
tree5a187e09bf6d875366037fad163e3c2649b40a4a
parent6e7fd0751dea4c3472f0a1f7b58d0b1ea53fbd84
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Moritz Muehlenhoff <jmm@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/tipc/socket.c