Date: Tue, 20 Nov 2001 19:24:11 +0000 From: Brian Somers <brian@freebsd-services.com> To: Matthew Emmerton <matt@gsicomp.on.ca> Cc: Greg Black <gjb@gbch.net>, net@FreeBSD.ORG, brian@freebsd-services.com Subject: Re: ppp(8) crashes 4.2-R when using netgraph(4) module Message-ID: <200111201924.fAKJOBv53857@hak.lan.Awfulhak.org> In-Reply-To: Message from Matthew Emmerton <matt@gsicomp.on.ca> of "Tue, 20 Nov 2001 09:16:35 EST." <Pine.BSF.4.21.0111200913280.33444-100000@xena.gsicomp.on.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Dynamic loading of negraph modules is still broken, and probably won't be > fixed until 5.0 (at least that's what the comments on the zillion PRs > about this problem say.) > > Add 'options NETGRAPH_ETHER' and 'options NEGRAPH_SOCKET' to your kernel > config file and rebuild your kernel. I dynamically load all the modules required for client and server PPPoE on -stable and -current without problems: $ kldstat Id Refs Address Size Name 1 8 0xc0100000 3434b8 kernel 2 1 0xc1408000 c3000 vinum.ko 3 1 0xc14f4000 5000 ip6fw.ko 4 4 0xc161d000 9000 netgraph.ko 5 1 0xc162a000 3000 ng_socket.ko 6 1 0xc162d000 3000 ng_ether.ko 7 1 0xc1632000 5000 ng_pppoe.ko 8 1 0xc164e000 4000 if_tun.ko There is a problem where many of the NIC drivers get confused when netgraph gives them packets before they're IFF_UP'd. ppp now works around the problem by bringing the interface up as required. The originator should try building the latest version of ppp on his 4.2 machine and see if that helps. > -- > Matthew Emmerton || matt@gsicomp.on.ca > GSI Computer Services || http://www.gsicomp.on.ca > > On Tue, 20 Nov 2001, Greg Black wrote: > > > I rebuilt my 4.2-RELEASE kernel that has been in use for ages > > with the following extra lines in the config: > > > > options NETGRAPH #netgraph(4) system > > options NETGRAPH_PPPOE > > > > My earlier attempt to run ppp(8) on my new ADSL modem failed > > because netgraph was not in the kernel. > > > > After building a clean new kernel and installing it with the new > > modules, I tried ppp again and got a panic after a few seconds. > > I've tried it about six times. Most attempts got a panic (and I > > have typed up the console screen from one of them below), but > > some just skipped the panic and rebooted. > > > > On some attempts, we got a little bit of logging from the ppp > > process. Here's one such log: > > > > ------------------------------------------------------------------------ > > Nov 20 15:11:02 Using interface: tun0 > > Nov 20 15:11:02 deflink: Created in closed state > > Nov 20 15:11:02 Command: default: set filter alive 0 deny icmp > > Nov 20 15:11:02 Command: default: set filter alive 1 deny udp src eq 53 > > Nov 20 15:11:02 Command: default: set filter alive 2 deny udp dst eq 53 > > Nov 20 15:11:02 Command: default: set filter alive 3 permit 0 0 > > Nov 20 15:11:02 Command: bne-pi-adsl: set device PPPoE:xl0 > > Nov 20 15:11:02 Command: bne-pi-adsl: set authname ******** > > Nov 20 15:11:02 Command: bne-pi-adsl: set authkey ******** > > Nov 20 15:11:02 Command: bne-pi-adsl: set ifaddr 203.143.238.93 0.0.0.0/0 > > Nov 20 15:11:02 Command: bne-pi-adsl: add default HISADDR > > Nov 20 15:11:02 Command: bne-pi-adsl: set timeout 0 > > Nov 20 15:11:02 Phase: PPP Started (foreground mode). > > Nov 20 15:11:02 Phase: bundle: Establish > > Nov 20 15:11:02 Phase: deflink: closed -> opening > > ------------------------------------------------------------------------ > > > > Each line also had the following data after the date: > > <daemon.info> bambi ppp[95014]: tun0: > > > > Here's the console screen on one panic: > > > > ------------------------------------------------------------------------ > > module_register: module netgraph already exists! > > linker_file_sysinit "netgraph.ko" failed to register! 17 > > > > > > Fatal trap 12: page fault while in kernel mode > > fault virtual address = 0x4 > > fault code = supervisor write, page not present > > instruction pointer = 0x8:0xc01c9e3f > > stack pointer = 0x10:0xd24c2c98 > > frame pointer = 0x10:0xd24c2ca8 > > code segment = base 0x0, limit 0xfffff, type 0x1b > > = DPL 0, pres 1, def32 1, gran 1 > > processor eflags = interrupt enabled, resume, IOPL = 0 > > current process = 77817 (ppp) > > interrupt mask = net > > trap number = 12 > > panic: page fault > > > > syncing disks... 113 7 2 > > done > > Uptime: 5m2s > > Automatic reboot in 15 seconds - press a key [rest elided] > > ------------------------------------------------------------------------ > > > > If anybody can point me in the right direction to solve this, > > I'll be very grateful. My sole goal is to get ppp to talk to my > > ADSL modem, so if there's some other magic I should try, I'm > > happy to do that. -- Brian <brian@freebsd-services.com> <brian@Awfulhak.org> http://www.freebsd-services.com/ <brian@[uk.]FreeBSD.org> Don't _EVER_ lose your sense of humour ! <brian@[uk.]OpenBSD.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111201924.fAKJOBv53857>