Re: 8250 serial console fixes -- issue

From: Russell King
Date: Tue Feb 07 2006 - 12:41:24 EST


On Tue, Feb 07, 2006 at 10:18:04AM +0100, Pavel Machek wrote:
> I'm afraid that auditing kernel to never ever print \n from user will
> be quite a long job. If I get
>
> Killed process 1234
> System Halted
> due to OOM
>
> I am going to figure it out no problem, but modems do not have that
> kind of abilities...

In that case the problem is unsolvable. What if I named a process

\n+++ATH0\n

? Oh dear, your modem just hung up. Or maybe:

\n+++AT&C0\n

and now your modem always sets DCD active, so even with detection of DCD
in the kernel, I can now talk to it via process names after I've forced
it to disconnect.

And yes, there's modems out there which accept that and act on the '+++'
immediately - no pause after '+++' required.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 Serial core
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/