kern/51555: Kernel panic in ifconfig when setting IP address in vx0

Lukas Ertl le at univie.ac.at
Tue Apr 29 01:00:32 PDT 2003


>Number:         51555
>Category:       kern
>Synopsis:       Kernel panic in ifconfig when setting IP address in vx0
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 29 01:00:29 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Lukas Ertl
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Vienna University Computer Center
>Environment:
System: FreeBSD pcle 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Mon Apr 28 19:41:17 CEST 2003   le at pcle.cc.univie.ac.at:/usr/obj/usr/src/sys/PCLE  i386


	
>Description:

I get a kernel panic when booting the latest 5.0-CURRENT, right when the IP
address is set on the vx0 device.

Kernel dump:

# gdb -k kernel.debug vmcore.0 
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-undermydesk-freebsd"...
panic: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x1c
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc0194cf9
stack pointer           = 0x10:0xcce93a90
frame pointer           = 0x10:0xcce93ac0
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         = 172 (ifconfig)
trap number             = 12
panic: page fault

syncing disks, buffers remaining... 107 107 107 106 106 106 106 106 106 106 106 106 106 106 106 106 106 106 106 106 106 106 106 
giving up on 106 buffers
Uptime: 37s
Dumping 128 MB
ata0: resetting devices ..
done
 16 32 48 64 80 96 112
---
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:238
238             dumping++;
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:238
#1  0xc01e61ad in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:370
#2  0xc01e6504 in panic () at /usr/src/sys/kern/kern_shutdown.c:543
#3  0xc033a46e in trap_fatal (frame=0xcce93a50, eva=0)
    at /usr/src/sys/i386/i386/trap.c:834
#4  0xc033a182 in trap_pfault (frame=0xcce93a50, usermode=0, eva=28)
    at /usr/src/sys/i386/i386/trap.c:748
#5  0xc0339d2d in trap (frame=
      {tf_fs = -857145320, tf_es = -1070399472, tf_ds = 983056, tf_edi = 0, tf_esi = -1061613568, tf_ebp = -857130304, tf_isp = -857130372, tf_ebx = 0, tf_edx = -1061613568, tf_ecx = -1061613568, tf_eax = 64, tf_trapno = 12, tf_err = 0, tf_eip = -1072083719, tf_cs = 8, tf_eflags = 66118, tf_esp = 4, tf_ss = 1})
    at /usr/src/sys/i386/i386/trap.c:433
#6  0xc032a4d8 in calltrap () at {standard input}:96
#7  0xc01948dd in vxinit (xsc=0xc0b91000) at /usr/src/sys/dev/vx/if_vx.c:232
#8  0xc0253d77 in ether_ioctl (ifp=0xc0b91000, command=0, 
    data=0xc185ee00 "Ôî\205Áäî\205Áôî\205Á")
    at /usr/src/sys/net/if_ethersubr.c:893
#9  0xc0195887 in vxioctl (ifp=0xc0b91000, cmd=0, data=0x0)
    at /usr/src/sys/dev/vx/if_vx.c:902
#10 0xc02650de in in_ifinit (ifp=0xc0b91000, ia=0xc185ee00, sin=0x0, scrub=0)
    at /usr/src/sys/netinet/in.c:676
#11 0xc0264849 in in_control (so=0x0, cmd=1, data=0xcce93c48 "vx0", 
---Type <return> to continue, or q <return> to quit---
    ifp=0xc0b91000, td=0xc191b850) at /usr/src/sys/netinet/in.c:401
#12 0xc0252375 in ifioctl (so=0xc199ae00, cmd=2151704858, 
    data=0xcce93c48 "vx0", td=0xc191b850) at /usr/src/sys/net/if.c:1537
#13 0xc0210d4c in soo_ioctl (fp=0x0, cmd=0, data=0x8040691a, 
    active_cred=0xc0b96280, td=0xc191b850)
    at /usr/src/sys/kern/sys_socket.c:172
#14 0xc020b112 in ioctl (td=0xc191b850, uap=0xcce93d10) at file.h:251
#15 0xc033a78a in syscall (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 0, tf_esi = -1077936728, tf_ebp = -1077936952, tf_isp = -857129612, tf_ebx = 134893712, tf_edx = 134894752, tf_ecx = 0, tf_eax = 54, tf_trapno = 12, tf_err = 2, tf_eip = 134539655, tf_cs = 31, tf_eflags = 582, tf_esp = -1077937076, tf_ss = 47})
    at /usr/src/sys/i386/i386/trap.c:1021
#16 0xc032a52d in Xint0x80_syscall () at {standard input}:138
---Can't read userspace from dump, or kernel process---



dmesg:

Copyright (c) 1992-2003 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 5.0-CURRENT #0: Mon Apr 28 19:41:17 CEST 2003
    le at pcle.cc.univie.ac.at:/usr/obj/usr/src/sys/PCLE
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0464000.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 233864879 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (233.86-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x634  Stepping = 4
  Features=0x80f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,MMX>
real memory  = 134217728 (128 MB)
avail memory = 125571072 (119 MB)
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 9 entries at 0xc00f0a90
pcib0: <Intel 82443LX (440 LX) host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82443LX (440 LX) host to PCI bridge> mem 0xe4000000-0xe7ffffff at device 0.0 on pci0
pcib1: <PCIBIOS PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
isab0: <PCI-ISA bridge> at device 4.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0xd800-0xd80f at device 4.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <serial bus, USB> at device 4.2 (no driver attached)
pci0: <bridge, PCI-unknown> at device 4.3 (no driver attached)
vx0: <3COM 3C595 Etherlink III PCI> port 0xd000-0xd01f irq 10 at device 9.0 on pci0
utp/tx[*utp*] address 00:a0:24:9d:50:87
ahc0: <Adaptec 2940A Ultra SCSI adapter> port 0xb800-0xb8ff mem 0xe1000000-0xe1000fff irq 11 at device 10.0 on pci0
aic7860: Ultra Single Channel A, SCSI Id=7, 3/253 SCBs
pci0: <display, VGA> at device 11.0 (no driver attached)
orm0: <Option ROMs> at iomem 0xc8000-0xcbfff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 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/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
plip0: <PLIP network interface> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0401> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0000> can't assign resources (port)
unknown: <PNP0303> can't assign resources (port)
Timecounters tick every 10.000 msec
ad0: 4111MB <ST34310A> [8354/16/63] at ata0-master UDMA33
da0 at ahc0 bus 0 target 5 lun 0
da0: <QUANTUM VP32210 581H> Fixed Direct Access SCSI-2 device 
da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
da0: 2103MB (4308352 512 byte sectors: 255H 63S/T 268C)
cd0 at ahc0 bus 0 target 3 lun 0
cd0: <TOSHIBA CD-ROM XM-3701TA 0236> Removable CD-ROM SCSI-2 device 
cd0: 3.300MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Mounting root from ufs:/dev/ad0s1a


>How-To-Repeat:

Have device vx0 on CURRENT, set IP address using ifconfig.

I've seen this panic on two different machines.

>Fix:

N/A.

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


More information about the freebsd-bugs mailing list