Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Oct 2024 20:19:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 282168] vtnet(4): panic in if_attach_internal() when kldloading
Message-ID:  <bug-282168-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282168

            Bug ID: 282168
           Summary: vtnet(4): panic in if_attach_internal() when
                    kldloading
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: lexi.freebsd@le-fay.org

bhyve guest: FreeBSD 15.0-CURRENT #0 lf/main-n269061-b4479cf2b3b9: Wed Sep =
18
20:43:02 BST 2024=20=20=20=20
srcmastr@daphne.eden.le-fay.org:/src/obj/src/freebsd/lf/main/amd64.amd64/sy=
s/LFV6

bhyve host: FreeBSD 15.0-CURRENT #43 lf/main-n269060-ffd494371643: Tue Sep =
17
05:59:59 BST 2024=20=20=20=20
srcmastr@daphne.eden.le-fay.org:/src/obj/src/freebsd/lf/main/amd64.amd64/sy=
s/LF

'kldloat virtio_pci' causes a kernel panic when vtnet is loaded.

stack trace (i have a vmcore if needed):

root@lily:~ # kldload virtio_pci
virtio_pci0: <VirtIO PCI (legacy) Network adapter> port 0x2000-0x203f mem
0xc0000000-0xc0001fff irq 18 at device 5.0 on pci0
root@lily:~ # vtnet0: <VirtIO Networking Adapter> on virtio_pci0


Fatal trap 12: page fault while in kernel mode
cpuid =3D 1; apic id =3D 01
fault virtual address   =3D 0x28
fault code              =3D supervisor read data, page not present
instruction pointer     =3D 0x20:0xffffffff8051deb8
stack pointer           =3D 0x28:0xfffffe004b379810
frame pointer           =3D 0x28:0xfffffe004b379850
code segment            =3D base 0x0, limit 0xfffff, type 0x1b
                        =3D DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        =3D interrupt enabled, resume, IOPL =3D 0
current process         =3D 701 (devctl)
rdi: fffff80001021300 rsi: fffff80001021300 rdx: 0000000000000001
rcx: 0000000000000001  r8: 0000000000000010  r9: fffffe0001e0a040
rax: 0000000000000000 rbx: fffff80001f02000 rbp: fffffe004b379850
r10: fffff800011b9800 r11: 9e99ff93939e0000 r12: fffff8000186a800
r13: fffff800018c0b30 r14: ffffffff8070e492 r15: 0000000000000000
trap number             =3D 12
panic: page fault
cpuid =3D 1
time =3D 1729195870
KDB: stack backtrace:
#0 0xffffffff8045ed4d at kdb_backtrace+0x5d
#1 0xffffffff80414bdf at vpanic+0x13f
#2 0xffffffff80414a93 at panic+0x43
#3 0xffffffff8069d39b at trap_fatal+0x40b
#4 0xffffffff8069d3e6 at trap_pfault+0x46
#5 0xffffffff806747d8 at calltrap+0x8
#6 0xffffffff8051cd8e at if_attach_internal+0x4e
#7 0xffffffff80527f6c at ether_ifattach+0x2c
#8 0xffffffff8181d6d1 at vtnet_setup_interface+0x391
#9 0xffffffff8181cb53 at vtnet_attach+0x1a63
#10 0xffffffff8044e96c at device_attach+0x3ac
#11 0xffffffff81812497 at vtpci_legacy_probe_and_attach_child+0x77
#12 0xffffffff8044c029 at devclass_driver_added+0x29
#13 0xffffffff8045453b at device_do_deferred_actions+0x3b
#14 0xffffffff80453e3f at devctl2_ioctl+0x20f
#15 0xffffffff803811ab at devfs_ioctl+0xcb
#16 0xffffffff804fb30e at vn_ioctl+0xce
#17 0xffffffff8038180e at devfs_ioctl_f+0x1e
Uptime: 14s
Dumping 113 out of 1002 MB:..15%..29%..43%..57%..71%..85%..99%
Dump complete
Automatic reboot in 15 seconds - press a key on the console to abort

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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