Patrick McHardy abbaccda4c [NETFILTER]: ip_conntrack: fix invalid conntrack statistics RCU assumption
CONNTRACK_STAT_INC assumes rcu_read_lock in nf_hook_slow disables
preemption as well, making it legal to use __get_cpu_var without
disabling preemption manually. The assumption is not correct anymore
with preemptable RCU, additionally we need to protect against softirqs
when not holding ip_conntrack_lock.

Add CONNTRACK_STAT_INC_ATOMIC macro, which disables local softirqs,
and use where necessary.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-02-12 11:13:14 -08:00
..
2007-02-08 13:51:54 -08:00
2007-02-10 23:19:49 -08:00
2007-02-10 23:19:51 -08:00
2007-02-10 23:20:15 -08:00
2007-02-10 23:20:24 -08:00
2007-02-10 23:20:27 -08:00
2005-04-16 15:20:36 -07:00