Bug 164530

Summary: Boot time crash using XEN HVM enabled kernel.
Product: Base System Reporter: Josef Karthauser <joe>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Josef Karthauser 2012-01-26 21:30:09 UTC
WIth XEN HVM drivers enabled in the kernel the system crashes when probing the xn0 ethernet device at boot time:

        xn0: <Virtual Network Interface> at device/vif/0 on xenbusb_front0
        xn0: Error 2 parsing device/vif/0/mac
        xn0: Fatal error. Transitioning to Closing State
        panic: do something smart
        cpuid = 0
        KDB: stack backtrace:
        #0 0xfff..... at kbd_backtrace+0x5e
        #1 0xfff..... at kbd_backtracepanic+0x187
        #2 0xfff..... at netfront_attach+0x18c
        #3 0xfff..... at device_attach+0x69
        #4 0xfff..... at xenbusb_probe_children+0xdf
        #5 0xfff..... at xenbusb_attach+0x11c
        #6 0xfff..... at device_attach_deferred_+0x21
        #7 0xfff..... at bus_generic_attach+0x1a
        #8 0xfff..... at xs_attach_deferred+0x21 
        #9 0xfff..... at run_interrupt_driven_config_hooks+0xab
        #10 0xfff..... at boot_run_interrupt_driven_config_hooks+02c
        #11 0xfff..... at mi_startup+0x77 
        #12 0xfff..... at btext+0x2c

Fix: 

None known.
How-To-Repeat: Enable the XEN HVM drivers in the kernel config:

                # Xen HVM support
                options        XENHVM
                device         xenpci

Boot the system on the new kernel

Observe a kernel crash probing the xn0 driver:
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2012-01-26 22:42:26 UTC
State Changed
From-To: open->closed

See kern/164531.
Comment 2 Josef Karthauser 2012-01-27 00:00:22 UTC
Great. Thanks. I didn't realise that the one I submitted with send-pr =
had been received - send-pr gave me an error. :)=