From: Patrick McHardy Date: Mon, 14 Feb 2011 16:35:07 +0000 (+0100) Subject: netfilter: nf_iterate: fix incorrect RCU usage X-Git-Tag: v2.6.38-rc6~20^2~19^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de9963f0f2dfad128b26ae7bf6005f5948416a6d;p=pandora-kernel.git netfilter: nf_iterate: fix incorrect RCU usage As noticed by Eric, nf_iterate doesn't use RCU correctly by accessing the prev pointer of a RCU protected list element when a verdict of NF_REPEAT is issued. Fix by jumping backwards to the hook invocation directly instead of loading the previous list element before continuing the list iteration. Reported-by: Eric Dumazet Acked-by: Eric Dumazet Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed