kern/124708: Kernel panic on USB KVM reattach

Gergely Czuczy phoemix at harmless.hu
Wed Jun 18 10:10:01 UTC 2008


>Number:         124708
>Category:       kern
>Synopsis:       Kernel panic on USB KVM reattach
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 18 10:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Gergely Czuczy
>Release:        7.0-RELEASE-p1
>Organization:
>Environment:
FreeBSD wwwblade1 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #0: Fri Jun 13 07:06:56 UTC 2008 toor at wwwblade1:/ur/obj/usr/src/sys/WWWBLADE amd64
>Description:
We're using supermicro's blades, the KVM works like adding keyboard and mouse to selected blade over USB. when the KVM is changed from one blade to another, the USB devices are detached from one and attached to another.

When the re-attach is done after a few hours, a kernel panic occurs. After noticing all the devices, this is the text of the panic:

Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address = 0x290
fault code = supervisor read data, page not present
instruction pointer = 0x8:0xffffffff803aa89d
stack pointer = 0x10:0xffffffffae161df0
frame pointer = 0x10:0xffffff000622ca80
code segment = base 0x0, limit 0xfffff, type 0x1b
             = DLP 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 35 (usb3)
trap number = 12
panic: page fault
cpuid = 1
uptime: 18h26m26s

I guess something is paged out what shouldn't be.

# diff -u /usr/src/sys/amd64/conf/GENERIC /usr/src/sys/amd64/conf/WWWBLADE
-ident          GENERIC
+ident          WWWBLADE
-makeoptions    DEBUG=-g                # Build kernel with gdb(1) debug symbols
+#makeoptions   DEBUG=-g                # Build kernel with gdb(1) debug symbols
+#options       SCHED_ULE               # 4BSD scheduler
-options        INET6                   # IPv6 communications protocols
-options        SCTP                    # Stream Control Transmission Protocol
+#options       INET6                   # IPv6 communications protocols
+#options       SCTP                    # Stream Control Transmission Protocol
-options        COMPAT_FREEBSD4         # Compatible with FreeBSD4
-options        COMPAT_FREEBSD5         # Compatible with FreeBSD5
+#options       COMPAT_FREEBSD4         # Compatible with FreeBSD4
+#options       COMPAT_FREEBSD5         # Compatible with FreeBSD5
-device         cbb             # cardbus (yenta) bridge
-device         pccard          # PC Card (16-bit) bus
-device         cardbus         # CardBus (32-bit) bus
-device         ppc
-device         ppbus           # Parallel port bus (required)
-device         lpt             # Printer
-device         plip            # TCP/IP over parallel
-device         ppi             # Parallel port interface device
-#device                vpo             # Requires scbus and da
-device         wlan            # 802.11 support
-device         wlan_wep        # 802.11 WEP support
-device         wlan_ccmp       # 802.11 CCMP support
-device         wlan_tkip       # 802.11 TKIP support
-device         wlan_amrr       # AMRR transmit rate control algorithm
-device         wlan_scan_ap    # 802.11 AP mode scanning
-device         wlan_scan_sta   # 802.11 STA mode scanning
-device         an              # Aironet 4500/4800 802.11 wireless NICs.
-device         ath             # Atheros pci/cardbus NIC's
-device         ath_hal         # Atheros HAL (Hardware Access Layer)
-device         ath_rate_sample # SampleRate tx rate control for ath
-device         awi             # BayStack 660 and others
-device         ral             # Ralink Technology RT2500 wireless NICs.
-device         wi              # WaveLAN/Intersil/Symbol 802.11 wireless NICs.
-device         sl              # Kernel SLIP
-device         ppp             # Kernel PPP
+#device                sl              # Kernel SLIP
+#device                ppp             # Kernel PPP
-device         gif             # IPv6 and IPv4 tunneling
-device         faith           # IPv6-to-IPv4 relaying (translation)
+#device                gif             # IPv6 and IPv4 tunneling
+#device                faith           # IPv6-to-IPv4 relaying (translation)
-device         ural            # Ralink Technology RT2500USB wireless NICs
-device         urio            # Diamond Rio 500 MP3 player
-device         uscanner        # Scanners
-# USB Ethernet, requires miibus
-device         aue             # ADMtek USB Ethernet
-device         axe             # ASIX Electronics USB Ethernet
-device         cdce            # Generic USB over Ethernet
-device         cue             # CATC USB Ethernet
-device         kue             # Kawasaki LSI USB Ethernet
-device         rue             # RealTek RTL8150 USB Ethernet
-device         firewire        # FireWire bus code
-device         sbp             # SCSI over FireWire (Requires scbus and da)
-device         fwe             # Ethernet over FireWire (non-standard!)
-device         fwip            # IP over FireWire (RFC 2734,3146)
-device         dcons           # Dumb console driver
-device         dcons_crom      # Configuration ROM for dcons
+device         if_bridge
+device         pf
+device         pflog

>How-To-Repeat:
Detach the USB KVM (keyboard/mouse, etc).
wait 10-15-18 hours.
reattach the USB KVM.
>Fix:


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


More information about the freebsd-bugs mailing list