diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-08-06 02:27:43 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-08 20:17:31 -0700 |
commit | 3cee5ca317b5f0a0c2c62ad24dbe7f415ca45687 (patch) | |
tree | b8a15db0d516c45de0a06230dcf60e0886d3ec61 | |
parent | 27dd1a6f4fe1625b22bbd9fc63950732519c9976 (diff) |
appletalk: fix atalk_getname() leak
commit 3d392475c873c10c10d6d96b94d092a34ebd4791 upstream.
atalk_getname() can leak 8 bytes of 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>
-rw-r--r-- | net/appletalk/ddp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index 0c850427a85..8067dc75904 100644 --- a/net/appletalk/ddp.c +++ b/net/appletalk/ddp.c @@ -1245,6 +1245,7 @@ static int atalk_getname(struct socket *sock, struct sockaddr *uaddr, return -ENOBUFS; *uaddr_len = sizeof(struct sockaddr_at); + memset(&sat.sat_zero, 0, sizeof(sat.sat_zero)); if (peer) { if (sk->sk_state != TCP_ESTABLISHED) |