]> git.karo-electronics.de Git - karo-tx-linux.git/commit
netfilter: xtables: avoid pointer to self
authorJan Engelhardt <jengelh@medozas.de>
Mon, 16 Mar 2009 14:35:29 +0000 (15:35 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 16 Mar 2009 14:35:29 +0000 (15:35 +0100)
commitacc738fec03bdaa5b77340c32a82fbfedaaabef0
tree646495518d8e4946862ab9d361eb2248d4212be5
parent95ba434f898c3cb5c7457dce265bf0ab72ba8ce9
netfilter: xtables: avoid pointer to self

Commit 784544739a25c30637397ace5489eeb6e15d7d49 (netfilter: iptables:
lock free counters) broke a number of modules whose rule data referenced
itself. A reallocation would not reestablish the correct references, so
it is best to use a separate struct that does not fall under RCU.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter/xt_limit.h
include/linux/netfilter/xt_quota.h
include/linux/netfilter/xt_statistic.h
net/netfilter/xt_limit.c
net/netfilter/xt_quota.c
net/netfilter/xt_statistic.c