Re: lockdep warning in check_flags()

Frederik Deweerdt
2006-09-12T18:22:35Z

On Tue, Sep 12, 2006 at 06:54:48PM +0200, Ingo Molnar wrote:
>
> * Frederik Deweerdt <deweerdt@free.fr> wrote:
>
> > On Mon, Sep 11, 2006 at 07:43:35AM +0200, Ingo Molnar wrote:
> > >
> > > * Frederik Deweerdt <deweerdt@free.fr> wrote:
> > >
> > > > Lockdep issues the following warning:
> > > >
> > > > [ 16.835268] Freeing unused kernel memory: 260k freed
> > > > [ 16.842715] Write protecting the kernel read-only data: 432k
> > > > [ 17.796518] BUG: warning at kernel/lockdep.c:2359/check_flags()
> > >
> > > this warning means that the "soft" and "hard" hardirqs-disabled state
> > > got out of sync: the irqtrace tracking code thinks that hardirqs are
> > > disabled, while in reality they are enabled. The thing to watch for are
> > > new "stii" instructions in entry.S (and other assembly code), without a
> > > matching TRACE_HARDIRQS_ON call. [Another, rarer possiblity is NMI code
> > > saving/restoring interrupts - do you have NMIs enabled? (are there any
> > > NMI counts in /proc/interrupts?)]
> > NMIs were disabled. But I've just booted -mm2 and the warning went away.
> > Could this be related to the recent pda changes?
>
> yeah, it could be related to the fix below. Can you confirm that by
> applying this to your -mm1 tree the message goes away?
>
It does, thanks Ingo.
Frederik