Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Dec 2000 21:05:38 +0200
From:      Yury Yaroshevsky <yk@folgat.dgtu.donetsk.ua>
To:        freebsd-stable@freebsd.org
Cc:        freebsd-net@freebsd.org
Subject:   Kernel panic on VLAN ...
Message-ID:  <20001205210538.A1386@folgat.dgtu.donetsk.ua>

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

I'm trying setup vlan on my FreeBSD box.
My OS - FreeBSD 3.5-SABLE at 28 Nov 2000.
This is my kernel config:

#
#
machine		"i386"
ident		FOLGAT
maxusers	128
options		"MAXDSIZ=(256*1024*1024)"
options		"DFLDSIZ=(256*1024*1024)"
options		FAILSAFE
options         INCLUDE_CONFIG_FILE     # Include this file in kernel
config		kernel	root on da0

#####################################################################
# SMP OPTIONS:

#####################################################################
# CPU OPTIONS
cpu		"I686_CPU"		# aka Pentium Pro(tm)

#####################################################################
# COMPATIBILITY OPTIONS                                             
options		"COMPAT_43"
options		SYSVSHM
options		SYSVSEM
options		SYSVMSG

#####################################################################
# DEBUGGING OPTIONS
options		UCONSOLE
options		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor

#####################################################################
# NETWORKING OPTIONS
options		INET			#Internet communications protocols
pseudo-device	ether			#Generic Ethernet
pseudo-device	vlan 4
pseudo-device	loop			#Network loopback device
pseudo-device	bpfilter 4		#Berkeley packet filter
pseudo-device	disc			#Discard device
pseudo-device	tun	2		#Tunnel driver
pseudo-device   ppp     4
options         PPP_BSDCOMP             #PPP BSD-compress support
options         PPP_DEFLATE             #PPP zlib/deflate/gzip support
options         PPP_FILTER              #enable bpf filtering (needs bpfilter)
options         IPFIREWALL              #firewall
options         IPFIREWALL_VERBOSE      #print information about
					# dropped packets
options         IPFIREWALL_FORWARD      #enable transparent proxy support
options		IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default
options		IPDIVERT		#divert sockets
options		IPFILTER		#kernel ipfilter support
options		IPFILTER_LOG		#ipfilter logging
#options	IPFILTER_LKM		#kernel support for ip_fil.o LKM
options		IPSTEALTH		#support for stealth forwarding
options         "ICMP_BANDLIM"
options	DUMMYNET

#####################################################################
# FILESYSTEM OPTIONS
options		FFS			#Fast filesystem
options		"CD9660"		#ISO 9660 filesystem
options		MSDOSFS			#MS DOS File System
options		PROCFS			#Process filesystem
options		FFS_ROOT		#FFS usable as root device
options		SOFTUPDATES
options		QUOTA			#enable disk quotas

#####################################################################
# POSIX P1003.1B

#####################################################################
# SCSI DEVICES
controller	scbus0	#base SCSI code
device		da0	#SCSI direct access devices (aka disks)
options		SCSI_REPORT_GEOMETRY

#####################################################################
# MISCELLANEOUS DEVICES AND OPTIONS
pseudo-device	pty	32	#Pseudo ttys - can go as high as 256
pseudo-device	speaker		#Play IBM BASIC-style noises out your speaker
pseudo-device	gzip		#Exec gzipped a.out's
pseudo-device	vn		#Vnode driver (turns a file into a device)
pseudo-device	snp	3	#Snoop device - to look at pty/vty/etc..
pseudo-device	ccd	4	#Concatenated disk driver
pseudo-device	vinum		#Vinum concat/mirror/raid driver
options 	VINUMDEBUG	#enable Vinum debugging hooks
options		"MSGBUF_SIZE=40960"

#####################################################################
# HARDWARE DEVICE CONFIGURATION
controller	isa0
options		"AUTO_EOI_1"
#options	"AUTO_EOI_2"
options		"MAXMEM=(128*1024)"
options		PPS_SYNC
controller	pnp0
controller	atkbdc0	at isa? port IO_KBD tty
device		atkbd0	at isa? tty irq 1
device		psm0	at isa? tty irq 12
device		vga0	at isa? port ? conflicts
pseudo-device	splash
device		sc0	at isa? tty
options		MAXCONS=16		# number of virtual consoles
options		SC_HISTORY_SIZE=600	# number of history buffer lines
options		SC_DISABLE_REBOOT	# disable reboot key sequence
device		npx0	at isa? port IO_NPX iosiz 0x0 flags 0x0 irq 13
controller	wdc0	at isa? port "IO_WD1" bio irq 14 flags 0xa0ffa0ff
disk		wd0	at wdc0 drive 0
disk		wd1	at wdc0 drive 1
controller	wdc1	at isa? disable port "IO_WD2" bio irq 15 flags 0xa0ffa0ff
disk		wd2	at wdc1 drive 0
disk		wd3	at wdc1 drive 1
options         ATAPI   #Enable ATAPI support for IDE bus
options		ATAPI_STATIC	#Don't do it as an LKM
device          acd0
controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2
disk		fd0	at fdc0 drive 0
device		sio0	at isa? port "IO_COM1" tty flags 0x10 irq 4
device		sio1	at isa? port "IO_COM2" tty flags 0x10 irq 3
device pca0 at isa? port "IO_TIMER1" tty
controller	ahc0
controller	pci0
device		fxp0
controller smbus0
controller intpm0
device smb0	at smbus?
options		"NSFBUFS=4096"


Result of dmesg:

Copyright (c) 1992-1999 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 3.5-STABLE #0: Tue Nov 28 17:13:27 EET 2000
    root@folgat.dgtu.donetsk.ua:/usr/src/sys/compile/FOLGAT
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 334092225 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (334.09-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x651  Stepping = 1
  Features=0x183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 134217728 (131072K bytes)
avail memory = 126832640 (123860K bytes)
Preloaded elf kernel "kernel" at 0xc0360000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc036009c.
Pentium Pro MTRR support enabled
Probing for devices on PCI bus 0:
chip0: <Intel 82443LX host to PCI bridge> rev 0x03 on pci0.0.0
chip1: <Intel 82443LX PCI-PCI bridge> rev 0x03 on pci0.1.0
chip2: <Intel 82371AB PCI to ISA bridge> rev 0x01 on pci0.4.0
ide_pci0: <Intel PIIX4 Bus-master IDE controller> rev 0x01 on pci0.4.1
intpm0: <Intel 82371AB Power management controller> rev 0x01 on pci0.4.3
intpm0: I/O mapped e800 ALLOCED IRQ 0 intr IRQ 9 enabled revision 0
intsmb0: <Intel PIIX4 SMBUS Interface>
smbus0: <System Management Bus> on intsmb0
smb0: <SMBus general purpose I/O> on smbus0
intpm0: PM I/O mapped e400 
ahc0: <Adaptec aic7880 Ultra SCSI adapter> rev 0x00 int a irq 12 on pci0.6.0
ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
fxp0: <Intel EtherExpress Pro 10/100B Ethernet> rev 0x05 int a irq 10 on pci0.11.0
fxp0: Ethernet address 00:90:27:2f:73:b3
vga0: <S3 ViRGE DX/GX graphics accelerator> rev 0x01 int a irq 11 on pci0.12.0
Probing for devices on PCI bus 1:
Probing for PnP devices:
Probing for devices on the ISA bus:
sc0 on isa
sc0: VGA color <16 virtual consoles, flags=0x0>
atkbdc0 at 0x60-0x6f on motherboard
atkbd0 irq 1 on isa
psm0 not found
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 flags 0x10 on isa
sio1: type 16550A
pca0 on motherboard
pca0: PC speaker audio driver
wdc0 at 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa
wdc0: unit 0 (atapi): <CD-524EA-B/1.0A>, removable, accel, ovlap, dma, iordis
acd0: drive speed 4134KB/sec, 128KB cache
acd0: supported read types: CD-R, CD-RW, CD-DA, packet track
acd0: Audio: play, 256 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: no/blank disc inside, unlocked
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
npx0 on motherboard
npx0: INT 16 interface
IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to accept, unlimited logging
ccd0-3: Concatenated disk drivers
DUMMYNET initialized (000212)
IP Filter: initialized.  Default = pass all, Logging = enabled
Waiting 2 seconds for SCSI devices to settle
vinum: loaded
changing root device to da0s1a
da2 at ahc0 bus 0 target 12 lun 0
da2: <IBM DNES-309170W SA30> Fixed Direct Access SCSI-3 device 
da2: 20.000MB/s transfers (10.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da2: 8748MB (17916240 512 byte sectors: 255H 63S/T 1115C)
da0 at ahc0 bus 0 target 0 lun 0
da0: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device 
da0: 20.000MB/s transfers (10.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da0: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
da1 at ahc0 bus 0 target 6 lun 0
da1: <IBM DDRS-34560D DC1B> Fixed Direct Access SCSI-2 device 
da1: 20.000MB/s transfers (10.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da1: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)
vinum: reading configuration from /dev/da1s1e
vinum: updating configuration from /dev/da0s1e

After recompile kernel and reloading I'm try:

ifconfig fxp0 10.0.0.1 
ifconfig vlan0 vlan 2 vlandev fxp0
ifconfig vlan0 192.168.1.1 

fxp0 situated in 2 VLANs. 1-st - untagged, 2-nd - use 802.1q

After this manipulations I can ping any host in 192.168.1.0/24, 
but after trying setup any tcp connections with host in 192.168.1.0/24 
my kernel panic.

# gdb -k /var/crash/kernel.2 /var/crash/vmcore.2 

GNU gdb 4.18
Copyright 1998 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-unknown-freebsd"...
(no debugging symbols found)...
IdlePTD 3612672
initial pcb at 249f58
panicstr: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x2000081
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc018e9f5
stack pointer	        = 0x10:0xc7889f74
frame pointer	        = 0x10:0xc7889f80
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		= 337 (rc5des)
interrupt mask		= net tty 
trap number		= 12
panic: page fault

syncing disks... 70 70 53 29 9 done
Uptime: 7m38s

dumping to dev 20411, offset 262144
dump 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 
---
#0  0xc01506b3 in boot ()
(kgdb) bt
#0  0xc01506b3 in boot ()
#1  0xc0150938 in at_shutdown ()
#2  0xc01f66d5 in trap_fatal ()
#3  0xc01f63b3 in trap_pfault ()
#4  0xc01f6056 in trap ()
#5  0xc018e9f5 in ether_input ()
#6  0xc01b89d6 in fxp_intr ()
#7  0x807f2c2 in ?? ()
Cannot access memory at address 0xa0e56f09.


At this moment I can't check VLAN on 4.2-STABLE.
It is working on 3.5-STABLE or I'm need upgrade my system up to 4.2-STABLE?



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




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