]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: arptables: use percpu jumpstack
authorFlorian Westphal <fw@strlen.de>
Tue, 30 Jun 2015 20:21:00 +0000 (22:21 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 2 Jul 2015 15:58:59 +0000 (17:58 +0200)
commitcbdfe517bfa30dad8e4b62187968efb6c3090790
tree57b3146b9fc76fa2ee7dbc9dab6a594fcdf99b35
parent22796b2325b788c57a492281ff1333e529577c83
netfilter: arptables: use percpu jumpstack

commit b7d1cd451ce4 ("netfilter: xtables: avoid percpu ruleset duplication")

Unlike ip and ip6tables, arp tables were never converted to use the percpu
jump stack.

It still uses the rule blob to store return address, which isn't safe
anymore since we now share this blob among all processors.

Because there is no TEE support for arptables, we don't need to cope
with reentrancy, so we can use loocal variable to hold stack offset.

Fixes: b7d1cd451ce4 ("netfilter: xtables: avoid percpu ruleset duplication")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/arp_tables.c