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-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2006-09-22 14:55:33 -07:00
2007-02-10 23:19:39 -08:00
2007-02-12 11:13:14 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2006-09-22 15:18:54 -07:00
2006-12-02 21:31:33 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-12 11:12:40 -08:00
2007-02-10 23:19:39 -08:00
2006-12-02 21:31:22 -08:00
2007-02-12 11:12:40 -08:00
2007-02-10 23:19:39 -08:00
2006-12-02 21:31:22 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2006-12-02 21:23:42 -08:00
2007-02-10 23:19:39 -08:00
2007-02-08 12:39:17 -08:00
2007-02-08 12:39:17 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2006-12-02 21:31:22 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-12 09:48:46 -08:00
2007-02-08 12:39:19 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-12 11:11:55 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-12 09:48:46 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-08 12:39:19 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-12 11:11:55 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-08 12:39:16 -08:00
2007-02-08 12:39:16 -08:00
2007-02-12 09:48:46 -08:00
2007-02-10 23:19:39 -08:00
2007-02-12 11:12:57 -08:00
2006-12-02 22:08:26 -08:00
2007-02-12 11:12:57 -08:00
2006-12-02 22:07:44 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2006-12-02 22:09:06 -08:00
2007-02-10 23:19:39 -08:00
2006-12-02 22:09:41 -08:00
2007-02-10 23:19:39 -08:00
2007-02-08 12:39:17 -08:00
2007-02-08 12:39:17 -08:00
2006-12-02 22:07:13 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2007-02-10 23:19:39 -08:00
2006-12-02 22:10:18 -08:00