From: Eric Dumazet Date: Thu, 6 Aug 2009 03:48:36 +0000 (+0000) Subject: econet: Fix econet_getname() leak X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=80922bbb12a105f858a8f0abb879cb4302d0ecaa;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git econet: Fix econet_getname() leak econet_getname() can leak kernel memory to user. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/econet/af_econet.c b/net/econet/af_econet.c index 2e1f836d424..f0bbc57926c 100644 --- a/net/econet/af_econet.c +++ b/net/econet/af_econet.c @@ -520,6 +520,7 @@ static int econet_getname(struct socket *sock, struct sockaddr *uaddr, if (peer) return -EOPNOTSUPP; + memset(sec, 0, sizeof(*sec)); mutex_lock(&econet_mutex); sk = sock->sk;