Bug 235151

Summary: panic: g_resize_provider_event but withered (on r343254)
Product: Base System Reporter: Andriy Voskoboinyk <avos>
Component: kernAssignee: freebsd-geom (Nobody) <geom>
Status: New ---    
Severity: Affects Only Me CC: cem, emaste, grahamperrin, markj
Priority: --- Keywords: crash
Version: CURRENT   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200740
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250638
Attachments:
Description Flags
Panic backtrace none

Description Andriy Voskoboinyk freebsd_committer freebsd_triage 2019-01-23 12:13:33 UTC
Created attachment 201355 [details]
Panic backtrace

The reason of this panic is the same as for bug #235081 : unstable smartphone USB cable connection.
Comment 1 Conrad Meyer freebsd_committer freebsd_triage 2019-01-23 16:14:44 UTC
The assertion is simply bogus.  There is no coordination that ensures the check in g_resize_provider() is still valid in g_resize_provider_event().  I think this should probably just be a if () -> return case.
Comment 2 Conrad Meyer freebsd_committer freebsd_triage 2019-01-23 16:16:26 UTC
I expect the similar assertion in g_new_provider_event() is similarly bogus.
Comment 3 Ed Maste freebsd_committer freebsd_triage 2020-10-23 15:07:56 UTC
I encountered this issue on some test hardware with a virtual IPMI USB CDROM that did not attach correctly.