From: Pavel Emelyanov Date: Thu, 18 Oct 2007 04:22:42 +0000 (-0700) Subject: [NET]: Fix the race between sk_filter_(de|at)tach and sk_clone() X-Git-Tag: v2.6.24-rc1~294^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47e958eac280c263397582d5581e868c3227a1bd;p=pandora-kernel.git [NET]: Fix the race between sk_filter_(de|at)tach and sk_clone() The proposed fix is to delay the reference counter decrement until the quiescent state pass. This will give sk_clone() a chance to get the reference on the cloned filter. Regular sk_filter_uncharge can happen from the sk_free() only and there's no need in delaying the put - the socket is dead anyway and is to be release itself. Signed-off-by: Pavel Emelyanov Signed-off-by: David S. Miller --- Reading git-diff-tree failed