Skip to content

netfilter: nf_tables: Fix percpu address space issues in nf_tables_api.c

Uros Bizjak lkml netdev netfilter-devel 3 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/22 patches 7 repliesApplied
  2. v2 posting 1/22 patches 2 repliesApplied 2/2
  3. v12 patches 2 repliesSuperseded

Patches in v2 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/2err.h: Add ERR_PTR_PCPU(), PTR_ERR_PCPU() and IS_ERR_PCPU() macrosinclude/linux/err.h+9 -00 replies
2/2netfilter: nf_tables: Fix percpu address space issues in nf_tables_api.cnet/netfilter/nf_tables_api.c+8 -82 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchSimon Horman
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] netfilter: nf_tables: Fix percpu address space issues in nf_tables_api.c

Use {ERR_PTR,IS_ERR,PTR_ERR}_PCPU() macros when crossing between generic and percpu address spaces and add __percpu annotation to *stats pointer to fix percpu address space issues.

NOTE: The patch depends on a patch that introduces *_PCPU() macros [1] that is on the way to mainline through the mm tree. For convience, the patch is included in this patch series, so CI tester is able to test the second patch without compile failures.

[1] https://lore.kernel.org/lkml/[email protected]/

The netfilter patch obsoletes patch [2].

[2] https://patchwork.ozlabs.org/project/netfilter-devel/patch/[email protected]/

Cc Pablo Neira Ayuso <[email protected]>
Cc Jozsef Kadlecsik <[email protected]>
Cc "David S. Miller" <[email protected]>
Cc Eric Dumazet <[email protected]>
Cc Jakub Kicinski <[email protected]>
Cc Paolo Abeni <[email protected]>

Uros Bizjak (2):
err.h: Add ERR_PTR_PCPU(), PTR_ERR_PCPU() and IS_ERR_PCPU() macros
netfilter: nf_tables: Fix percpu address space issues in
nf_tables_api.c

 include/linux/err.h           |  9 +++++++++
 net/netfilter/nf_tables_api.c | 16 ++++++++--------
 2 files changed, 17 insertions(+), 8 deletions(-)
Signature · 1 line
2.42.0