Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PF related panic

On Fri, Nov 13, 2009 at 09:35:52AM +0200, Martti Kuparinen wrote:
> Michael L. Hitch wrote:
> >
> >  I'm not sure about the LKM builds on amd64, but certainly on 5.0
> >and later, the kernel modules were not getting built with the
> >-mno-red-zone option, and modules had the potential of having
> >interrupts clobber stack data that the compiler presumed was safe.
> >I wouldn't be suprised if lkms
> >may have the same problem on amd64.
> I rebuilt the module with -DDEBUG and -mno-red-zone and
> # cd /usr/src/sys/lkm/net/pf
> # export CPPFLAGS="-DDEBUG -mno-red-zone"
> # make && make install
> and rebooted with the debug kernel (with PF as module). And it
> works! No more crash...
> Shouldn't we have this in netbsd-5 and netbsd-5-0?

In a way, yes.  The change that was committed to -current applies to
LKMs, too.  It should be pulled up.

Quentin Garnier - -
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.

Attachment: pgpTPHDmhz8fG.pgp
Description: PGP signature

Home | Main Index | Thread Index | Old Index