summaryrefslogtreecommitdiff
path: root/net/ax25/af_ax25.c
diff options
context:
space:
mode:
authorKees Cook <kees.cook@canonical.com>2011-01-12 11:34:49 +0300
committerDavid S. Miller <davem@davemloft.net>2011-01-12 11:34:49 +0300
commit5b919f833d9d60588d026ad82d17f17e8872c7a9 (patch)
treebfeb93a19ef9e9f1b88574fb7ccc9a37e2c9ced5 /net/ax25/af_ax25.c
parent343a8d13aae58dec562dbb5c7d48a53e9b847871 (diff)
downloadlinux-5b919f833d9d60588d026ad82d17f17e8872c7a9.tar.xz
net: ax25: fix information leak to userland harder
Commit fe10ae53384e48c51996941b7720ee16995cbcb7 adds a memset() to clear the structure being sent back to userspace, but accidentally used the wrong size. Reported-by: Brad Spengler <spender@grsecurity.net> Signed-off-by: Kees Cook <kees.cook@canonical.com> Cc: stable@kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ax25/af_ax25.c')
-rw-r--r--net/ax25/af_ax25.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c
index bb86d2932394..6da5daeebab7 100644
--- a/net/ax25/af_ax25.c
+++ b/net/ax25/af_ax25.c
@@ -1392,7 +1392,7 @@ static int ax25_getname(struct socket *sock, struct sockaddr *uaddr,
ax25_cb *ax25;
int err = 0;
- memset(fsa, 0, sizeof(fsa));
+ memset(fsa, 0, sizeof(*fsa));
lock_sock(sk);
ax25 = ax25_sk(sk);