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:34:08 -0700 |
commit | e9ddac8017a55bd2ab3ba5611403dcfcbf29e7be (patch) | |
tree | 9941af03a2fcee30e4d1c125b8d06f721bc18cf0 | |
parent | 03300f07d8e955ef16b7bfcd62c77cb8cf5aab6a (diff) | |
download | linux-stable-e9ddac8017a55bd2ab3ba5611403dcfcbf29e7be.tar.gz linux-stable-e9ddac8017a55bd2ab3ba5611403dcfcbf29e7be.tar.bz2 linux-stable-e9ddac8017a55bd2ab3ba5611403dcfcbf29e7be.zip |
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 d6a9243641af..e8e9bad8d922 100644 --- a/net/appletalk/ddp.c +++ b/net/appletalk/ddp.c @@ -1242,6 +1242,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) |