lkml.org 
[lkml]   [2008]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectre /drivers/char/n_tty.c drops characters
Hi all,
It looks like the it was the intention that n_tty.c
would not drop characters in older kernels around 2.6.15 in the
n_tty layer if N_TTY_BUF_SIZE was 4096 bytes
as TTY_FLIPBUF_SIZE was only 512 bytes.

Now since 2.6.15 or so tty_buffer_alloc in tty_io.c is capible
of allocating a tty buffer of over 64k I believe this
means that the n_tty_receive_buf will overflow if tty_buffer_alloc
throws a buffer of over 4k to n_tty_receive_buf.

Any comments?

--
best regards,
D.J. Barrow


\
 
 \ /
  Last update: 2008-09-03 12:13    [W:0.164 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site