]> 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)
commit1d2d5911a4096a05c39c4ea507d290a790ee9629
tree57b3146b9fc76fa2ee7dbc9dab6a594fcdf99b35
parentc55ac91a27af01315b8f857c22a949f1df096745
netfilter: arptables: use percpu jumpstack

commit 00d00e0c31ec ("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: 00d00e0c31ec ("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