iwi0 and spontaneous reboot on /etc/rc.d/netif restart

Joey Mingrone joey at mingrone.org
Fri Apr 30 14:48:32 UTC 2010


Hello,

I just upgraded to 8.0-RELEASE-p2 from 7.2 and I'm also seeing kernel
crashes and reboots after running /etc/rc.d/netif restart, which
didn't occur with 7.2.  This is reproducible on demand.

After writing this email I found the following PR:
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/144755

% /etc/rc.d/netif restart
Apr 30 08:57:04 met wpa_supplicant[1785]: CTRL-EVENT-SCAN-RESULTS
Apr 30 08:57:04 met wpa_supplicant[1719]: CTRL-EVENT-SCAN-RESULTS
Apr 30 08:57:04 met wpa_supplicant[1719]: Trying to associate with
0:xxx:aa (SSID='blah' freq=2447 MHz)
Apr 30 08:57:04 met wpa_supplicant[1785]: Trying to associate with
00:xx:aa (SSID='blah' freq=2447 MHz)
Apr 30 08:57:04 met wpa_supplicant[1785]: Associated with 00:xx:aa
Apr 30 08:57:04 met kernel: wlan0: link state changed to UP
Apr 30 08:57:05 met kernel: iwi0: firmware error
Apr 30 08:57:04 met wpa_supplicant[1719]: Associated with 00:xx:aa
Apr 30 08:57:05 met kernel: iwi0: need multicast update callback
Apr 30 08:57:10 met kernel: iwi0: device timeout
Apr 30 08:57:15 met wpa_supplicant[1719]: Authentication with 00:xx:aa
timed out.
Apr 30 08:57:15 met wpa_supplicant[1785]: Authentication with 00:xx:aa
timed out.
Apr 30 08:57:15 met kernel: wlan0: link state changed to DOWN
Apr 30 08:57:15 met wpa_supplicant[1719]: CTRL-EVENT-DISCONNECTED -
Disconnect event - remove keys
Apr 30 08:57:15 met wpa_supplicant[1785]: CTRL-EVENT-DISCONNECTED -
Disconnect event - remove keys
Apr 30 08:57:24 met dhclient[1876]: send_packet: Network is down
Apr 30 08:58:01 met last message repeated 2 times

...crash and reboot...

% kgdb kernel /var/crash/vmcore.0
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
...
This GDB was configured as "i386-marcel-freebsd"...

Unread portion of the kernel message buffer:
wlan0: ieee80211_new_state_locked: pending SCAN -> AUTH transition lost

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xc49331d5
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc0ad5b0c
stack pointer           = 0x28:0xc43bbb7c
frame pointer           = 0x28:0xc43bbc34
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         = 0 (iwi0 taskq)
trap number             = 12
panic: page fault
Uptime: 1m42s
Physical memory: 1518 MB
Dumping 69 MB: 54 38 22 6

% kldstat
Id Refs Address    Size     Name
 1   95 0xc0400000 656394   kernel
 2    1 0xc0a57000 b69c     if_fxp.ko
 3    2 0xc0a63000 2698c    miibus.ko
 4    1 0xc0a8a000 f528     if_iwi.ko
 5    6 0xc0a9a000 3fc40    wlan.ko
 6    1 0xc0ada000 7194     snd_ich.ko
 7    2 0xc0ae2000 567b0    sound.ko
 8    1 0xc0b39000 87d8     atapicd.ko
 9    1 0xc0b42000 4f6c     atapicam.ko
10    1 0xc0b47000 d87c     cpufreq.ko
11    1 0xc0b55000 30228    iwi_bss.ko
12    1 0xc0b86000 2f2b0    iwi_ibss.ko
13    1 0xc0bb6000 2f578    iwi_monitor.ko
14    1 0xc0be6000 2ee0     wlan_acl.ko
15    1 0xc4858000 8000     linprocfs.ko
16    1 0xc4895000 26000    linux.ko
17    1 0xc48f6000 3000     wlan_wep.ko
18    1 0xc48f9000 4000     wlan_tkip.ko
19    1 0xc48fe000 7000     wlan_ccmp.ko
20    1 0xc4cae000 9000     i915.ko

% less /boot/loader.conf
hw.ata.ata_dma="1"
hw.ata.atapi_dma="1"
kern.maxdsiz="734003200"
kern.ipc.semmni=256
kern.ipc.semmns=512
kern.ipc.semmnu=256
sem_load="YES"

atapicd_load="YES"
atapicam_load="YES"
cpufreq_load="YES"
if_fxp_load="YES"
snd_ich_load="YES"

# stuff for wireless
legal.intel_iwi.license_ack=1
if_iwi_load="YES"
iwi_bss_load="YES"
iwi_ibss_load="YES"
iwi_monitor_load="YES"
wlan_acl_load="YES"

Here are the relevant parts from /etc/rc.conf
wlans_iwi0="wlan0"
ifconfig_wlan0="WPA DHCP"

% cat /usr/src/sys/i386/conf/MY_KERNEL_CONFIG
cpu I686_CPU
ident MET_ATH_CX_2010-04-29

options SCHED_ULE
options PREEMPTION #Enable kernel thread preemption
options INET #InterNETworking
options INET6 #IPv6 communications protocols
options SCTP # Stream Control Transmission Protocol
options FFS #Berkeley Fast Filesystem
options SOFTUPDATES #Enable FFS soft updates support
options UFS_ACL #Support for access control lists
options UFS_DIRHASH #Improve performance on big directories
options UFS_GJOURNAL # Enable gjournal-based UFS journaling
options MD_ROOT #MD is a potential root device
options NFSCLIENT #Network Filesystem Client
options NFSSERVER #Network Filesystem Server
options NFSLOCKD #Network Lock Manager
options NFS_ROOT #NFS usable as /, requires NFSCLIENT
options PROCFS #Process filesystem (requires PSEUDOFS)
options PSEUDOFS #Pseudo-filesystem framework
options GEOM_PART_GPT # GUID Partition Tables.
options GEOM_LABEL # Provides labelization
options COMPAT_43TTY # BSD 4.3 TTY compat [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5	# Compatible with FreeBSD5
options COMPAT_FREEBSD6	# Compatible with FreeBSD6
options COMPAT_FREEBSD7	# Compatible with FreeBSD7
options SCSI_DELAY=5000 #Delay (in ms) before probing SCSI
options KTRACE #ktrace(1) support
options STACK # stack(9) support
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options P1003_1B_SEMAPHORES # POSIX-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed.
options KBD_INSTALL_CDEV #install a CDEV entry in /dev
options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4)
options AUDIT # Security event auditing
options MAC # TrustedBSD MAC Framework
options	FLOWTABLE # per-cpu routing cache
#options KDTRACE_HOOKS # Kernel DTrace hooks

# To make an SMP kernel, the next two lines are needed
#options SMP # Symmetric MultiProcessor Kernel
device apic #I/O APIC

# CPU frequency control
device cpufreq # CPU frequency control (loaded as dynamic module)

# Bus support.
device		acpi
device		eisa
device		pci

#Floppy drives
#device fdc # dynamic

# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
#device ataraid # ATA RAID drives
#device	atapicd # ATAPI CDROM drives
#device	atapifd	# ATAPI floppy drives
#device	atapist	# ATAPI tape drives
options ATA_STATIC_ID # Static device numbering

options ATA_STATIC_ID #Static device numbering

#device atapicam #emulate ATAPI devices as SCSI VIA CAM (added) # dynamic

#SCSI peripherals
device scbus #SCSI bus (required for SCSI)
#device ch # SCSI media changers
device da # Direct Access (disks)
#device sa		# Sequential Access (tape etc)
device cd		# CD
device pass		# Passthrough device (direct SCSI access)
#device ses		# SCSI Environmental Services (and SAF-TE)

#atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc #AT keyboard controller and PS/2 mouse
device atkbd #AT keyboard
device psm #PS/2 mouse

device kbdmux # keyboard multiplexer

device vga #VGA video card driver

device splash #Splash screen and screen saver support

device sc #syscons is the default console driver, resembling an SCO console

device agp #support several AGP chipsets
device drm #DRM core module required by DRM drivers
device radeondrm #support for DRI

#Power management support (see NOTES for more options)
device pmtimer #Add suspend/resume support for the i8254.

#PCCARD (PCMCIA) support
#Pcmcia and cardbus bridge support
#device cbb #cardbus (yenta) bridge # dynamic
#device pccard #PC Card (16-bit) bus # dynamic
#device cardbus #CardBus (32-bit) bus # dynamic

#Serial (COM) ports
#device sio #8250, 16[45]50 based serial ports # dynamic

#Parallel port # all dynamic
#device ppc
#device ppbus #Parallel port bus (required)
#device lpt #Printer
#device plip #TCP/IP over parallel
#device ppi #Parallel port interface device

#PCI Ethernet NICs.
#device miibus #MII bus support
#device bge #Broadcom BCM570xx Gigabit Ethernet

#Pseudo devices.
device loop #Network loopback
device random #Entropy device
device ether #Ethernet support
#device sl #Kernel SLIP
#device ppp #Kernel PPP
device tun #Packet tunnel.
device pty #Pseudo-ttys (telnet etc)
device md #Memory "disks"
device gif #IPv6 and IPv4 tunneling
device faith #IPv6-to-IPv4 relaying (translation)
device firmware	# firmware assist module

#The `bpf' device enables the Berkeley Packet Filter.
#Be aware of the administrative consequences of enabling this!
device bpf #Berkeley packet filter

#USB support
device uhci #UHCI PCI->USB interface
device ohci #OHCI PCI->USB interface
device ehci # EHCI PCI->USB interface (USB 2.0)
device usb  #USB Bus (required)
#device udbp #USB Double Bulk Pipe devices
#device ugen #Generic
#device uhid #"Human Interface Devices"
device ukbd #Keyboard
#device ulpt #Printer
device umass #Disks/Mass storage - Requires scbus and da
device ums #Mouse
#device uscanner #Scanners

Cheers,

Joey Mingrone


More information about the freebsd-questions mailing list