DragonFly bugs List (threaded) for 2008-01
Re: panic on kldload
On Jan 11, 2008 9:12 AM, Simon 'corecode' Schubert
> Matthew Dillon wrote:
> > It'l probably never be used. There is no callback facility for
> > recovering kmalloc'd memory. And, particularly for the linker,
> > there wouldn't be anything to free anyway so it would just
> > deadlock.
> Well, yea, but I'd rather have a blocking kldload than a panic'ed
> system. There are probably more such places. Actually I think this
> limit business is stupid. Rather than panicing, we could print a
> warning and go on. The worst thing could be that we'll panic lateron
> because we don't have free memory anymore.
I don't think it's the problem of our M_WAITOK implementation. You
could change the caller to use other kmalloc flag so that the system
will not panic; how to properly handle kmalloc failure in this case
may be difficult.
Live Free or Die