Re: buffer overflows in the tty flip buffer in 2.6.17

2007-02-19 Thread Alan
> But how it is done in 2.6.17 linux kernel? I did check this "overflow code" > in new tty driver's code. This code looks like just removed. But somehow > overflow in the tty buffer must be kept. The new tty layer manages memory allocation dynamically and handles overflows itself. Just throw dat

Re: buffer overflows in the tty flip buffer in 2.6.17

2007-02-17 Thread Lennart Sorensen
On Sat, Feb 17, 2007 at 06:52:03PM +0300, Mockern wrote: > Thanx for your respond. > > Could you please inform me what patches exactly you have grabbed? If you see the thread "Re: Strange problem with tty layer", which I just posted a final update too, it has the list of linux-2.6 git commits th

Re: buffer overflows in the tty flip buffer in 2.6.17

2007-02-17 Thread Mockern
Thanx for your respond. Could you please inform me what patches exactly you have grabbed? >On Sat, Feb 17, 2007 at 03:29:31PM +0300, Mockern wrote: >> When data is received from the hardware, it needs to be placed into the tty >> device's flip buffer. This can be done with the following bit of

Re: buffer overflows in the tty flip buffer in 2.6.17

2007-02-17 Thread Lennart Sorensen
On Sat, Feb 17, 2007 at 03:29:31PM +0300, Mockern wrote: > When data is received from the hardware, it needs to be placed into the tty > device's flip buffer. This can be done with the following bit of code: > > for (i = 0; i < data_size; ++i) { > if (tty->flip.count >= TTY_FLIPBUF_SIZE)

Re: buffer overflows in the tty flip buffer in 2.6.17

2007-02-17 Thread Jiri Slaby
Mockern napsal(a): When data is received from the hardware, it needs to be placed into the tty device's flip buffer. This can be done with the following bit of code: for (i = 0; i < data_size; ++i) { if (tty->flip.count >= TTY_FLIPBUF_SIZE) tty_flip_buffer_push(tty);