Re: 2.6.12-rc4-mm2 - sleeping function called from invalid context at mm/slab.c:2502

From: Valdis . Kletnieks
Date: Tue May 17 2005 - 13:03:58 EST


On Tue, 17 May 2005 09:55:28 PDT, Chris Wright said:
> * Valdis.Kletnieks@xxxxxx (Valdis.Kletnieks@xxxxxx) wrote:
> > It threw 5 of them in short succession. Different entry points into
> > avc_has_perm(). Here's the tracebacks:
>
> I'm guessing this is from my change to use single skb for audit buffer
> instead of a temp buffer.
>
> > [4295584.974000] Debug: sleeping function called from invalid context at mm/slab.c:2502
> > [4295584.974000] in_atomic():1, irqs_disabled():0
>
> This is gfp_any() flag that's used here, which I think is the problem.

I'll be more than happy to test any patches...

Attachment: pgp00000.pgp
Description: PGP signature