Skip to content

Netfilter fixes for net

Pablo Neira Ayuso netdev netfilter-devel 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5netfilter: nf_tables: set dormant flag on hook register failurenet/netfilter/nf_tables_api.c+1 -00 repliesApplied
2/5netfilter: nft_flow_offload: reset dst in route object after setting up flowinclude/net/netfilter/nf_flow_table.h net/netfilter/nf_flow_table_core.c+14 -40 repliesApplied
3/5netfilter: nft_flow_offload: release dst in case direct xmit path is usednet/netfilter/nf_flow_table_core.c+1 -00 repliesApplied
4/5netfilter: nf_tables: register hooks last when adding new chain/flowtablenet/netfilter/nf_tables_api.c+40 -380 repliesApplied
5/5netfilter: nf_tables: use kzalloc for hook allocationnet/netfilter/nf_tables_api.c+1 -10 repliesApplied

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

Patch[email protected]
1/5Reported-and-tested-by
2/5
3/5
4/5
5/5

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

Read the v1 thread

Cover letter [PATCH net 0/5] Netfilter fixes for net

Hi,

The following patchset contains Netfilter fixes for net:

1) If user requests to wake up a table and hook fails, restore the dormant flag from the error path, from Florian Westphal.

2) Reset dst after transferring it to the flow object, otherwise dst gets released twice from the error path.

3) Release dst in case the flowtable selects a direct xmit path, eg. transmission to bridge port. Otherwise, dst is memleaked.

4) Register basechain and flowtable hooks at the end of the command. Error path releases these datastructure without waiting for the rcu grace period.

5) Use kzalloc() to initialize struct nft_hook to fix a KMSAN report on access to hook type, also from Florian Westphal.

Please, pull these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-24-02-22

Thanks.

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

The following changes since commit 40b9385dd8e6a0515e1c9cd06a277483556b7286:

enic: Avoid false positive under FORTIFY_SOURCE (2024-02-19 10:57:27 +0000)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git tags/nf-24-02-22

for you to fetch changes up to 195e5f88c2e48330ba5483e0bad2de3b3fad484f:

netfilter: nf_tables: use kzalloc for hook allocation (2024-02-22 00:15:58 +0100)

----------------------------------------------------------------
netfilter pull request 24-02-22

----------------------------------------------------------------
Florian Westphal (2):
netfilter: nf_tables: set dormant flag on hook register failure
netfilter: nf_tables: use kzalloc for hook allocation

Pablo Neira Ayuso (3):
netfilter: nft_flow_offload: reset dst in route object after setting up flow
netfilter: nft_flow_offload: release dst in case direct xmit path is used
netfilter: nf_tables: register hooks last when adding new chain/flowtable

 include/net/netfilter/nf_flow_table.h |  2 +-
 net/netfilter/nf_flow_table_core.c    | 17 ++++++--
 net/netfilter/nf_tables_api.c         | 81 ++++++++++++++++++-----------------
 3 files changed, 57 insertions(+), 43 deletions(-)