Bug 235151 - panic: g_resize_provider_event but withered (on r343254)
Summary: panic: g_resize_provider_event but withered (on r343254)
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-geom (Nobody)
Keywords: panic
Depends on:
Reported: 2019-01-23 12:13 UTC by Andriy Voskoboinyk
Modified: 2020-10-26 18:07 UTC (History)
3 users (show)

See Also:

Panic backtrace (6.77 KB, text/plain)
2019-01-23 12:13 UTC, Andriy Voskoboinyk
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andriy Voskoboinyk freebsd_committer 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 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 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 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.