Re: Easy DoS

From: Xin LI <delphij_at_gmail.com>
Date: Sat, 17 Dec 2005 02:33:56 +0800
Hi,

On 12/16/05, Kostik Belousov <kostikbel_at_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
> _at__at_ -1176,6 +1176,8 _at__at_
>                                        ("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_at_delphij.net> http://www.delphij.net
Received on Fri Dec 16 2005 - 17:34:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:49 UTC