Summary: | insyde BMC virtual CDROM unresponsive to FreeBSD | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Ed Maste <emaste> | ||||
Component: | misc | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
Status: | New --- | ||||||
Severity: | Affects Only Me | CC: | bz, grahamperrin | ||||
Priority: | --- | ||||||
Version: | CURRENT | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235151 | ||||||
Attachments: |
|
Description
Ed Maste
2020-10-26 17:29:45 UTC
detaching virtual CD when in this state results in the following panic: ugen0.6: <Linux 4.9.135 with astvhub Virtual Media Gadget 0> at usbus0 (disconnected) umass1: at uhub3, port 1, addr 5 (disconnected) pass2 at umass-sim1 bus 1 scbus2 target 0 lun 0 pass2: <GENERIC Virtual CDROM YS0J> detached cd0 at umass-sim1 bus 1 scbus2 target 0 lun 0 cd0: <GENERIC Virtual CDROM YS0J> detached panic: g_resize_provider_event but withered cpuid = 7 time = 1603735205 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0233a2b420 vpanic() at vpanic+0x182/frame 0xfffffe0233a2b470 panic() at panic+0x43/frame 0xfffffe0233a2b4d0 g_resize_provider_event() at g_resize_provider_event+0x1a5/frame 0xfffffe0233a2b500 g_run_events() at g_run_events+0x156/frame 0xfffffe0233a2b530 g_fork_exit() at fork_exit+0x80/frame 0xfffffe0233a2b570 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0233a2b570 --- trap 0, rip = 0, rsp = 0, rbp = 0 --- KDB: enter: panic [ thread pid 13 tid 100785 ] Stopped at kdb_enter+0x37: movq $0,0x10a8f86(%rip) db> I've seen the g_waitfor_event with gpart show from the rc.d startup file a few times on MMCCAM as well. It cleared for me after some longer timeout I think. Can you break into debugger from there (or use procstat) to figure out what the other half is doing? Some SIM call I think. Created attachment 219359 [details]
usbdump trace of unresponsive virtual CD access
(In reply to Bjoern A. Zeeb from comment #2) I'd guess the first one here: 13 100785 geom g_event mi_switch+0x155 sleepq_switch+0x109 _sleep+0x2b4 biowait+0x70 g_read_data+0xa3 g_raid_md_taste_jmicron+0xc2 g_raid_taste+0x196 g_new_provider_event+0x9a g_run_events+0x156 fork_exit+0x80 fork_trampoline+0xe 13 100786 geom g_up mi_switch+0x155 sleepq_switch+0x109 _sleep+0x2b4 g_io_schedule_up+0x3c g_up_procbody+0x5c fork_exit+0x80 fork_trampoline+0xe 13 100787 geom g_down mi_switch+0x155 sleepq_switch+0x109 _sleep+0x2b4 g_io_schedule_down+0x4c g_down_procbody+0x5c fork_exit+0x80 fork_trampoline+0xe (transcribed manually as my console access is via an HTML5 IP KVM over an RDP session) db> show alllocks Process 13 (geom) thread 0x... (100785) exclusive sx GEOM topology (GEOM topology) r = 0 (0x...) locked @ /root/freebsd/sys/geom/part/g_part.c:2049 db> |