From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22211 invoked from network); 18 Dec 1998 12:17:43 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 18 Dec 1998 12:17:43 -0000 Received: from zippy.spods.dcs.kcl.ac.uk (colgate@zippy.spods.dcs.kcl.ac.uk [137.73.8.13]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id HAA20328 for ; Fri, 18 Dec 1998 07:07:24 -0500 Received: from localhost (colgate@localhost) by zippy.spods.dcs.kcl.ac.uk (8.8.3/8.6.12) with SMTP id MAA32680 for ; Fri, 18 Dec 1998 12:08:57 GMT Date: Fri, 18 Dec 1998 12:08:57 +0000 (GMT) From: Tristan Colgate To: axp-list@redhat.com Subject: RE: 2.1.130 and pppd In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII The latest Alan Cox patch for 132 mentions a fix for a panic in the ppp code... this will hopefully fix the problem. Tristan 'Minty' Colgate ================================ PGP 5.0 key available on request ================================ 'We are the music makers, the dreamers of the dream...' -Willy Wonka On Mon, 14 Dec 1998, B. James Phillippe wrote: > On Mon, 14 Dec 1998, Vignaud Jean-Baptiste wrote: > > > > From: B. James Phillippe [mailto:bryan@terran.org] > ... > > > YES. There IS a fatal bug in the 2.1 kernel with networking. I have > > > observed several Kernel panics, all from skput:over. All but one were > > > dev:ppp0 (the oddball was eth0). The address is consistant across each > > > panic (even the oddball for eth0) so this should not be hard to find. > > > Without a -g compiled kernel, the closest I could see was > > > rcv_proto_vjc_uncomp. However, I am rebuilding a 2.1.131 with -g and will > > > try to nail this bastard tonight. It's already caused me major grief and > > > some filesystem damage. > > > > I'v observed exactly the same behaviour on my sx164, the ppp compressor > > was provocating kernel panic in rcv_proto_vjc_uncomp. To continue using > > pppd you have to specify the "novj" option to the pppd... > > Yes, I have since found the exact line where the Panic occurs (with the > symbol kernel and gdb). I put in a new check to catch the problem and give > me more information. It has just succeeded this evening, after nearly two > days of uptime. Here is the patch showing my test code (this is for > debugging only, but has the side-effect of avoiding the panic): > > --- drivers/net/ppp.c.orig Mon Dec 14 00:18:06 1998 > +++ drivers/net/ppp.c Sat Dec 12 01:30:37 1998 > @@ -2047,6 +2047,11 @@ > "ppp: error in VJ decompression\n"); > return 0; > } > + /*BP*/if( skb->tail+(new_count+PPP_HDRLEN-skb->len) > skb->end ) { > + printk( KERN_ERR "Avoiding PPP Panic! t:%p,e:%p c:%d,l:%d\n", > + skb->tail, skb->end, new_count, skb->len ); > + return 0; > + }/*BP*/ > skb_put(skb, new_count + PPP_HDRLEN - skb->len); > return rcv_proto_ip(ppp, skb); > } > > And here it is in action: > > Dec 13 23:54:25 earth kernel: Avoiding PPP Panic! t:fffffc0000a1bdce,e:fffffc0000a1be70 c:0,l:1470 > > I have not had time to look further. It is possible there is a bug other > than just trusting the return value of the VJ decompression algorithm. > I'll post here and linux-kernel when I have more info. > > cheers, > -bp > -- > B. James Phillippe . bryan@terran.org > Linux Engineer/Admin . http://www.terran.org/~bryan > Member since 1.1.59 . finger:bryan@earth.terran.org > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com >