diff options
author | Florian Westphal <fw@strlen.de> | 2022-01-05 16:19:54 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-01-06 12:43:24 +0300 |
commit | 23c54263efd7cb605e2f7af72717a2a951999217 (patch) | |
tree | 3557c86971631656b3b5b5012517af984bd90d2a /fs/nfs/symlink.c | |
parent | 4e1860a3863707e8177329c006d10f9e37e097a8 (diff) | |
download | linux-23c54263efd7cb605e2f7af72717a2a951999217.tar.xz |
netfilter: nft_set_pipapo: allocate pcpu scratch maps on clone
This is needed in case a new transaction is made that doesn't insert any
new elements into an already existing set.
Else, after second 'nft -f ruleset.txt', lookups in such a set will fail
because ->lookup() encounters raw_cpu_ptr(m->scratch) == NULL.
For the initial rule load, insertion of elements takes care of the
allocation, but for rule reloads this isn't guaranteed: we might not
have additions to the set.
Fixes: 3c4287f62044a90e ("nf_tables: Add set type for arbitrary concatenation of ranges")
Reported-by: etkaar <lists.netfilter.org@prvy.eu>
Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'fs/nfs/symlink.c')
0 files changed, 0 insertions, 0 deletions