]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Nov 2010 17:25:46 +0000 (09:25 -0800)
commitab1386eb7fa7998e357734f0d55099d914dfed45
tree151d98558e8a210434e84d1e8127d681e975e80b
parentc5f4d99e7a792fd21fa4723dccd0fe15b27207a7
net: tipc: fix information leak to userland

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>
net/tipc/socket.c