[Bug 286573] panic in usbpf_xfertap()

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 04 May 2025 11:45:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286573

            Bug ID: 286573
           Summary: panic in usbpf_xfertap()
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: fbsd@opal.com

Reproducible panic when running usbdump.

First usbdump seems to run okay.  Stop it and run again later and panic
happens.

Command was:
    usbdump -d 0.3 -s 0 -v


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x10
fault code              = supervisor read data, page not present
instruction pointer     = 0x20:0xffffffff80c5c6eb
stack pointer           = 0x28:0xfffffe00c6255d60
frame pointer           = 0x28:0xfffffe00c6255d60
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 15 (usbus0)
rdi: fffff8021a0da000 rsi: 0000000000000000 rdx: fffffe0117d86278
rcx: fffffe0117d86278  r8: 0000000000000000  r9: 0000000000000300
rax: 0000000000000000 rbx: 0000000000000000 rbp: fffffe00c6255d60
r10: 0000000000000004 r11: 0000000000000310 r12: fffffe00c659c428
r13: fffff8001c194438 r14: fffff8001c194438 r15: fffffe00c659c428
trap number             = 12
panic: page fault
cpuid = 0
time = 1746349882
KDB: stack backtrace:
#0 0xffffffff80b9083d at kdb_backtrace+0x5d
#1 0xffffffff80b426a1 at vpanic+0x131
#2 0xffffffff80b42563 at panic+0x43
#3 0xffffffff81034b7a at trap_pfault+0x3da
#4 0xffffffff8100b508 at calltrap+0x8
#5 0xffffffff8095014a at usbpf_xfertap+0x3a
#6 0xffffffff809583cc at usbd_pipe_start+0x13c
#7 0xffffffff809574f6 at usb_command_wrapper+0x96
#8 0xffffffff80955c03 at usbd_callback_wrapper+0x5c3
#9 0xffffffff809574f6 at usb_command_wrapper+0x96
#10 0xffffffff80956189 at usb_callback_proc+0xb9
#11 0xffffffff80950bbe at usb_process+0xfe
#12 0xffffffff80afba5f at fork_exit+0x7f
#13 0xffffffff8100c56e at fork_trampoline+0xe
Uptime: 8m26s
Dumping 856 out of 16224 MB:..2%..12%..21%..32%..42%..51%..62%..71%..81%..92%

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