Patrick McHardy de9963f0f2 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 <eric.dumazet@gmail.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-02-14 17:35:07 +01:00
..
2010-07-23 12:59:36 +02:00
2010-08-19 17:18:01 -07:00
2010-08-19 17:18:01 -07:00
2010-05-13 15:02:08 +02:00
2010-07-15 17:20:46 +02:00
2010-07-23 12:59:36 +02:00
2010-10-04 21:00:42 +02:00
2010-06-15 11:56:19 -07:00