Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Apr 2001 17:50:22 -0700 (PDT)
From:      tom@khubla.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/26417: kernel crash using mpd-netgraph
Message-ID:  <200104080050.f380oMJ79070@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         26417
>Category:       kern
>Synopsis:       kernel crash using mpd-netgraph
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 07 18:00:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Tom Everett
>Release:        4.3-RC2, 4.2-Release
>Organization:
>Environment:
FreeBSD milhouse.khubla.com 4.3-RC2 FreeBSD 4.3-RC2 #0: Thu Mar 29 23:53:09 GMT 2001     jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC  i386
>Description:

    I'm attempting to use mpd-netgraph to set up a PPTP server for use by Windows clients.  I am using a fresh install of 4.3-RC2, although the same problem occurs using 4.2-RELEASE.  Just before the link actually comes up, the kernel crashes with a page fault.  It appears as thought the I have included my dmesg output and mpd configs.  The crash has happened when either windows 98 clients or windows 2000 clients have connected.  I have no tried other Windows "platforms".  

    Have I configured mpd wrong, or is this a bug? (sorry for the long mail, I'm trying to include as much useful stuff as possible)

KERNEL CRASH
fault trap 12, page fault in kernel mode
fault virtual address 0x70
fault code supervisor read, page not present
....


OUTPUT OF MPD (bottom couple lines, showing last output before the crash).  Routable IP of windows box has been replaced with XX.XX.XX.XX

 PRIDNS 0.0.0.0
   NAKing with 192.168.0.100
 PRINBNS 0.0.0.0
 SECDNS 0.0.0.0
 SECNBNS 0.0.0.0
[pptp] IPCP: SendConfigRej #7
 PRINBNS 0.0.0.0
 SECDNS 0.0.0.0
 SECNBNS 0.0.0.0
[pptp] IPCP: rec'd Configure Reject #1 link 0 (Req-Sent)
 COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[pptp] IPCP: SendConfigReq #2
 IPADDR 192.168.0.201
[pptp] CCP: rec'd Configure Nak #1 link 0 (Req-Sent)
 MPPC
   0x01000020: MPPE, 40 bit, stateless
[pptp] CCP: SendConfigReq #2
 MPPC
   0x01000020: MPPE, 40 bit, stateless
[pptp] CCP: rec'd Configure Request #8 link 0 (Req-Sent)
 MPPC
   0x01000020: MPPE, 40 bit, stateless
[pptp] CCP: SendConfigAck #8
 MPPC
   0x01000020: MPPE, 40 bit, stateless
[pptp] CCP: state change Req-Sent --> Ack-Sent
[pptp] IPCP: rec'd Configure Request #9 link 0 (Req-Sent)
 IPADDR 0.0.0.0
   NAKing with XX..XX.XX.XX
 PRIDNS 0.0.0.0
   NAKing with 192.168.0.100
[pptp] IPCP: SendConfigNak #9
 IPADDR XX..XX.XX.XX
 PRIDNS 192.168.0.100
[pptp] IPCP: rec'd Configure Ack #2 link 0 (Req-Sent)
 IPADDR 192.168.0.201
[pptp] IPCP: state change Req-Sent --> Ack-Rcvd
[pptp] IPCP: rec'd Configure Request #10 link 0 (Ack-Rcvd)
 IPADDR XX..XX.XX.XX
   XX..XX.XX.XX is OK
 PRIDNS 192.168.0.100
[pptp] IPCP: SendConfigAck #10
 IPADDR XX..XX.XX.XX
 PRIDNS 192.168.0.100
[pptp] IPCP: state change Ack-Rcvd --> Opened
[pptp] IPCP: LayerUp
  192.168.0.201 -> XX..XX.XX.XX
[pptp] IFACE: Up event
[pptp] exec: /sbin/ifconfig ng0 192.168.0.201 XX..XX.XX.XX netmask 0xffffffff -link0
[pptp] no interface to proxy arp on for XX..XX.XX.XX
[pptp] IFACE: Up event
[pptp] IPCP: rec'd Terminate Request #11 link 0 (Opened)
[pptp] IPCP: state change Opened --> Stopping
[pptp] IPCP: SendTerminateAck #3


MPD.CONF
default:
 load pptp
pptp:
 new -i ng0 pptp pptp
 set iface disable on-demand
 set iface enable proxy-arp
 set iface idle 1800
 set bundle disable multilink
 set link yes acfcomp protocomp
 set link no pap chap
 set link enable chap
 set link keep-alive 10 60
 set ipcp yes vjcomp
 set ipcp ranges 192.168.0.201/32 192.168.0.202/32
 set ipcp dns 192.168.0.100
# set ipcp nbns 192.168.1.4
#
# The five lines below enable Microsoft Point-to-Point encryption
# (MPPE) using the ng_mppc(8) netgraph node type.
#
 set bundle enable compression
 set ccp yes mppc
 set ccp yes mpp-e40
 set ccp yes mpp-e128
 set ccp yes mpp-stateless


MPD.LINKS
ptp:
        set link type pptp
        set pptp self <OUTSIDE NETWORK ROUTABLE IP ADDRESS>
        set pptp enable incoming
        set pptp disable originate

MPD.SECRET
username  "password"  <REMOTE ROUTABLE IP ADDRESS>

DMESG
Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
 The Regents of the University of California. All rights reserved.
FreeBSD 4.3-RC2 #0: Thu Mar 29 23:53:09 GMT 2001
    jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium/P54C (75.17-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x524  Stepping = 4
  Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory  = 33554432 (32768K bytes)
avail memory = 28409856 (27744K bytes)
bios32: Bad BIOS32 Service Directory
Preloaded elf kernel "kernel" at 0xc044c000.
Intel Pentium detected, installing workaround for F00F bug
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0 on motherboard
pci0: <PCI bus> on pcib0
pci0: <unknown card> (vendor=0x0e11, dev=0x1000) at 0.0 irq 64
pci0: <Cirrus Logic GD5434 SVGA controller> at 10.0 irq 11
rl0: <Accton MPX 5030/5038 10/100BaseTX> port 0x1000-0x10ff mem 0x41000000-0x410000ff irq 11 at device 13.0 on pci0
rl0: Ethernet address: 00:e0:29:85:c2:7e
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl1: <Accton MPX 5030/5038 10/100BaseTX> port 0x1400-0x14ff mem 0x41080000-0x410800ff irq 11 at device 14.0 on pci0
rl1: Ethernet address: 00:e0:29:85:ba:5d
miibus1: <MII bus> on rl1
rlphy1: <RealTek internal media interface> on miibus1
rlphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <PCI to ISA bridge (vendor=0e11 device=0002)> at device 15.0 on pci0
isa0: <ISA bus> on isab0
isa0: too many dependant configs (8)
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250
sio1: configured irq 3 not in bitmap of probed irqs 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sio4: configured irq 3 not in bitmap of probed irqs 0
ad0: 402MB <QUANTUM LPS420A-2> [1010/16/51] at ata0-master BIOSPIO
ad3: 2090MB <Maxtor 82187 A5> [4248/16/63] at ata1-slave BIOSPIO
acd0: CDROM <CD-912E/ATK> at ata1-master using BIOSPIO
Mounting root from ufs:/dev/ad0s1a

>How-To-Repeat:
Attempt to connect from windows client to freebsd pptp server (mpd-netgraph).  Configuration used is included above.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104080050.f380oMJ79070>