diff options
author | Kees Cook <kees.cook@canonical.com> | 2011-01-12 00:34:49 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-12 00:34:49 -0800 |
commit | 5b919f833d9d60588d026ad82d17f17e8872c7a9 (patch) | |
tree | bfeb93a19ef9e9f1b88574fb7ccc9a37e2c9ced5 /net/ax25 | |
parent | 343a8d13aae58dec562dbb5c7d48a53e9b847871 (diff) | |
download | linux-exynos-5b919f833d9d60588d026ad82d17f17e8872c7a9.tar.gz linux-exynos-5b919f833d9d60588d026ad82d17f17e8872c7a9.tar.bz2 linux-exynos-5b919f833d9d60588d026ad82d17f17e8872c7a9.zip |
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')
-rw-r--r-- | net/ax25/af_ax25.c | 2 |
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); |