]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Fix tty layer DoS and comment relevant code
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Sun, 27 Aug 2006 08:24:02 +0000 (01:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 27 Aug 2006 18:01:34 +0000 (11:01 -0700)
commitf70a31f0c08c36f0f7ce5eb0ddff8e34934a70f5
tree70c1f1cb8325fe4801b952346bd2ef79d08882b5
parent8dbe4ec9bddb90064fd4b2e2d2879528a8bb0999
[PATCH] Fix tty layer DoS and comment relevant code

Unlike the other tty comment patch this one has code changes.  Specifically
it limits the queue size for a tty to 64K characters (128Kbytes) worst case
even if the tty is ignoring tty->throttle.  This is because certain drivers
don't honour the throttle value correctly, although it is a useful
safeguard anyway.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/tty_io.c
include/linux/tty.h