Re: PPP is not SMP safe in 2.2.X (fix)

From: Fabrice Bellet (Fabrice.Bellet@creatis.insa-lyon.fr)
Date: Mon Feb 21 2000 - 05:53:16 EST


Hello,

I use PPP on an SMP box to get an xDSL link up. So PPP uses
a pty instead of a serial port to write data to. A userland
daemon -- pptp -- reads the pty, does some hdlc-to-gre conversion,
and send the result to the xDSL modem directly.

Everything goes fine on uni-processor. On SMP, pptp often gets
confused when dealing with outgoing packets coming from masqueraded hosts
(the SMP box acts as a firewall in my configuration).

The data that pptp reads from the pty have bad FCS, and the xDSL link
promptly crashes. I assume that this problem comes from a race condition
in the ppp code or the masquerading code (but both ipchains et netfilter
trigger the bug).

Paul Mackerras's and Oleg's patches didn't solve the problem : I
also tried to extend the fix in ldisc calling from serial.c to
pty.c without more success.

Suggestions to fix this behaviour are welcome :-)

Regards,
Fabrice

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:27 EST