]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit88f8a5e3e7defccd3925cabb1ee4d3994e5cdb52
tree151d98558e8a210434e84d1e8127d681e975e80b
parentea80907ff066edd1dd43c5fe90ae6677d15e6384
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