• Florian Westphal's avatar
    netfilter: arptables: use percpu jumpstack · 3bd22997
    Florian Westphal authored
    commit 482cfc31 ("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: 482cfc31 ("netfilter: xtables: avoid percpu ruleset duplication")
    Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
    Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
    3bd22997
arp_tables.c 46.5 KB