[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A598BAB.6030400@gmail.com>
Date: Sun, 12 Jul 2009 09:07:23 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: David Miller <davem@...emloft.net>
CC: emil.s.tantilov@...el.com, emils.tantilov@...il.com,
netdev@...r.kernel.org, jesse.brandeburg@...el.com,
jeffrey.t.kirsher@...el.com, jolsa@...hat.com, kaber@...sh.net,
paulmck@...ux.vnet.ibm.com
Subject: Re: [PATCH] net: sk_prot_alloc() should not blindly overwrite memory
David Miller a écrit :
> From: Eric Dumazet <eric.dumazet@...il.com>
> Date: Thu, 09 Jul 2009 07:36:05 +0200
>
>> [PATCH] net: sk_prot_alloc() should not blindly overwrite memory
>>
>> Some sockets use SLAB_DESTROY_BY_RCU, and our RCU code correctness
>> depends on sk->sk_nulls_node.next being always valid. A NULL
>> value is not allowed as it might fault a lockless reader.
>>
>> Current sk_prot_alloc() implementation doesnt respect this hypothesis,
>> calling kmem_cache_alloc() with __GFP_ZERO. Just call memset() around
>> the forbidden field.
>>
>> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
>
> APplied and queued up for -stable.
I'll try to find some time to fix netfilter conntrack as well.
Thanks
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists