[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101108140938.06b7ee65@lxorguk.ukuu.org.uk>
Date: Mon, 8 Nov 2010 14:09:38 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Jiri Olsa <jolsa@...hat.com>
Cc: gregkh@...e.de, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] tty: prevent DOS in the flush_to_ldisc
On Mon, 8 Nov 2010 14:48:41 +0100
Jiri Olsa <jolsa@...hat.com> wrote:
> hi, any feedback?
Don't think I saw this before.
> > The attached patch (based on -next tree) fixes this by adding threshold
> > for processed data. When the threshold is reached, the current work is
> > rescheduled, so another could run.
> >
> > The threshold is set to the tty buffer maximum size.
That is an n_tty concept really - most other ldiscs simply eat stuff as
it hits them. It's also something we've got some evidence may need to
become a variable, but would still make sense.
Would it be simpler to remember the queue end before the first iteration
and not go past the queue end as it was at the entry to flush_to_ldisc.
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists