Thread (7 messages) 7 messages, 3 authors, 2009-07-13

Re: [PATCH] NET: Fix locking issues in PPP, 6pack, mkiss and strip line disciplines.

From: Alan Cox <hidden>
Date: 2009-07-13 08:19:28
Also in: linux-hams

On Sun, 12 Jul 2009 21:07:30 -0700 (PDT)
David Miller [off-list ref] wrote:
From: Alan Cox <redacted>
Date: Sun, 12 Jul 2009 23:48:54 +0100
quoted
quoted
The issue was, that the locking code in mkiss was assuming it was only
ever being called in process or bh context.  Fixed by converting the
involved locking code to use irq-safe locks.
Which historically of course was correct until the networking layer
changed behaviour some years ago.
Networking layer?  Surely you mean the TTY layer or USB because I
don't see anything networking in his traces :-)
No I mean the network layer.


Historically it went

		network bh
			transmit packet
				ldisc layer
					tty write method

and lots of code assumed that. Today the network bits get kicked off at
IRQ level.

Most tty stuff now handles it, some of it has been broken with ppp for
ages but its been so long its hardly a regression any more and its dumb
stuff like jtag consoles and i2c serial ports that break.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help