Re: 2.1.98 Oops with PPP

Hartwig Felger (hgfelger@vossnet.de)
Thu, 30 Apr 1998 14:40:04 +0200 (CEST)


-----BEGIN PGP SIGNED MESSAGE-----

Salut Shawn,
On Wed, 29 Apr 1998 riffraff@kdi.com wrote:
> Unable to handle kernel NULL pointer dereference at virtual address 0000000c
> current->tss.cr3 = 00310000, <A8>r3 = 00310000
> *pde = 00000000
> Oops: 0000
> CPU: 0
> EIP: 0010:[<c01834db>]
I posted a hack, to work around this problem. I posted it before to this
linux-ppp-list, but it has not showed up till now (maybe it is a
problem, because I crossposted it???).
So I post it again here:
- -------------------------o<-------------

- From hgfelger@vossnet.de Thu Apr 30 14:36:49 1998
Date: Tue, 28 Apr 1998 22:41:59 +0200 (CEST)
From: Hartwig Felger <hgfelger@vossnet.de>
To: PPP-Linux-List <linux-ppp@vger.rutgers.edu>
Cc: isdn4linux-Mialinglist <isdn4linux@hub-wue.franken.de>
Subject: Hack: IPX, Linux2.1 and async. PPP, ipxd

Salut,
I reported about the crash...
The problem is, that there is a methode missing in the ppp-module:
- ->hard_header
It triggered a call via NULL-pointer. My workaround is a one liner.
ATTENTION: it's a dirty hack!
- ------------------o<----------
- --- linux/net/ethernet/pe2.c.old Tue Apr 28 18:47:34 1998
+++ linux/net/ethernet/pe2.c Tue Apr 28 18:48:22 1998
@@ -11,7 +11,8 @@
struct device *dev = skb->dev;

skb->protocol = htons (ETH_P_IPX);
- - dev->hard_header(skb, dev, ETH_P_IPX, dest_node, NULL, skb->len);
+ if(dev->hard_header != NULL)
+ dev->hard_header(skb, dev, ETH_P_IPX, dest_node, NULL, skb->len);
}

struct datalink_proto *
- --------------------------------->o-----------
How can I put this in the schedull-list for the linux2.1-Todo?

Thanks to Karsten Keil, for supporting me, in telling me where to
search for the kernel-bug ;-)

1024/7A5EADED Hartwig Felger <hgfelger@vossnet.de>
pgp-Key fingerprint = 2F 3B 34 10 00 B7 FE 10 CE 84 E2 56 1C B0 3E 07
768/CA2159D9 Hartwig Felger <hgfelger@trick.informatik.uni-stuttgart.de>
pgp-Key fingerprint = 18 49 5E 6E 4E 47 3D F5 28 3E 11 C9 05 26 F3 46
- ------------------------->o-------------

1024/7A5EADED Hartwig Felger <hgfelger@vossnet.de>
pgp-Key fingerprint = 2F 3B 34 10 00 B7 FE 10 CE 84 E2 56 1C B0 3E 07
768/CA2159D9 Hartwig Felger <hgfelger@trick.informatik.uni-stuttgart.de>
pgp-Key fingerprint = 18 49 5E 6E 4E 47 3D F5 28 3E 11 C9 05 26 F3 46

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: latin1
Comment: Requires PGP version 2.6 or later.

iQCVAwUBNUhxKeg8bRR6Xq3tAQFr7wP9EwsBo5wESRnJTA6d9eaYAtXY6QJmPFeh
2oFQy0LVQ39/J5WGdb/8y4Qirco6aqKlrjhxTPPIqFMK0bioVJelJWvITunnGdtv
ZQMWmhia5Hk7UXGYEoqvP1X8jCfN5dolpFP1FLjAHBo8z1xnyYkNCOAjNgki1G9q
bX1ErvbVNxI=
=Go0W
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu