netfilter: xtables: avoid pointer to self
Commit 78454473 (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>
Showing
- include/linux/netfilter/xt_limit.h 5 additions, 4 deletionsinclude/linux/netfilter/xt_limit.h
- include/linux/netfilter/xt_quota.h 3 additions, 1 deletioninclude/linux/netfilter/xt_quota.h
- include/linux/netfilter/xt_statistic.h 4 additions, 3 deletionsinclude/linux/netfilter/xt_statistic.h
- net/netfilter/xt_limit.c 29 additions, 11 deletionsnet/netfilter/xt_limit.c
- net/netfilter/xt_quota.c 24 additions, 7 deletionsnet/netfilter/xt_quota.c
- net/netfilter/xt_statistic.c 23 additions, 5 deletionsnet/netfilter/xt_statistic.c
Loading
Please register or sign in to comment