projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17ac2e9
)
econet: Fix econet_getname() leak
author
Eric Dumazet
<eric.dumazet@gmail.com>
Thu, 6 Aug 2009 03:48:36 +0000
(
03:48
+0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 6 Aug 2009 20:08:40 +0000
(13:08 -0700)
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>
net/econet/af_econet.c
patch
|
blob
|
history
diff --git
a/net/econet/af_econet.c
b/net/econet/af_econet.c
index
2e1f836
..
f0bbc57
100644
(file)
--- 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;