[Bug 263783] USB MBIM: Support for LTE/4G USB modems (MBIM)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 21 Nov 2024 03:40:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263783

--- Comment #39 from Pierre Pronchery <pierre@freebsdfoundation.org> ---
(In reply to Zhenlei Huang from comment #35)
Thanks for the hint about VNET, I have now added this to the code:

> CURVNET_SET_QUIET(vnet0);

just before calling if_alloc(), and I get a different panic:

> # umb0: version 1.0
> panic: _mtx_lock_sleep: recursed on non-recursive mutex umb0 @ /home/khorben/Projects/FreeBSD/src/sys/dev/usb/net/if_umb.c:1022
> 
> cpuid = 2
> time = 1732160066
> KDB: stack backtrace:
> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00688e3ba0
> vpanic() at vpanic+0x136/frame 0xfffffe00688e3cd0
> panic() at panic+0x43/frame 0xfffffe00688e3d30
> __mtx_lock_sleep() at __mtx_lock_sleep+0x482/frame 0xfffffe00688e3dc0
> __mtx_lock_flags() at __mtx_lock_flags+0xd8/frame 0xfffffe00688e3e10
> umb_newstate() at umb_newstate+0x11b/frame 0xfffffe00688e3e50
> umb_get_response_task() at umb_get_response_task+0x3c/frame 0xfffffe00688e3ec0
> usb_process() at usb_process+0xf0/frame 0xfffffe00688e3ef0
> fork_exit() at fork_exit+0x82/frame 0xfffffe00688e3f30
> fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00688e3f30
> --- trap 0, rip = 0, rsp = 0, rbp = 0 ---
> KDB: enter: panic
> [ thread pid 15 tid 100182 ]
> Stopped at      kdb_enter+0x33: movq    $0,0x1057302(%rip)

I'm investigating further.

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