]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: info leak in __tipc_nl_add_udp_addr()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 13 Oct 2016 08:06:06 +0000 (11:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2016 16:10:01 +0000 (12:10 -0400)
commit6fb49550e536446aba3da076bf6f962cbb6a1c4c
tree29f946b13c80eaf048850bc920a185587aa4c9d3
parent5f789c5f715429ea9d3b6b91e1a857b4c6c3620c
tipc: info leak in __tipc_nl_add_udp_addr()

We should clear out the padding and unused struct members so that we
don't expose stack information to userspace.

Fixes: a2af3659d117 ('tipc: add the ability to get UDP options via netlink')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/udp_media.c