Skip to content

Netfilter/nf_tables fixes for net-next

Pablo Neira Ayuso netdev netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6netfilter: nfnetlink_acct: Fix memory leaknet/netfilter/nfnetlink_acct.c+0 -10 replies
2/6netfilter: nf_tables: fix wrong transaction ordering in set elementsnet/netfilter/nf_tables_api.c+2 -20 replies
3/6netfilter: nf_tables: release objects in reverse order in the abort pathnet/netfilter/nf_tables_api.c+2 -10 replies
4/6netfilter: nft_rbtree: introduce lockingnet/netfilter/nft_rbtree.c+21 -10 replies
5/6netfilter: nf_tables: allow to delete several objects from a batchnet/netfilter/nf_tables_api.c+31 -90 replies
6/6netfilter: nf_tables: atomic allocation in set notifications from rcu callbacknet/netfilter/nf_tables_api.c+6 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] Netfilter/nf_tables fixes for net-next

Hi David,

This patchset contains fixes for recent updates available in your net-next, they are:

1) Fix double memory allocation for accounting objects that results in a leak, this slipped through with the new quota extension, patch from Mathieu Poirier.

2) Fix broken ordering when adding set element transactions.

3) Make sure that objects are released in reverse order in the abort path, to avoid possible use-after-free when accessing dependencies.

4) Allow to delete several objects (as long as dependencies are fulfilled) by using one batch. This includes changes in the use counter semantics of the nf_tables objects.

5) Fix illegal sleeping allocation from rcu callback.

You can pull these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git

Thanks!

----------------------------------------------------------------

The following changes since commit 96b2e73c5471542cb9c622c4360716684f8797ed:

Revert "net/mlx4_en: Use affinity hint" (2014-06-02 00:18:48 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git master

for you to fetch changes up to 31f8441c328b1c038c3e44bec740fb29393a56ad:

netfilter: nf_tables: atomic allocation in set notifications from rcu callback (2014-06-02 10:54:38 +0200)

----------------------------------------------------------------
Mathieu Poirier (1):
netfilter: nfnetlink_acct: Fix memory leak

Pablo Neira Ayuso (5):
netfilter: nf_tables: fix wrong transaction ordering in set elements
netfilter: nf_tables: release objects in reverse order in the abort path
netfilter: nft_rbtree: introduce locking
netfilter: nf_tables: allow to delete several objects from a batch
netfilter: nf_tables: atomic allocation in set notifications from rcu callback

 net/netfilter/nf_tables_api.c  |   59 ++++++++++++++++++++++++++++------------
 net/netfilter/nfnetlink_acct.c |    1 -
 net/netfilter/nft_rbtree.c     |   22 ++++++++++++++-
 3 files changed, 62 insertions(+), 20 deletions(-)