netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nf 0/3] netfilter: conntrack: switch to siphash
@ 2021-08-26 13:54 Florian Westphal
  2021-08-26 13:54 ` [PATCH nf 1/3] netfilter: conntrack: sanitize table size default settings Florian Westphal
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Florian Westphal @ 2021-08-26 13:54 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal

Two recent commits switched inet rt and nexthop exception
hashes from jhash to siphash.

If those two spots are problematic then conntrack is affected
as well, so switch voer to siphash too.

While at it, add a hard upper limit on chain lengths and reject
insertion if this is hit.

Florian Westphal (3):
  netfilter: conntrack: sanitize table size default settings
  netfilter: conntrack: switch to siphash
  netfilter: conntrack: refuse insertion if chain has grown too large

 .../networking/nf_conntrack-sysctl.rst        |  13 ++-
 include/linux/netfilter/nf_conntrack_common.h |   1 +
 .../linux/netfilter/nfnetlink_conntrack.h     |   1 +
 net/netfilter/nf_conntrack_core.c             | 103 ++++++++++++------
 net/netfilter/nf_conntrack_expect.c           |  25 +++--
 net/netfilter/nf_conntrack_netlink.c          |   4 +-
 net/netfilter/nf_conntrack_standalone.c       |   4 +-
 net/netfilter/nf_nat_core.c                   |  18 ++-
 8 files changed, 114 insertions(+), 55 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2021-08-30  9:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-26 13:54 [PATCH nf 0/3] netfilter: conntrack: switch to siphash Florian Westphal
2021-08-26 13:54 ` [PATCH nf 1/3] netfilter: conntrack: sanitize table size default settings Florian Westphal
2021-08-26 13:54 ` [PATCH nf 2/3] netfilter: conntrack: switch to siphash Florian Westphal
2021-08-26 13:54 ` [PATCH nf 3/3] netfilter: conntrack: refuse insertion if chain has grown too large Florian Westphal
2021-08-26 13:54 ` [PATCH nf 3/3] netfilter: " Florian Westphal
2021-08-30  9:54 ` [PATCH nf 0/3] netfilter: conntrack: switch to siphash Pablo Neira Ayuso

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).