OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
462ca99
)
DECnet: don't leak uninitialized stack byte
author
Dan Rosenberg
<drosenberg@vsecurity.com>
Tue, 23 Nov 2010 11:02:13 +0000
(11:02 +0000)
committer
David S. Miller
<davem@davemloft.net>
Sun, 28 Nov 2010 19:32:30 +0000
(11:32 -0800)
A single uninitialized padding byte is leaked to userspace.
Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>
CC: stable <stable@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/af_decnet.c
patch
|
blob
|
history
diff --git
a/net/decnet/af_decnet.c
b/net/decnet/af_decnet.c
index
a76b78d
..
6f97268
100644
(file)
--- a/
net/decnet/af_decnet.c
+++ b/
net/decnet/af_decnet.c
@@
-1556,6
+1556,8
@@
static int __dn_getsockopt(struct socket *sock, int level,int optname, char __us
if (r_len > sizeof(struct linkinfo_dn))
r_len = sizeof(struct linkinfo_dn);
+ memset(&link, 0, sizeof(link));
+
switch(sock->state) {
case SS_CONNECTING:
link.idn_linkstate = LL_CONNECTING;