netdev
[Top] [All Lists]

Re: 2.6.12-rc4-mm2 - sleeping function called from invalid context at mm

To: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
Subject: Re: 2.6.12-rc4-mm2 - sleeping function called from invalid context at mm/slab.c:2502
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 19 May 2005 07:29:47 +1000
Cc: Linux Audit Discussion <linux-audit@xxxxxxxxxx>, netdev@xxxxxxxxxxx, "David S. Miller" <davem@xxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx
In-reply-to: <1116438756.25594.76.camel@xxxxxxxxxxxxxxxxxxxxx>
References: <200505171624.j4HGOQwo017312@xxxxxxxxxxxxxxxxxxxxxxx> <20050517165528.GB27549@xxxxxxxxxxxxxxxxxxx> <1116349464.23972.118.camel@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20050517174300.GE27549@xxxxxxxxxxxxxxxxxxx> <20050518083002.GA30689@xxxxxxxxxxxxxxxxxxx> <20050518170033.GT27549@xxxxxxxxxxxxxxxxxxx> <1116438756.25594.76.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6+20040907i
On Wed, May 18, 2005 at 06:52:35PM +0100, David Woodhouse wrote:
> 
> I've reverted your recent change to put audit messages directly into
> skbs "in order to eliminate the extra copy", on the basis that it
> blatantly wasn't having that effect anyway. Now we copy from the
> audit_buffer into an optimally-sized skb which netlink_trim() won't have
> to mangle. I've also removed the skb_get() immediately before
> netlink_send() which always made me unhappy.

Even if the audit code is never going to call netlink_unicast with
spin locks held, we simply cannot assume that for all current and
future users of netlink_unicast.

As a consequence we can't use gfp_any() in netlink_unicast.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

<Prev in Thread] Current Thread [Next in Thread>