netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 00/17] netfilter: conntrack and nf_tables bug fixes
@ 2022-08-17 13:59 Florian Westphal
  2022-08-17 13:59 ` [PATCH net 01/17] netfilter: nf_tables: use READ_ONCE and WRITE_ONCE for shared generation id access Florian Westphal
                   ` (16 more replies)
  0 siblings, 17 replies; 19+ messages in thread
From: Florian Westphal @ 2022-08-17 13:59 UTC (permalink / raw)
  To: netdev
  Cc: netfilter-devel, Pablo Neira Ayuso, Paolo Abeni, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Florian Westphal

The following patchset contains netfilter fixes for net.

Broken since 5.19:
A few ancient connection tracking helpers assume TCP packets cannot
exceed 64kb in size, but this isn't the case anymore with 5.19 when
BIG TCP got merged, from myself.

Regressions since 5.19:
1. 'conntrack -E expect' won't display anything because nfnetlink failed
to enable events for expectations, only for normal conntrack events.

2. partially revert change that added resched calls to a function that can
   be in atomic context.  Both broken and fixed up by myself.

Broken for several releases (up to original merge of nf_tables):
Several fixes for nf_tables control plane, from Pablo.
This fixes up resource leaks in error paths and adds more sanity
checks for mutually exclusive attributes/flags.

Kconfig:
NF_CONNTRACK_PROCFS is very old and doesn't provide all info provided
via ctnetlink, so it should not default to y. From Geert Uytterhoeven.

Selftests:
rework nft_flowtable.sh: it frequently indicated failure; the way it
tried to detect an offload failure did not work reliably.

Please consider pulling from

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

Thanks.

The following changes since commit f329a0ebeaba4ffe91d431e0ac1ca7f9165872a4:

  genetlink: correct uAPI defines (2022-08-10 13:49:50 +0100)

are available in the Git repository at:

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

for you to fetch changes up to c8550b9077d271b9b4fbe5a9a260eb021f371c4f:

  testing: selftests: nft_flowtable.sh: rework test to detect offload failure (2022-08-17 15:12:01 +0200)

----------------------------------------------------------------
Florian Westphal (8):
      netfilter: nf_ct_sane: remove pseudo skb linearization
      netfilter: nf_ct_h323: cap packet size at 64k
      netfilter: nf_ct_ftp: prefer skb_linearize
      netfilter: nf_ct_irc: cap packet search space to 4k
      netfilter: nf_tables: fix scheduling-while-atomic splat
      netfilter: nfnetlink: re-enable conntrack expectation events
      testing: selftests: nft_flowtable.sh: use random netns names
      testing: selftests: nft_flowtable.sh: rework test to detect offload failure

Geert Uytterhoeven (1):
      netfilter: conntrack: NF_CONNTRACK_PROCFS should no longer default to y

Pablo Neira Ayuso (8):
      netfilter: nf_tables: use READ_ONCE and WRITE_ONCE for shared generation id access
      netfilter: nf_tables: disallow NFTA_SET_ELEM_KEY_END with NFT_SET_ELEM_INTERVAL_END flag
      netfilter: nf_tables: possible module reference underflow in error path
      netfilter: nf_tables: really skip inactive sets when allocating name
      netfilter: nf_tables: validate NFTA_SET_ELEM_OBJREF based on NFT_SET_OBJECT flag
      netfilter: nf_tables: NFTA_SET_ELEM_KEY_END requires concat and interval flags
      netfilter: nf_tables: disallow NFT_SET_ELEM_CATCHALL and NFT_SET_ELEM_INTERVAL_END
      netfilter: nf_tables: check NFT_SET_CONCAT flag if field_count is specified

 include/net/netns/conntrack.h                      |   2 +-
 net/netfilter/Kconfig                              |   1 -
 net/netfilter/nf_conntrack_ftp.c                   |  24 +-
 net/netfilter/nf_conntrack_h323_main.c             |  10 +-
 net/netfilter/nf_conntrack_irc.c                   |  12 +-
 net/netfilter/nf_conntrack_sane.c                  |  68 ++--
 net/netfilter/nf_tables_api.c                      |  74 +++-
 net/netfilter/nfnetlink.c                          |  83 ++++-
 tools/testing/selftests/netfilter/nft_flowtable.sh | 377 +++++++++++----------
 9 files changed, 390 insertions(+), 261 deletions(-)

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2022-08-18  5:00 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-17 13:59 [PATCH net 00/17] netfilter: conntrack and nf_tables bug fixes Florian Westphal
2022-08-17 13:59 ` [PATCH net 01/17] netfilter: nf_tables: use READ_ONCE and WRITE_ONCE for shared generation id access Florian Westphal
2022-08-18  5:00   ` patchwork-bot+netdevbpf
2022-08-17 14:00 ` [PATCH net 02/17] netfilter: nf_tables: disallow NFTA_SET_ELEM_KEY_END with NFT_SET_ELEM_INTERVAL_END flag Florian Westphal
2022-08-17 14:00 ` [PATCH net 03/17] netfilter: nf_tables: possible module reference underflow in error path Florian Westphal
2022-08-17 14:00 ` [PATCH net 04/17] netfilter: nf_ct_sane: remove pseudo skb linearization Florian Westphal
2022-08-17 14:00 ` [PATCH net 05/17] netfilter: nf_ct_h323: cap packet size at 64k Florian Westphal
2022-08-17 14:00 ` [PATCH net 06/17] netfilter: nf_ct_ftp: prefer skb_linearize Florian Westphal
2022-08-17 14:00 ` [PATCH net 07/17] netfilter: nf_ct_irc: cap packet search space to 4k Florian Westphal
2022-08-17 14:00 ` [PATCH net 08/17] netfilter: nf_tables: fix scheduling-while-atomic splat Florian Westphal
2022-08-17 14:00 ` [PATCH net 09/17] netfilter: nfnetlink: re-enable conntrack expectation events Florian Westphal
2022-08-17 14:00 ` [PATCH net 10/17] netfilter: nf_tables: really skip inactive sets when allocating name Florian Westphal
2022-08-17 14:00 ` [PATCH net 11/17] netfilter: nf_tables: validate NFTA_SET_ELEM_OBJREF based on NFT_SET_OBJECT flag Florian Westphal
2022-08-17 14:00 ` [PATCH net 12/17] netfilter: nf_tables: NFTA_SET_ELEM_KEY_END requires concat and interval flags Florian Westphal
2022-08-17 14:00 ` [PATCH net 13/17] netfilter: nf_tables: disallow NFT_SET_ELEM_CATCHALL and NFT_SET_ELEM_INTERVAL_END Florian Westphal
2022-08-17 14:00 ` [PATCH net 14/17] netfilter: nf_tables: check NFT_SET_CONCAT flag if field_count is specified Florian Westphal
2022-08-17 14:00 ` [PATCH net 15/17] netfilter: conntrack: NF_CONNTRACK_PROCFS should no longer default to y Florian Westphal
2022-08-17 14:00 ` [PATCH net 16/17] testing: selftests: nft_flowtable.sh: use random netns names Florian Westphal
2022-08-17 14:00 ` [PATCH net 17/17] testing: selftests: nft_flowtable.sh: rework test to detect offload failure Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).