Commit 3c6f27bf authored by Dan Rosenberg's avatar Dan Rosenberg Committed by David S. Miller

DECnet: don't leak uninitialized stack byte

A single uninitialized padding byte is leaked to userspace.
Signed-off-by: default avatarDan Rosenberg <drosenberg@vsecurity.com>
CC: stable <stable@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 462ca99c
...@@ -1556,6 +1556,8 @@ static int __dn_getsockopt(struct socket *sock, int level,int optname, char __us ...@@ -1556,6 +1556,8 @@ static int __dn_getsockopt(struct socket *sock, int level,int optname, char __us
if (r_len > sizeof(struct linkinfo_dn)) if (r_len > sizeof(struct linkinfo_dn))
r_len = sizeof(struct linkinfo_dn); r_len = sizeof(struct linkinfo_dn);
memset(&link, 0, sizeof(link));
switch(sock->state) { switch(sock->state) {
case SS_CONNECTING: case SS_CONNECTING:
link.idn_linkstate = LL_CONNECTING; link.idn_linkstate = LL_CONNECTING;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment