[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20090930.162316.123663794.davem@davemloft.net>
Date: Wed, 30 Sep 2009 16:23:16 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: jarkao2@...il.com, albcamus@...il.com, parag.lkml@...il.com,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH] net: Fix sock_wfree() race
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Thu, 24 Sep 2009 22:49:24 +0200
> [PATCH] net: Fix sock_wfree() race
>
> Commit 2b85a34e911bf483c27cfdd124aeb1605145dc80
> (net: No more expensive sock_hold()/sock_put() on each tx)
> opens a window in sock_wfree() where another cpu
> might free the socket we are working on.
>
> A fix is to call sk->sk_write_space(sk) while still
> holding a reference on sk.
>
>
> Reported-by: Jike Song <albcamus@...il.com>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Applied to net-2.6 and I'll queue this up for -stable.
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