diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-08-06 03:34:06 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-08 20:17:44 -0700 |
commit | ee1c46ccd19074a06393567644144287458e8337 (patch) | |
tree | 6f6b2812e3dd68bed0d02b9c89ef7c7abd7af359 /net/rose/af_rose.c | |
parent | 8338941200d9188e3c866dd16cc2848754947895 (diff) |
rose: Fix rose_getname() leak
commit 17ac2e9c58b69a1e25460a568eae1b0dc0188c25 upstream.
rose_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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/rose/af_rose.c')
-rw-r--r-- | net/rose/af_rose.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index c06236192024..f132243abcc0 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c @@ -957,6 +957,7 @@ static int rose_getname(struct socket *sock, struct sockaddr *uaddr, struct rose_sock *rose = rose_sk(sk); int n; + memset(srose, 0, sizeof(*srose)); if (peer != 0) { if (sk->sk_state != TCP_ESTABLISHED) return -ENOTCONN; |