diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-08-06 03:48:36 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-08 20:17:36 -0700 |
commit | 8f25b9d9c723acfc9666afe5caf1128f18da8613 (patch) | |
tree | c15785e773bd081585d347cde9f29cd2ca08460d /net | |
parent | f43ef685dd388d9b255b5ab15e6f587668bcc7c1 (diff) |
econet: Fix econet_getname() leak
commit 80922bbb12a105f858a8f0abb879cb4302d0ecaa upstream.
econet_getname() can leak kernel memory to user.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/econet/af_econet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/econet/af_econet.c b/net/econet/af_econet.c index 8789d2bb1b06..9aae86ff25a4 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; |