* [PATCH] appletalk: fix atalk_getname() leak
@ 2009-08-06 12:27 Eric Dumazet
2009-08-06 20:17 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Eric Dumazet @ 2009-08-06 12:27 UTC (permalink / raw)
To: David S. Miller; +Cc: Linux Netdev List
atalk_getname() can leak 8 bytes of kernel memory to user
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
---
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c
index 590b839..9ef6ff2 100644
--- a/net/appletalk/ddp.c
+++ b/net/appletalk/ddp.c
@@ -1237,6 +1237,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)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] appletalk: fix atalk_getname() leak
2009-08-06 12:27 [PATCH] appletalk: fix atalk_getname() leak Eric Dumazet
@ 2009-08-06 20:17 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-08-06 20:17 UTC (permalink / raw)
To: eric.dumazet; +Cc: netdev
From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Thu, 06 Aug 2009 14:27:43 +0200
> atalk_getname() can leak 8 bytes of kernel memory to user
>
> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Applied to net-2.6
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-06 20:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-06 12:27 [PATCH] appletalk: fix atalk_getname() leak Eric Dumazet
2009-08-06 20:17 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).