]> git.baikalelectronics.ru Git - kernel.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)
commitae48a00284e6cd349b3b8412b6f46060680a37c5
tree646495518d8e4946862ab9d361eb2248d4212be5
parent38618c72acf94493a64d1847a6162a8378919ee0
netfilter: xtables: avoid pointer to self

Commit 8abf527013d47996012d06404d895960d0181a0b (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