]> git.karo-electronics.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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:47:18 +0000 (12:47 -0400)
commitddfd87424bef1dc8b2930acae2311b286ab9de12
treec835415ca8f0d56554a596fe4aa12c910c36c246
parent262b3d2e9f111516bf5cc1211f9128180e0329ef
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: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/socket.c