From: Eric Dumazet Date: Tue, 21 Sep 2010 21:17:32 +0000 (+0000) Subject: netfilter: fix a race in nf_ct_ext_create() X-Git-Tag: v2.6.36-rc6~6^2~32 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15cdeadaa5d76009e20c7792aed69f5a73808f97;p=pandora-kernel.git netfilter: fix a race in nf_ct_ext_create() As soon as rcu_read_unlock() is called, there is no guarantee current thread can safely derefence t pointer, rcu protected. Fix is to copy t->alloc_size in a temporary variable. Signed-off-by: Eric Dumazet Reviewed-by: Paul E. McKenney Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed