Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2005 02:33:56 +0800
From:      Xin LI <delphij@gmail.com>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        Csaba Henk <csaba-ml@creo.hu>, freebsd-current@freebsd.org
Subject:   Re: Easy DoS
Message-ID:  <a78074950512161033r58ca7c87ycfb97e0b38d64756@mail.gmail.com>
In-Reply-To: <20051216151016.GE84442@deviant.zoral.local>
References:  <20051216133448.GA10382@beastie.creo.hu> <20051216151016.GE84442@deviant.zoral.local>

index | next in thread | previous in thread | raw e-mail

Hi,

On 12/16/05, Kostik Belousov <kostikbel@gmail.com> wrote:
> Sure, it is a bug :).
>
> Please, try the following patch (against 7-CURRENT,
> shall work for 6-STABLE too):
>
> --- src-pristine/sys/kern/sys_pipe.c    Mon Jul 11 11:33:58 2005
> +++ src-quotas/sys/kern/sys_pipe.c      Fri Dec 16 17:03:01 2005
> @@ -1176,6 +1176,8 @@
>                                        ("Pipe buffer overflow"));
>                        }
>                        pipeunlock(wpipe);
> +                       if (error != 0)
> +                               break;
>                } else {
>                        /*
>                         * If the "read-side" has been blocked, wake it up now.

Patch looks good so I have committed it as sys/kern/sys_pipe.c,v
1.185.  Thanks for the submission!

Cheers,
--
Xin LI <delphij@delphij.net> http://www.delphij.net

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a78074950512161033r58ca7c87ycfb97e0b38d64756>