Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

system/2999: kernel panic using ppp

From: <jm.fandino(at)fadesa.es>
Date: Thu Nov 28 2002 - 07:13:36 EST


>Number: 2999
>Category: system
>Synopsis: userland ppp don't free interfaces
>Confidential: no
Fadesa
>Environment:

	System      : OpenBSD 3.2
	Architecture: OpenBSD.i386
	Machine     : i386

>Description:

  When using userland ppp the kernel gets confused about the state of the the tun interfaces and don't free them.

I'm using over 60 ppp sessions and when this happen the only solution is reboot the machine. Don't worry what I do in the ppp.conf file the behaviour is the same.

the logs file show me this text:

Nov 28 12:59:31 agua ppp[10546]: tun35: Warning: iface add: ioctl(SIOCAIFADDR, 172.16.68.6 -> 172.16.67.6): File exists
Nov 28 12:59:31 agua ppp[10546]: tun35: Error: ipcp_InterfaceUp: unable to set ip address
Nov 28 12:59:31 agua ppp[10546]: tun35: Warning: deflink: tcsetattr: Unable to restore device settings
 

and my ppp.conf:
root@agua:~> cat /etc/ppp/ppp.conf

default:
 ##set log Phase Chat LCP IPCP CCP tun command +lcp +ccp +ipcp  set log -Phase timer tun
 set stopped 20 20
 ##set device /dev/cua01
 ##set speed 115200
 set timeout 0
 enable deflate
 accept deflate
 enable deflate24
 accept deflate24
 deny lqr
 disable lqr
 enable pred1
 accept pred1
 ##deny ipv6cp
 disable ipv6cp
 allow direct
 set lcpretry 5 5 5
 set ipcpretry 5 3 3
 # desabilitamos callbak
 set callback
 # no detectar carrier
 set cd off
 set ctsrts off
 set crtscts off
 set choked 30
 ##set openmode active 5
 set urgent tcp -21 -22 -513 -514 -543 -544  set accmap 000a0000
 set parity none

        /------/

OpenBSD 3.2 (NUCLEO) #0: Tue Nov 12 15:09:58 CET 2002

Do you need help?X

    root@agua:/usr/src/sys/arch/i386/compile/NUCLEO cpu0: Intel Pentium 4 ("GenuineIntel" 686-class) 1.72 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SIMD real mem = 536440832 (523868K)
avail mem = 333348864 (325536K)
using 4278 buffers containing 188485632 bytes (184068K) of memory mainbus0 (root)
bios0 at mainbus0: AT/286+(3d) BIOS, date 04/30/02, BIOS32 rev. 0 @ 0xf1380 apm0 at bios0: Power Management spec V1.2 (BIOS mgmt disabled) apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x1bb2

pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xf1af0/192 (10 entries)
pcibios0: PCI Interrupt Router at 000:02:0 ("SIS 85C503 ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus

bios0: ROM list: 0xc0000/0xc800
pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 vendor "SIS", unknown product 0x646 rev 0x00 ppb0 at pci0 dev 1 function 0 "SIS 86C201 Host-AGP" rev 0x00 pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Nvidia GeForce2 MX 100" rev 0xb2 wsdisplay0 at vga1: console (80x25, vt100 emulation) wsdisplay0: screen 1-7 added (80x25, vt100 emulation) pcib0 at pci0 dev 2 function 0 vendor "SIS", unknown product 0x961 rev 0x10 pciide0 at pci0 dev 2 function 5 "SIS 5513 EIDE" rev 0xd0: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <IC35L040AVVA07-0> wd0: 16-sector PIO, LBA, 39266MB, 16383 cyl, 16 head, 63 sec, 80418240 sectors wd1 at pciide0 channel 0 drive 1: <IC35L040AVVA07-0> wd1: 16-sector PIO, LBA, 39266MB, 16383 cyl, 16 head, 63 sec, 80418240 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 wd2 at pciide0 channel 1 drive 0: <IC35L040AVVN07-0> wd2: 16-sector PIO, LBA, 39266MB, 16383 cyl, 16 head, 63 sec, 80418240 sectors atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <LG, CD-ROM CRD-8522B, 2.01> SCSI0 5/cdrom removable wd2(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 cd0(pciide0:1:1): using PIO mode 4, DMA mode 2 xl0 at pci0 dev 11 function 0 "3Com 3cSOHO-TX" rev 0x30: irq 10 address 00:04:76:eb:68:ef exphy0 at xl0 phy 24: 3Com internal media interface isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec biomask c040 netmask c440 ttymask d442
pctr: user-level cycle counter enabled
dkcsum: wd0 matched BIOS disk 80
dkcsum: wd1 matched BIOS disk 81
dkcsum: wd2 matched BIOS disk 82

root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
Automatic boot in progress: starting file system checks.
/dev/rwd0a: file system is clean; not checking
/dev/rwd1d: file system is clean; not checking
/dev/rwd0f: file system is clean; not checking
/dev/rwd1e: file system is clean; not checking
/dev/rwd0d: file system is clean; not checking
/dev/rwd0g: file system is clean; not checking
/dev/rwd0e: file system is clean; not checking
setting tty flags
ddb.console: 0 -> 1
starting network
add host 195.55.127.242: gateway 127.0.0.1 starting system logger
starting rpc daemons:.
savecore: no core dump
checking quotas: done.
Nov 26 14:14:13 agua /bsd: stray interrupt 7 building ps databases: kvm dev.
clearing /tmp
starting pre-securelevel daemons:.
setting kernel security level: kern.securelevel: 0 -> 1 preserving editor files
creating runtime link editor directory cache. starting network daemons: sendmail inetd sshd. keyboard mapping set to es
starting local daemons:.
add net 192.168.67.0: gateway 195.55.55.4 add net default: gateway 192.168.67.227
add host 10.20.3.16: gateway 195.55.55.5 arrancando named
arrancando plug-gw
arrancando plug-gw2
arrancando squid
arrancando rsync
arrancando proftpd
arrancando cfenvd
arrancando cfservd
arrancando popwatch
arrancando altq
standard daemons: cron.
Tue Nov 26 14:14:36 CET 2002

OpenBSD/i386 (agua) (console)

        /----/

command> grep '^[^#]' GENERIC

option          NTP             # hooks supporting the Network Time Protocol
option          DDB             # in-kernel debugger
makeoptions     DEBUG="-g"      # compile full symbol table
option          DIAGNOSTIC      # internal consistency checks
option          KTRACE          # system call tracing, a la ktrace(1)
option          KMEMSTATS       # collect malloc(9) statistics
option          PTRACE          # ptrace(2) system call
option          CRYPTO          # Cryptographic framework
option          SYSVMSG         # System V-like message queues
option          SYSVSEM         # System V-like semaphores
option          SYSVSHM         # System V-like memory sharing
option          UVM_SWAP_ENCRYPT# support encryption of pages going to swap
option          COMPAT_25       # 2.5,
Do you need more help?X
option COMPAT_43 # and 4.3BSD option LKM # loadable kernel modules option FFS # UFS option FFS_SOFTUPDATES # Soft updates option QUOTA # UFS quotas option EXT2FS # Second Extended Filesystem option MFS # memory file system option TCP_SACK # Selective Acknowledgements for TCP option NFSCLIENT # Network File System client option NFSSERVER # Network File System server option CD9660 # ISO 9660 + Rock Ridge file system option MSDOSFS # MS-DOS file system option FDESC # /dev/fd option FIFO # FIFOs; RECOMMENDED option KERNFS # /kern option NULLFS # loopback file system option PORTAL # dynamically created filesystem objects option PROCFS # /proc option UMAPFS # NULLFS + uid and gid remapping option UNION # union file system option INET # IP + ICMP + TCP + UDP option ALTQ # ALTQ base option PULLDOWN_TEST # use m_pulldown for IPv6 packet parsing option PPP_BSDCOMP # PPP BSD compression option PPP_DEFLATE pseudo-device pf 1 # packet filter pseudo-device pflog 1 # pf log if pseudo-device loop 2 # network loopback pseudo-device bpfilter 8 # packet filter pseudo-device ppp 100 # PPP pseudo-device tun 100 # network tunneling over tty pseudo-device pty 128 # pseudo-terminals pseudo-device tb 1 # tablet line discipline
Can we help you?X
pseudo-device vnd 4 # paging to files pseudo-device ccd 4 # concatenated disk devices pseudo-device ksyms 1 # kernel symbols device option BOOT_CONFIG # add support for boot -c /-----/ command> grep '^[^#]' NUCLEO machine i386 # architecture, used by config; REQUIRED include "../../../conf/GENERIC" option I386_CPU # CPU classes; at least one is REQUIRED option I486_CPU option I586_CPU option I686_CPU option GPL_MATH_EMULATE # floating point emulation. required. option USER_PCICONF # user-space PCI configuration maxusers 100 # estimated number of users config bsd swap generic

mainbus0 at root
bios0 at mainbus0
apm0 at bios0 flags 0x0000 # flags 0x0101 to force protocol version 1.1 pcibios0 at bios0 flags 0x0000 # use 0x30 for a total verbose isa0 at mainbus0
isa0 at pcib?
pci* at mainbus0 bus ?
option          PCIVERBOSE
pchb*   at pci? dev ? function ?        # PCI-Host bridges
ppb*    at pci? dev ? function ?        # PCI-PCI bridges
pci* at ppb? bus ?
pci* at pchb? bus ?
pcib*   at pci? dev ? function ?        # PCI-ISA bridges (do nothing)
puc*    at pci?                         # PCI "universal" communication device
npx0    at isa? port 0xf0 irq 13        # math coprocessor
isadma0 at isa?
isapnp0 at isa?
option  WSDISPLAY_COMPAT_USL            # VT handling
option  WSDISPLAY_COMPAT_RAWKBD         # can get raw scancodes
option  WSDISPLAY_DEFAULTSCREENS=8
option  WSDISPLAY_COMPAT_PCVT           # emulate some ioctls
pckbc0          at isa?                 # PC keyboard controller
pckbd*          at pckbc?               # PC keyboard
pms*            at pckbc?               # PS/2 mouse for wsmouse
pmsi*           at pckbc?               # PS/2 "Intelli"mouse for wsmouse
vga0            at isa?
vga*            at pci? dev ? function ?
pcdisplay0      at isa?                 # CGA, MDA, EGA, HGA
wsdisplay*      at vga? console ?
wsdisplay*      at pcdisplay? console ?
wskbd*          at pckbd? console ?
Can't find what you're looking for?X
wsmouse* at pms? mux 0 wsmouse* at pmsi? mux 0 pcppi0 at isa? sysbeep0 at pcppi? pccom0 at isa? port 0x3f8 irq 4 # standard PC serial ports pccom1 at isa? port 0x2f8 irq 3 pccom2 at isa? port 0x3e8 irq 5 ast0 at isa? port 0x1a0 irq 5 # AST 4-port serial card pccom* at ast? slave ? pccom* at puc? port ? lpt0 at isa? port 0x378 irq 7 # standard PC parallel ports lpt* at puc? port ? lms0 at isa? port 0x23c irq 5 # Logitech bus mouse lms1 at isa? port 0x238 irq 5 mms0 at isa? port 0x23c irq 5 # Microsoft InPort mouse mms1 at isa? port 0x238 irq 5 wsmouse* at lms? mux 0 wsmouse* at mms? mux 0 cd* at scsibus? target ? lun ? # SCSI CD-ROM drives fdc0 at isa? port 0x3f0 irq 6 drq 2 # standard PC floppy controllers fd* at fdc? drive ?

pciide* at pci ? dev ? function ? flags 0x0000 wdc0 at isa? port 0x1f0 irq 14 flags 0x00 wdc1 at isa? port 0x170 irq 15 flags 0x00 wdc* at isapnp?
wd*     at wdc? channel ? drive ? flags 0x0000
wd*     at pciide? channel ? drive ? flags 0x0000
atapiscsi* at wdc? channel ?
atapiscsi* at pciide? channel ?
scsibus* at atapiscsi?
xl*     at pci? dev ? function ?                # 3C9xx ethernet
exphy*  at mii? phy ?                           # 3Com internal PHYs
cmpci*  at pci? dev ? function ?                # C-Media CMI8338/8738
spkr0   at pcppi?               # PC speaker
audio*  at cmpci?
pseudo-device   pctr            1
pseudo-device   mtrr            1       # Memory range attributes control
pseudo-device   wsmux           2
pseudo-device   crypto          1
option ALTQ_HFSC
option ALTQ_FIFOQ
option ALTQ_PRIQ
option ALTQ_WFQ
option ALTQ_RIO
option ALTQ_BLUE

option ALTQ_FLOWVALVE
option ALTQ_CDNR
option NMBCLUSTERS=8192
option BUFCACHEPERCENT=35

>How-To-Repeat:
        

>Fix:

Sorry I'm not a programmer so I can't help here, but I can provide all necesary info to help you with this.

>Release-Note:
Received on Thu Nov 28 09:46:22 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:29:38 EDT

Don't know where to look next?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library