* [PATCH] econet: Fix econet_getname() leak
@ 2009-08-06 13:48 Eric Dumazet
2009-08-06 20:09 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Eric Dumazet @ 2009-08-06 13:48 UTC (permalink / raw)
To: David S. Miller; +Cc: Linux Netdev List
econet_getname() can leak kernel memory to user.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
---
diff --git a/net/econet/af_econet.c b/net/econet/af_econet.c
index e114da7..0e0254f 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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] econet: Fix econet_getname() leak
2009-08-06 13:48 [PATCH] econet: Fix econet_getname() leak Eric Dumazet
@ 2009-08-06 20:09 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-08-06 20:09 UTC (permalink / raw)
To: eric.dumazet; +Cc: netdev
From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Thu, 06 Aug 2009 15:48:36 +0200
> econet_getname() can leak 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:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-06 13:48 [PATCH] econet: Fix econet_getname() leak Eric Dumazet
2009-08-06 20:09 ` 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).