Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/dev
On Mon, Nov 09, 2009 at 07:04:41PM -0600, David Young wrote:
> > Modified Files:
> > src/sys/dev: cgd.c
> >
> > Log Message:
> > Don't allocate block buffers on the stack. This can cause stack overflows
> > in the kernel and breaks SSP builds.
>
> This is a step in the right direction, but now cgd(4) is doing
> malloc(..., M_WAITOK) in (software) interrupt context.
I'm sorry, I didn't realise that it was called in that context.
> A LOCKDEBUG kernel will panic. How can we avoid the stack
> overflows and such in a different way?
I'll try to rewrite the code to use M_NOWAIT.
Kind regards
--
Matthias Scheler http://zhadum.org.uk/
Home |
Main Index |
Thread Index |
Old Index