All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Qemu-trivial] [PATCH] virtfs-proxy-helper: fix call to accept
       [not found] <1397929197-21234-1-git-send-email-vapier@gentoo.org>
@ 2014-04-19 21:00 ` Paolo Bonzini
  2014-04-27  9:11   ` Michael Tokarev
  0 siblings, 1 reply; 2+ messages in thread
From: Paolo Bonzini @ 2014-04-19 21:00 UTC (permalink / raw)
  To: Mike Frysinger, qemu-devel; +Cc: qemu-trivial, aneesh.kumar, Tim Comer

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>


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-trivial] [PATCH] virtfs-proxy-helper: fix call to accept
  2014-04-19 21:00 ` [Qemu-trivial] [PATCH] virtfs-proxy-helper: fix call to accept Paolo Bonzini
@ 2014-04-27  9:11   ` Michael Tokarev
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Tokarev @ 2014-04-27  9:11 UTC (permalink / raw)
  To: Paolo Bonzini, Mike Frysinger, qemu-devel
  Cc: qemu-trivial, aneesh.kumar, Tim Comer

20.04.2014 01:00, Paolo Bonzini wrote:
> 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.

Applied to -trivial, thanks!

/mjt


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-27  9:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1397929197-21234-1-git-send-email-vapier@gentoo.org>
2014-04-19 21:00 ` [Qemu-trivial] [PATCH] virtfs-proxy-helper: fix call to accept Paolo Bonzini
2014-04-27  9:11   ` Michael Tokarev

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.