Bug 117313 - [umass] [panic] panic on usb camera insertion
Summary: [umass] [panic] panic on usb camera insertion
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 7.0-PRERELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-18 22:30 UTC by moose@opera.com
Modified: 2019-01-09 18:53 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description moose@opera.com 2007-10-18 22:30:01 UTC
I get an always-reproducible panic when the digital camera is attached
via USB, and activated.

On RELENG_6: 

umass0: KONICA MINOLTA DIMAGE CAMERA, rev 2.00/0.01, addr 2
umass0: Get Max Lun not supported (SHORT_XFER)
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <KMCA DIMAGE CAMERA 1.00> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 488MB (1000944 512 byte sectors: 64H 32S/T 488C)

On RELENG_7, the panic occurs immediately after the first two lines above.

-------------------------
Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address = 0x20
fault code = supervisor read data, page not present
instruction pointer = 0x8:0xffffffff802b6250
stack pointer = 0x10:0xffffffffabda5770
frame pointer = 0x10:0xffffffffabda5780
code segment = base rx0, limit 0xfffff, type 0x1b
                = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 30 (usb1)
[ thread pid 30 tid 1000022 ]
Stopped at _mtx_assert+0x70: morq 0x20(%rdi),%rax

backtrace:
--------------------------------
Tracing pid 30 tid 1000022 td 0xffffff00182350
_mtx_assert() at _mtx_assert+0x70
xpt_release_ccb() at xpt_release_ccb+0x49
probedone() at probedone+0x9c
camisr_runqueue() at camisr_runqueue+0x1a3
xpt_bus_deregister() at xpt_bus_deregister+0x185
umass_cam_detach_sim() at umass_cam_detach_sim+0x1f
umass_detach() at umass_detach+0xcf
device_detach() at device_detach+0xa4
usb_disconnect_port() at usb_disconnect_port+0x86
uhub_explore)_ at uhub_explore+0x101
usb_discover() at usb_discover+0x38
usb_event_thread() at usb_event_thread+0x7c
fork_exit)_ at fork_exit+0x128
fork_trampoline() at fork_trampoline+0xe
--- trap 0, rip=0, rsp=0xffffffffabda5d30, rbp=0 ---

How-To-Repeat: -- attach the camera to the machine via USB
-- turn the camera on --> panic
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:48 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Warner Losh freebsd_committer freebsd_triage 2019-01-09 18:53:25 UTC
This looks like one of the bugs that we've fixed in umass as part of the hardening efforts to make the umass disappearance robust. Closing it as OBE. If there's still an issue with FreeBSD 11 or 12, please open a new bug and cc me so we can get to the bottom of this.