linux-ppp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ppp_async kfree patch
@ 2007-08-14 18:23 Gilles Espinasse
  2007-08-15  7:00 ` James Cameron
  2007-08-24  2:24 ` James Cameron
  0 siblings, 2 replies; 3+ messages in thread
From: Gilles Espinasse @ 2007-08-14 18:23 UTC (permalink / raw)
  To: linux-ppp

It has been reported in this thread
https://sourceforge.net/tracker/index.php?funcÞtail&aid\x1678777&group_id@604&atidB8519

that a one line patch on ppp_async avoid crash and reboot

This happen with hight speed connection and usbserial using
http://www.junxion.com/opensource/linux_highspeed_usbserial.html patch

Here is the patch against 2.4.34 a few lines after  We have finished the
packet.
Code is the same on 2.6.22 and look not have been changed until 2.6.23.rc3

--- linux-2.4.34/drivers/net/ppp_async.c.old 2007-06-30 17:56:40.000000000
-0700
+++ linux-2.4.34/drivers/net/ppp_async.c 2007-06-30 17:57:07.000000000
-0700
@@ -624,7 +624,7 @@
  *buf++ = PPP_FLAG;
  ap->olim = buf;

- kfree_skb(ap->tpkt);
+ dev_kfree_skb_any(ap->tpkt);
  ap->tpkt = 0;
  return 1;
 }

Comment welcome.

Gilles


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ppp_async kfree patch
  2007-08-14 18:23 ppp_async kfree patch Gilles Espinasse
@ 2007-08-15  7:00 ` James Cameron
  2007-08-24  2:24 ` James Cameron
  1 sibling, 0 replies; 3+ messages in thread
From: James Cameron @ 2007-08-15  7:00 UTC (permalink / raw)
  To: linux-ppp

G'day Gilles,

I'll test this patch.

I've been having almost daily hangs or loss of receive data on a system
that has a USB HSDPA modem using the airprime driver, with an instance
of PPP for the modem, an instance of PPP used by PPTP, and one for an
SSH over PPP tunnel.  So the probability of the event is increased.

-- 
James Cameron                         http://quozl.netrek.org/
HP Open Source, Volunteer             http://opensource.hp.com/
PPTP Client Project, Release Engineer http://pptpclient.sourceforge.net/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ppp_async kfree patch
  2007-08-14 18:23 ppp_async kfree patch Gilles Espinasse
  2007-08-15  7:00 ` James Cameron
@ 2007-08-24  2:24 ` James Cameron
  1 sibling, 0 replies; 3+ messages in thread
From: James Cameron @ 2007-08-24  2:24 UTC (permalink / raw)
  To: linux-ppp

This patch has fixed the kernel hangs I had been having on a system
using three instances of pppd a USB HSDPA modem.

In the situations where the hang would normally occur, what I now see is
disconnection and reconnection of the USB device, apparently triggered
by electrical noise or RF interference.

I presume that what was happening before this patch was that the
disconnection of the USB device caused a deadlock, associated with this
area of ppp_async.

-- 
James Cameron                         http://quozl.netrek.org/
HP Open Source, Volunteer             http://opensource.hp.com/
PPTP Client Project, Release Engineer http://pptpclient.sourceforge.net/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-24  2:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-14 18:23 ppp_async kfree patch Gilles Espinasse
2007-08-15  7:00 ` James Cameron
2007-08-24  2:24 ` James Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).