Skip to content

Netfilter/nftables fixes for net

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: nf_tables: reset rule number counter after jump and gotonet/netfilter/nf_tables_core.c+2 -10 replies
2/6netfilter: nf_tables: fix goto actionnet/netfilter/nf_tables_core.c+10 -180 replies
3/6netfilter: nf_tables: fix tracing of the goto actionnet/netfilter/nf_tables_core.c+5 -10 replies
4/6netfilter: nf_tables: fix bogus rulenum after goto actionnet/netfilter/nf_tables_core.c+1 -10 replies
5/6netfilter: nf_tables: fix missing return trace at the end of non-base chainnet/netfilter/nf_tables_core.c+3 -50 replies
6/6netfilter: nf_tables: fix trace of matching non-terminal rulenet/netfilter/nf_tables_core.c+3 -10 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/nftables fixes for net

Hi David,

The following patchset contains nftables fixes for your net tree, they are:

1) Fix crash when using the goto action in a rule by making sure that we always fall back on the base chain. Otherwise, this may try to access the counter memory area of non-base chains, which does not exists.

2) Fix several aspects of the rule tracing that are currently broken:

* Reset rule number counter after goto/jump action, otherwise the tracing reports a bogus rule number.
* Fix tracing of the goto action.
* Fix bogus rule number counter after goto.
* Fix missing return trace after finishing the walk through the non-base chain.
* Fix missing trace when matching non-terminal rule.

You can pull these changes from:

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

Thanks!

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

The following changes since commit a8951d5814e1373807a94f79f7ccec7041325470:

netfilter: Fix potential use after free in ip6_route_me_harder() (2014-05-09 02:36:39 +0200)

are available in the git repository at:

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

for you to fetch changes up to 3b084e99a3fabaeb0f9c65a0806cde30f0b2835e:

netfilter: nf_tables: fix trace of matching non-terminal rule (2014-05-15 19:44:20 +0200)

----------------------------------------------------------------
Pablo Neira Ayuso (6):
netfilter: nf_tables: reset rule number counter after jump and goto
netfilter: nf_tables: fix goto action
netfilter: nf_tables: fix tracing of the goto action
netfilter: nf_tables: fix bogus rulenum after goto action
netfilter: nf_tables: fix missing return trace at the end of non-base chain
netfilter: nf_tables: fix trace of matching non-terminal rule

 net/netfilter/nf_tables_core.c |   49 +++++++++++++++++++---------------------
 1 file changed, 23 insertions(+), 26 deletions(-)