From: Paolo Bonzini <pbonzini@redhat.com>
To: Mike Frysinger <vapier@gentoo.org>, qemu-devel@nongnu.org
Cc: qemu-trivial <qemu-trivial@nongnu.org>,
aneesh.kumar@linux.vnet.ibm.com, Tim Comer <comer0@gmail.com>
Subject: Re: [Qemu-trivial] [PATCH] virtfs-proxy-helper: fix call to accept
Date: Sat, 19 Apr 2014 17:00:34 -0400 [thread overview]
Message-ID: <5352E3F2.4000209@redhat.com> (raw)
In-Reply-To: <1397929197-21234-1-git-send-email-vapier@gentoo.org>
Il 19/04/2014 13:39, Mike Frysinger ha scritto:
> From: Tim Comer <comer0@gmail.com>
>
> The current code calls accept() without initializing the size parameter
> which means the accept call might write too much to the stack.
>
> URL: https://bugs.gentoo.org/486714
> Signed-off-by: Tim Comer <comer0@gmail.com>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> fsdev/virtfs-proxy-helper.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c
> index bfecb87..cd291d3 100644
> --- a/fsdev/virtfs-proxy-helper.c
> +++ b/fsdev/virtfs-proxy-helper.c
> @@ -760,6 +760,7 @@ static int proxy_socket(const char *path, uid_t uid, gid_t gid)
> return -1;
> }
>
> + size = sizeof(qemu);
> client = accept(sock, (struct sockaddr *)&qemu, &size);
> if (client < 0) {
> do_perror("accept");
>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
next parent reply other threads:[~2014-04-19 21:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1397929197-21234-1-git-send-email-vapier@gentoo.org>
2014-04-19 21:00 ` Paolo Bonzini [this message]
2014-04-27 9:11 ` [Qemu-trivial] [PATCH] virtfs-proxy-helper: fix call to accept Michael Tokarev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5352E3F2.4000209@redhat.com \
--to=pbonzini@redhat.com \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=comer0@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=vapier@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.