[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090707.191424.167842005.davem@davemloft.net>
Date: Tue, 07 Jul 2009 19:14:24 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
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
Subject: Re: [PATCH] net: sk_prot_alloc() should not blindly overwrite
memory
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 08 Jul 2009 00:33:29 +0200
> [PATCH] net: sk_prot_alloc() should not blindly overwrite memory
>
> Some sockets use SLAB_DESTROY_BY_RCU, and our RCU code rely that some
> fields should not be blindly overwritten, even with null.
>
> These fields are sk->sk_refcnt and sk->sk_nulls_node.next
>
> Current sk_prot_alloc() implementation doesnt respect this hypothesis,
> calling kmem_cache_alloc() with __GFP_ZERO and setting sk_refcnt to 1
> instead of atomically increment it.
>
> Reported-by: Emil S Tantilov <emils.tantilov@...il.com>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
I've applied this but will wait for some more testing before
I push it out for real to kernel.org
--
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