Re: 8250 serial console fixes -- issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi Russell,

Thanks for your response.

> A normal user can't produce arbitarily formatted
> kernel messages

They don't need to provide an entire message, just a
AT string (a vector which a user could control
could be a volume label on removable media).

> You'd rather we threw away these messages?

When option 'r' is set, yes.  Because Data Carrier Detect
is not asserted there can't be anything that is going to
read the messages.  All we are doing is taking a long
time to drop each character off the end of the serial
cable.

Since the kernel takes a very long time to boot with
the 'r' option and no attached console the current
situation isn't correct.

There's one very nasty practical effect.  Hayes modems
hang up if any character is typed during the interval
between off-hook and Data Carrier Detect (ie, the negotiation
period where the speaker outputs the tones).  If you're
continually writing console messages (say from a failing
disk) then you can't successfully dial in to read the
messages to find out why the machine is hosed.

It'd help if you talked to the right person - I've been looking after
the serial layer since 2.5.something.

See my e-mail to you of 2003-10-21, which started:

  Hi Russell,

  I have ported the patch which fixes all kernel bugs
  reported to me as the maintainer of the "Remote Serial
  Console HOWTO" from 2.4 to Linus's BitKeeper (2.6.0-test8).

and contained the patch at

  <http://www.aarnet.edu.au/~gdt/patch/console/serial-console.patch>

The previous patch of 2002-10-13 gave a much longer description
of the bugs and fixes:

  [PATCH] 0/3 Fix serial console flow control
  <http://www.ussg.iu.edu/hypermail/linux/kernel/0210.1/1790.html>

  [PATCH] 1/3 Fix serial console flow control, serial.c
  <http://www.ussg.iu.edu/hypermail/linux/kernel/0210.1/1791.html>

As I said earlier I'm happy to once more forward-port the
patch, test it and present it using the current version control
system as long as the effort is worth doing.

Regards,
Glen

--
 Glen Turner         Tel: (08) 8303 3936 or +61 8 8303 3936
 Australia's Academic & Research Network  www.aarnet.edu.au
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux